/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    margin-left: 210px;
    padding: 40px;
    background-color: #f8f9fa;
    color: #333;
}

@media (max-width: 768px) {
    body {
        margin-left: 0;
        padding: 20px;
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    color: #001f3f;
    font-size: 20px;
    margin: 0;
}

/* Date Filter */
.date-filter {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background-color: #ffffff;
    color: #001f3f;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn.active {
    background-color: #001f3f;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Table Section */
.table-section {
    margin-top: 20px;
}

.table-section h2 {
    color: #001f3f;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #001f3f;
    padding-bottom: 8px;
}

.table-controls {
    margin-bottom: 15px;
}

.table-controls input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.table-controls input:focus {
    outline: none;
    border-color: #001f3f;
}

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

#transfers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#transfers-table th {
    background-color: #001f3f;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

#transfers-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

#transfers-table tbody tr:hover {
    background-color: #f8f9fa;
}

#transfers-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

#transfers-table tbody tr:nth-child(even):hover {
    background-color: #eef2f7;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.view-btn {
    background-color: #001f3f;
    color: white;
}

.view-btn:hover {
    background-color: #003366;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination button {
    background-color: #001f3f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination button:hover:not(:disabled) {
    background-color: #003366;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination #page-info {
    font-size: 14px;
    color: #666;
}

/* Dark theme */
html[data-theme='dark'] body {
    background: #0b1220;
    color: #e5e7eb;
}

html[data-theme='dark'] .dashboard-container {
    background: #111827;
    border-color: #334155;
    color: #e5e7eb;
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.34);
}

html[data-theme='dark'] .dashboard-header h1,
html[data-theme='dark'] .table-section h2 {
    color: #f8fafc;
}

html[data-theme='dark'] #transfers-table td {
    color: #e5e7eb;
    border-color: #334155;
}

html[data-theme='dark'] #transfers-table tbody tr:hover {
    background: #1e293b;
}

html[data-theme='dark'] #transfers-table tbody tr:nth-child(even) {
    background: #1a2332;
}

html[data-theme='dark'] #transfers-table tbody tr:nth-child(even):hover {
    background: #1e293b;
}

html[data-theme='dark'] .table-controls input {
    background: #1f2937;
    border-color: #334155;
    color: #e5e7eb;
}

html[data-theme='dark'] .pagination #page-info {
    color: #94a3b8;
}

html[data-theme='dark'] .pagination button:disabled {
    background-color: #374151;
}

html[data-theme='dark'] .btn {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #334155;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

html[data-theme='dark'] .btn.active {
    background-color: #001f3f;
    color: white;
}

html[data-theme='dark'] .btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Light theme refinements */
html[data-theme='light'] .dashboard-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .dashboard-header h1,
html[data-theme='light'] .table-section h2 {
    color: #1f2937;
}

/* Responsive date filter */
@media (max-width: 992px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .date-filter {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}
