/* styles.css - Complete File */
/* Body & Container */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    color: #f0f0f0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

h1, h2, h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Button Styles */
button, input[type=submit], .btn {
    background: linear-gradient(135deg, #1e90ff 0%, #0d6efd 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

button:hover, input[type=submit]:hover, .btn:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

/* Danger button */
.btn-danger, .delete-btn {
    background: linear-gradient(135deg, #ff4b5c 0%, #e63950 100%);
    box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
}

.btn-danger:hover, .delete-btn:hover {
    background: linear-gradient(135deg, #e63950 0%, #d62839 100%);
    box-shadow: 0 6px 20px rgba(255, 75, 92, 0.4);
    transform: translateY(-2px);
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

/* Copy button */
.copy-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.2);
}

.copy-btn:hover { 
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2);
}

.copy-btn.copied:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* Logout button */
.logout-btn {
    background: linear-gradient(135deg, #ff4b5c 0%, #e63950 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
}

.logout-btn:hover { 
    background: linear-gradient(135deg, #e63950 0%, #d62839 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 92, 0.4);
}

/* Upload button */
.upload-btn {
    background: linear-gradient(135deg, #00b894 0%, #019875 100%);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #019875 0%, #017e63 100%);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Upload Section */
.upload-section {
    background: rgba(42, 42, 42, 0.8);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #444;
}

.upload-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.custom-file-input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 2px dashed #555;
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-input:hover {
    border-color: #1e90ff;
    background: rgba(30, 30, 30, 1);
}

input[type=file] {
    padding: 12px;
    border-radius: 8px;
    border: 2px dashed #555;
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    transition: all 0.3s ease;
}

input[type=file]:hover {
    border-color: #1e90ff;
    background: rgba(30, 30, 30, 1);
}

/* Progress Bar */
.progress-container {
    display: none;
    margin-top: 15px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #444;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #aaa;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #1e90ff);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Table Section */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a2e 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 18px 16px;
}

tr:nth-child(even) { 
    background: rgba(42, 42, 42, 0.6); 
}

tr:hover { 
    background: rgba(60, 60, 60, 0.8);
    transform: scale(1.002);
    transition: transform 0.2s ease;
}

tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.delete-btn {
    background: linear-gradient(135deg, #ff4b5c 0%, #e63950 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(255, 75, 92, 0.2);
}

.delete-btn:hover { 
    background: linear-gradient(135deg, #e63950 0%, #d62839 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 75, 92, 0.3);
}

/* Form Inputs */
input[type=text], input[type=password] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #555;
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type=text]:focus, input[type=password]:focus,
input[type=file]:focus, .custom-file-input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-container input[type=text],
.login-container input[type=password] {
    padding: 14px;
    font-size: 16px;
}

.login-container input[type=submit] {
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

/* Links */
a { 
    color: #1e90ff; 
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { 
    color: #63a4ff; 
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #ff4b5c;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 75, 92, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 75, 92, 0.3);
}

.success-message {
    color: #28a745;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
    font-size: 18px;
}

.empty-state::before {
    content: "📭";
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .file-input-container {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn, .delete-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Mobile table styles */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        background: rgba(42, 42, 42, 0.8);
        padding: 10px;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: #aaa;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
    
    .login-container {
        margin: 40px 20px;
        padding: 30px;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .copy-notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .login-container {
        padding: 25px 20px;
    }
}

/* Animation for file upload success */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.upload-success {
    animation: successPulse 0.5s ease;
    color: #28a745 !important;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active { background-color: #28a745; }
.status-inactive { background-color: #6c757d; }
.status-pending { background-color: #ffc107; }

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary { background: linear-gradient(135deg, #1e90ff 0%, #0d6efd 100%); }
.badge-success { background: linear-gradient(135deg, #28a745 0%, #218838 100%); }
.badge-danger { background: linear-gradient(135deg, #ff4b5c 0%, #e63950 100%); }
.badge-warning { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #212529; }