* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.page {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header h1 {
    font-size: 2em;
    color: #fff;
}

/* Card */
.card {
    background: #16213e;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 2em;
}

.card h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.5em;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Forms */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #0f1626;
    border: 2px solid #1e2d47;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4a90e2;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #6c7a89;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #2c3e50;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #434343 0%, #2c3e50 100%);
    width: auto;
    padding: 10px 20px;
}

.btn-small {
    font-size: 14px;
    padding: 8px 16px;
}

.btn-copy {
    width: auto;
    padding: 10px 20px;
    margin-left: 10px;
}

/* Upload Area */
.upload-area {
    position: relative;
    margin-bottom: 20px;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #0f1626;
    border: 3px dashed #1e2d47;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.upload-label:hover {
    border-color: #4a90e2;
    background: #141d2e;
}

.upload-area.dragover .upload-label {
    border-color: #667eea;
    background: #1a2438;
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.upload-label span:last-child {
    color: #b8bec8;
    font-size: 16px;
}

/* Link Result */
.link-container {
    display: flex;
    margin-bottom: 15px;
}

#publicLink {
    flex: 1;
    margin-bottom: 0;
}

.filename {
    color: #b8bec8;
    font-size: 14px;
    margin-top: 10px;
}

/* Files List */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #0f1626;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.file-item:hover {
    background: #141d2e;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 12px;
    color: #6c7a89;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-link {
    padding: 8px 16px;
    background: #2c3e50;
    color: #4a90e2;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-link:hover {
    background: #34495e;
}

.btn-delete {
    padding: 8px 16px;
    background: #e74c3c;
    border-radius: 6px;
    font-size: 14px;
    width: auto;
}

.btn-delete:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Status Messages */
.error {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

#uploadStatus {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

#uploadStatus.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

#uploadStatus.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

#uploadStatus.loading {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c7a89;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .btn-copy {
        margin-left: 0;
        margin-top: 10px;
    }
}
