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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    color: #2c3e50;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.header {
    background: white;
    padding: 24px 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(25, 118, 210, 0.08);
}

.header h1 {
    color: #1976d2;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .user-info span {
    color: #546e7a;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.btn-secondary {
    background: #eceff1;
    color: #455a64;
    border: 1px solid #cfd8dc;
}

.btn-secondary:hover {
    background: #cfd8dc;
    color: #37474f;
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 108, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 108, 0, 0.4);
}

.login-container {
    max-width: 480px;
    margin: 100px auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(25, 118, 210, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #1976d2;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-header p {
    color: #546e7a;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #37474f;
    font-weight: 600;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e0e7ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.25s;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffe0b2;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.file-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(25, 118, 210, 0.06);
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.file-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(25, 118, 210, 0.15);
}

.file-card:hover::before {
    opacity: 1;
}

.file-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.file-name {
    font-size: 19px;
    font-weight: 700;
    color: #263238;
    margin-bottom: 10px;
    line-height: 1.4;
}

.file-description {
    color: #546e7a;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #eceff1;
    margin-bottom: 20px;
}

.file-size {
    color: #78909c;
    font-size: 14px;
    font-weight: 500;
}

.file-downloads {
    color: #78909c;
    font-size: 14px;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.no-permission {
    text-align: center;
    padding: 80px 60px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(25, 118, 210, 0.08);
}

.no-permission h2 {
    color: #263238;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

.no-permission p {
    color: #546e7a;
    line-height: 1.8;
    font-size: 16px;
}

.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.download-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #263238;
    font-size: 26px;
    font-weight: 700;
}

.modal-content p {
    color: #546e7a;
    margin-bottom: 32px;
    line-height: 1.8;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.content-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
    border: 1px solid rgba(25, 118, 210, 0.06);
}

.content-section h2 {
    color: #1976d2;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #455a64;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cfd8dc;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eceff1;
    color: #37474f;
}

.data-table tbody tr:hover {
    background: #f5f7fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .container {
        padding: 24px 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .login-container {
        margin: 60px auto;
        padding: 40px 28px;
    }
    
    .content-section {
        padding: 24px 20px;
    }
}
