/* --- GENERAL LAYOUT --- */ .container { width: 90%; max-width: 600px; margin: 40px auto; padding: 0 20px 20px 20px; box-sizing: border-box; } h1 { text-align: center; color: var(--accent-green); font-size: 1.6rem; font-weight: 800; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; } /* --- FLASH MESSAGES --- */ .flash-msg { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; } .flash-msg.success { background: rgba(16, 185, 129, 0.15); color: #d1fae5; border: 1px solid var(--accent-green); } .flash-msg.error { background: rgba(239, 68, 68, 0.15); color: #fee2e2; border: 1px solid var(--accent-red); } /* --- FILE CARD --- */ .file-item { background: var(--bg-card); padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .file-item:has(.menu-checkbox:checked) { z-index: 50; } .file-item:hover { border-color: var(--accent-green); } /* --- FILENAME --- */ .filename { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #eaecef; word-break: break-all; margin-right: 15px; flex: 1; } /* --- SPLIT BUTTON COMPONENT --- */ .split-btn { position: relative; display: inline-flex; vertical-align: middle; flex-shrink: 0; } .btn-main { background: var(--accent-green); color: #000; padding: 8px 16px; border-radius: 6px 0 0 6px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--accent-green); transition: background 0.2s; z-index: 2; } .btn-main:hover { background: #059669; border-color: #059669; } .btn-main.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; } .btn-arrow { background: var(--accent-green); color: #000; padding: 8px 10px; border-radius: 0 6px 6px 0; border: 1px solid var(--accent-green); border-left: 1px solid rgba(0,0,0,0.2); cursor: pointer; font-size: 0.75rem; transition: background 0.2s; outline: none; } .btn-arrow:hover, .btn-arrow:focus { background: #059669; } /* --- DROPDOWN MENU --- */ .dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 4px; background: #1e2329; border: 1px solid #2b3139; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); min-width: 160px; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; } .menu-checkbox:checked ~ .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); } .dropdown-item { padding: 10px 14px; color: #eaecef; text-decoration: none; font-size: 0.85rem; transition: background 0.2s; display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; } .dropdown-item:hover { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); } .dropdown-item.delete-item { color: #ff4d4d; } .dropdown-item.delete-item:hover { background: rgba(255, 77, 77, 0.1); color: #ff4d4d; } .icon-dl { color: var(--accent-green); flex-shrink: 0; } .icon-delete { color: #ef4444; flex-shrink: 0; } /* --- EMPTY STATE --- */ .empty-state { text-align: center; color: var(--text-dim); margin-top: 40px; font-size: 0.95rem; } /* Mobile Adjustment */ @media (max-width: 480px) { .container { width: 100%; margin-top: 20px; padding: 0 15px 20px 15px; } .file-item { padding: 15px; } h1 { font-size: 1.4rem; } .filename { font-size: 0.8rem; } }