* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar-nav li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.navbar-nav li a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.navbar-nav li.active a {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.card-header h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.card-body {
    padding: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th, .table td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

.table tr:hover {
    background: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-auditing {
    background: #cce5ff;
    color: #004085;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.login-card p {
    text-align: center;
    margin-top: 20px;
}

.login-card a {
    color: #007bff;
    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

.sidebar {
    width: 250px;
    background: #2d3436;
    color: #fff;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
}

.sidebar-brand {
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px;
    margin-bottom: 20px;
}

.sidebar-user {
    padding: 0 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user span:first-child {
    font-size: 14px;
    color: #b2bec3;
}

.sidebar-user .role-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #007bff;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    color: #b2bec3;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    transition: all 0.2s;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-menu li.active a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left: 3px solid #007bff;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: #f8f9fa;
}

.main-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
}

.pagination li.active a {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination li a:hover {
    background: #f8f9fa;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-form .form-control {
    max-width: 200px;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: rgba(0,123,255,0.1);
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    margin-top: 10px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

input[type="file"] {
    display: block;
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 6px 8px;
    }
}