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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.login-box, .upload-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

/* Logo Styles */
.logo {
    display: block;
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 0 auto 30px auto;
}

.logo-admin-top {
    display: block;
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 0 0 30px 0;
}

.login-box h1, .upload-box h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
}

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

.header h1 {
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e1e8ed;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d8dd;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

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

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* Quota Info */
.quota-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.quota-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quota-item label {
    font-weight: 500;
    color: #666;
}

.quota-item span {
    color: #333;
}

.quota-bar {
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #e1e8ed;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #667eea;
    background: #f8f9fa;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Progress Container */
.progress-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-info span {
    font-weight: 500;
    color: #333;
}

.progress-bar {
    height: 12px;
    background: #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
    border-radius: 6px;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Upload History */
.upload-history {
    margin-top: 30px;
}

.upload-history h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.history-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-info {
    flex: 1;
}

.history-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.history-item-size {
    font-size: 14px;
    color: #666;
}

.history-item-success {
    color: #2ecc71;
    font-weight: 500;
}

/* Uploaded Files List */
.uploaded-files {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
}

.uploaded-files h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.file-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.file-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    color: #667eea;
}

.file-icon svg {
    width: 24px;
    height: 24px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.file-size::after {
    content: "•";
    margin-left: 15px;
    color: #999;
}

.files-note {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Copy Button */
.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-copy svg {
    width: 18px;
    height: 18px;
}

.btn-copy.copied {
    background: #2ecc71;
}

.btn-copy.copied:hover {
    background: #27ae60;
    transform: translateY(0);
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-box h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e1e8ed;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e1e8ed;
}

table tr:hover {
    background: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* Status Badge */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-expired {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .login-box, .upload-box {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px;
    }

    .table-actions {
        flex-direction: column;
    }

    .file-meta {
        flex-direction: column;
        gap: 5px;
    }

    .file-size::after {
        display: none;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }

    .btn-copy-text {
        display: inline;
    }
}
