File size: 4,740 Bytes
d04cac6
c9dc5aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/* --- 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; }
    }