/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #212529;
    overflow-y: auto;
    z-index: 1000;
    color: #adb5bd;
}

.sidebar-brand {
    color: white;
    border-bottom: 1px solid #343a40;
}

.sidebar-brand h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background-color: #343a40;
    border-left-color: #0d6efd;
}

.sidebar-nav .nav-link.active {
    color: white;
    background-color: #343a40;
    border-left-color: #0d6efd;
}

.sidebar-nav .nav-link.disabled {
    color: #6c757d;
    cursor: default;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-divider {
    padding: 15px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    border-top: 1px solid #343a40;
    margin-top: 5px;
}

/* Main Content */
.main-wrapper {
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.main-content {
    padding: 20px;
    flex-grow: 1;
    background-color: #f8f9fa;
}

/* Tool Cards */
.tool-card {
    border: 1px solid #e9ecef;
    border-top: 4px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-card-blue { border-top-color: #0d6efd; }
.tool-card-green { border-top-color: #198754; }
.tool-card-orange { border-top-color: #fd7e14; }
.tool-card-purple { border-top-color: #6f42c1; }
.tool-card-teal { border-top-color: #20c997; }

.tool-icon {
    font-size: 2.5rem;
}

.text-purple { color: #6f42c1 !important; }
.bg-purple { background-color: #6f42c1 !important; }

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

.text-teal { color: #20c997 !important; }
.bg-teal { background-color: #20c997 !important; }

.btn-teal {
    background-color: #20c997;
    border-color: #20c997;
    color: white;
}

.btn-teal:hover {
    background-color: #1aab80;
    border-color: #1aab80;
    color: white;
}

/* Status Cards (Tax Report) */
.status-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
}

.status-card h2 {
    font-weight: 700;
    font-size: 1.8rem;
}

/* Tables */
.table {
    font-size: 0.875rem;
}

.table thead {
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f0f4ff;
}

/* Filing Reference */
.filing-reference {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 2;
}

.filing-reference .label {
    display: inline-block;
    min-width: 300px;
}

.filing-reference .amount {
    display: inline-block;
    min-width: 120px;
    text-align: right;
}

.filing-reference .separator {
    border-top: 1px solid #dee2e6;
    margin: 4px 0;
}

.filing-reference .total-line {
    border-top: 2px solid #212529;
    font-weight: 700;
    padding-top: 4px;
}

/* Cards */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-header h5 {
    font-weight: 600;
    color: #212529;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #343a40;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #495057;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .filing-reference .label {
        min-width: 200px;
    }
}

/* Print */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 0 !important;
        background: white !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .table {
        font-size: 0.8rem;
    }

    .filing-reference {
        font-size: 0.85rem;
    }
}
