/**
 * Custom CSS for CPA Firm Clients
 * This file contains additional styles beyond the Bootstrap framework
 */

/* General styling overrides */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Dashboard card styling */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Custom styling for the calendar */
.calendar-container {
    font-size: 0.9rem;
}

.calendar-table th {
    text-align: center;
    padding: 0.5rem;
}

.calendar-table td {
    height: 40px;
    width: 40px;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.date-cell {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.today {
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.has-event {
    position: relative;
}

.event-dot {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Custom styling for charts */
.chart-container {
    position: relative;
    height: 300px;
}

/* Reminder styling */
.reminder-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Custom styling for forms */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tool and report card styling */
.tool-card, .report-card {
    transition: transform 0.2s;
}

.tool-card:hover, .report-card:hover {
    transform: translateY(-5px);
}

/* Profile image styling */
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bs-dark);
}

/* Custom table styling */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* DataTables styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    margin: 0 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
    background: var(--bs-dark);
    border-color: var(--bs-dark);
    color: white !important;
}

/* Custom styling for login and registration forms */
.auth-form {
    max-width: 450px;
    margin: 0 auto;
}

/* Custom styling for firm subdomain display */
.firm-subdomain {
    font-family: monospace;
    background-color: var(--bs-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: inline-block;
}

/* Purple color class for My Team section */
.text-purple {
    color: #6f42c1;
}

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

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

.btn-outline-purple:hover {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Custom tooltip styling */
.custom-tooltip {
    position: relative;
    cursor: pointer;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bs-dark);
    color: var(--bs-light);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .calendar-table td {
        height: 30px;
        width: 30px;
    }
}

/* Admin dashboard specific styling */
.admin-dashboard .card {
    margin-bottom: 1.5rem;
}

.admin-dashboard .quick-stats {
    text-align: center;
}

.admin-dashboard .quick-stats i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Tool configuration editor styling */
.tool-config-editor {
    min-height: 300px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: monospace;
    background-color: var(--bs-dark);
}

/* Report configuration editor styling */
.report-config-editor {
    min-height: 300px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: monospace;
    background-color: var(--bs-dark);
}

/* Financial calculator styling */
.calculator-container {
    max-width: 500px;
    margin: 0 auto;
}

.calculator-display {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
    font-family: monospace;
    font-size: 1.5rem;
}

.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calculator-key {
    padding: 1rem;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 0.375rem;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculator-key:hover {
    background-color: var(--bs-primary);
    color: white;
}

.calculator-key.operator {
    background-color: var(--bs-secondary);
    color: white;
}

.calculator-key.equals {
    background-color: var(--bs-primary);
    color: white;
    grid-column: span 2;
}

.calculator-key.clear {
    background-color: var(--bs-danger);
    color: white;
    grid-column: span 2;
}
