/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #1B3B4F 0%, #2C5F2D 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2C5F2D;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #2C5F2D;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #2C5F2D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #1E3F1F;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.3);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1B3B4F;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 24px;
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #2C5F2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-role {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
}

.sidebar-nav a i {
    width: 20px;
    font-size: 18px;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav a.active {
    background: #2C5F2D;
    color: white;
    border-left: 4px solid white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: #f5f5f5;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h1 {
    color: #333;
    font-size: 28px;
}

.date-display {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.stat-icon.total {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.pending {
    background: #fff3e0;
    color: #f57c00;
}

.stat-icon.processed {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-details {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #f0f0f0;
}

.filter-tab.active {
    background: #2C5F2D;
    color: white;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-box button {
    padding: 12px 20px;
    background: #1B3B4F;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #2C5F2D;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.requests-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.requests-table tbody tr:hover {
    background: #f8f9fa;
}

.pending-row {
    background: #fff3e0;
}

.processed-row {
    background: #e8f5e9;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.error {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-process {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view {
    background: #1B3B4F;
}

.btn-process {
    background: #2C5F2D;
}

.btn-view:hover, .btn-process:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* No Data */
.no-data {
    text-align: center;
    padding: 50px !important;
    color: #999;
}

.no-data i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Request Details Grid */
.request-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #2C5F2D;
}

.card-body {
    padding: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    font-weight: 600;
    color: #666;
}

.detail-value {
    flex: 1;
    color: #333;
}

.subsection-title {
    color: #1B3B4F;
    margin: 15px 0 10px;
    font-size: 16px;
}

/* Image Container */
.image-container {
    text-align: center;
}

.receipt-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.image-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

/* Action Buttons for Request */
.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-approve, .btn-reject, .btn-pdf, .btn-email, .btn-back {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-pdf {
    background: #dc3545;
    color: white;
}

.btn-email {
    background: #007bff;
    color: white;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-approve:hover, .btn-reject:hover, .btn-pdf:hover, .btn-email:hover, .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h2,
    .user-details,
    .sidebar-nav a span {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-nav a i {
        width: auto;
        font-size: 24px;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .user-avatar {
        margin: 0;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        flex-direction: column;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .request-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .action-buttons .action-form {
        flex-direction: column;
    }
    
    .btn-approve, .btn-reject, .btn-pdf, .btn-email {
        width: 100%;
        justify-content: center;
    }
}

.btn-history {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-history:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.3);
}

.btn-create {
    background: #2C5F2D;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background: #1E3F1F;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.3);
}

.badge.info {
    background: #17a2b8;
    color: white;
}

<!-- Add this CSS 
.resend-note {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.cc-email-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-family: monospace;
    font-size: 14px;
    padding: 8px 0;
}

.cc-email-display i {
    color: #6c757d;
}

.cc-note {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.btn-edit-header {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-edit-header:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Admin-only fields styling */
.admin-only {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin-left: -10px;
    padding-right: 10px;
    border-radius: 0 4px 4px 0;
}

.admin-only .detail-label {
    color: #007bff;
    font-weight: 600;
}

/* Optional: Add a small admin badge */
.admin-only .detail-label::after {
    content: " (admin)";
    font-size: 10px;
    font-weight: normal;
    color: #6c757d;
    margin-left: 5px;
    font-style: italic;
}