/* Dark Theme for CTB Petty Cash System */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px; /* Account for navbar */
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #666666 0%, #555555 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #333333;
    border-radius: 8px;
    font-size: 15px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2), 0 4px 15px rgba(39, 174, 96, 0.25);
    background-color: #323232;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.15);
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.table th {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.table tbody tr:hover {
    background-color: #2a2a2a;
}

.table tbody td {
    color: #d0d0d0;
}

.alert {
    padding: 18px;
    margin: 25px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    color: #a8d5ba;
    background: linear-gradient(135deg, #1e4620 0%, #2a5a2e 100%);
    border-color: #27ae60;
}

.alert-error {
    color: #e8a8a8;
    background: linear-gradient(135deg, #3d1111 0%, #4a1515 100%);
    border-color: #e74c3c;
}

.alert-warning {
    color: #f0d5a8;
    background: linear-gradient(135deg, #3d3111 0%, #4a3d15 100%);
    border-color: #f39c12;
}

.alert-info {
    color: #a8d5e8;
    background: linear-gradient(135deg, #1e3a4d 0%, #2a4a5e 100%);
    border-color: #3498db;
}

.card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.1);
    border: 1px solid #333333;
}

.dashboard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #d0d0d0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.option-card:hover {
    border-color: #27ae60;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.option-card h3 {
    margin: 0 0 10px 0;
    color: #27ae60;
    font-size: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #333333;
}

.tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #888888;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.tab:hover {
    color: #27ae60;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.status-pending { color: #f39c12; }
.status-approved { color: #27ae60; }
.status-rejected { color: #e74c3c; }

@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 120px;
    }

    .dashboard-options {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 12px 8px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab.active {
        border-bottom: none;
        border-left-color: #27ae60;
    }
}