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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

.login-page {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

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

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

.login-header .logo {
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #666;
}

.login-form .form-group {
    margin-bottom: 20px;
}

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

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #0066CC;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0066CC;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #0052a3;
}

.error-msg {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.dashboard-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.navbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #0066CC;
    margin-right: 48px;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0066CC;
    background: #e6f0fa;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-size: 14px;
    color: #333;
}

.btn-logout {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 14px;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: #e6f0fa;
    color: #0066CC;
}

.stat-icon.green {
    background: #e6f7f1;
    color: #28a745;
}

.stat-icon.orange {
    background: #fff3e6;
    color: #fd7e14;
}

.stat-icon.red {
    background: #ffe6e6;
    color: #dc3545;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.card-link {
    font-size: 14px;
    color: #0066CC;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.data-table td {
    font-size: 14px;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.status-pending {
    background: #fff3e6;
    color: #fd7e14;
}

.status-approved {
    background: #e6f7f1;
    color: #28a745;
}

.status-rejected {
    background: #ffe6e6;
    color: #dc3545;
}

.supplier-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    padding-top: 20px;
}

.chart-bar {
    width: 60px;
    background: linear-gradient(180deg, #0066CC 0%, #004499 100%);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    position: relative;
}

.chart-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.chart-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}