/* Platessa Trip Management Custom Styles */

:root {
    --platessa-primary: #0d6efd;
    --platessa-dark: #212529;
}

/* General */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
#sidebar {
    transition: all 0.3s;
}

/* Tables */
.table-hover tbody tr:hover {
    cursor: pointer;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Forms */
.form-label {
    font-weight: 500;
}

/* HTMX Loading States */
.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

/* Status Badges */
.badge-status-new {
    background-color: #6c757d;
}

.badge-status-publicRequest {
    background-color: #17a2b8;
}

.badge-status-contractCreated {
    background-color: #ffc107;
    color: #212529;
}

.badge-status-contractSigned {
    background-color: #28a745;
}

.badge-status-depositPayed {
    background-color: #20c997;
}

.badge-status-fullPricePayed {
    background-color: #198754;
}

.badge-status-cancelled {
    background-color: #dc3545;
}

/* Calendar */
.calendar-day {
    min-height: 80px;
    border: 1px solid #dee2e6;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 2px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    /* Prevent table overflow breaking mobile layout */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}
