/* Custom styles for TabsProspector webapp */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* light gray bg */
    color: #1f2937;
}

:root {
    --brand-yellow: #facc15; /* yellow-400 */
    --brand-yellow-hover: #eab308; /* yellow-500 */
    --brand-yellow-dark: #ca8a04; /* yellow-600 */
}

/* Custom primary button styling matching brand yellow */
.btn-primary {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #111827 !important;
    font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-yellow-hover);
    border-color: var(--brand-yellow-hover);
    color: #111827 !important;
}
.btn-primary:active, .btn-primary.active {
    background-color: var(--brand-yellow-dark) !important;
    border-color: var(--brand-yellow-dark) !important;
    color: #ffffff !important;
}

/* Outline primary button */
.btn-outline-primary {
    color: var(--brand-yellow-dark);
    border-color: var(--brand-yellow-dark);
}
.btn-outline-primary:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #111827;
}

/* Specific sidebar styling */
.active-sidebar-item {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    font-weight: 600;
}
.hover-bg-light:hover {
    background-color: #f9fafb;
    color: #111827 !important;
}
@media (max-width: 767.98px) {
    aside {
        border-bottom: 1px solid #dee2e6 !important;
        border-right: none !important;
    }
}

@media (min-width: 768px) {
    aside {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    .sidebar-toggle-btn {
        display: none;
    }
    aside.sidebar-collapsed {
        min-width: unset !important;
        width: auto;
    }
}

/* Project cards and settings */
.project-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.project-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Style for selected card (checked btn-check) */
.project-radio:checked + .project-card {
    border-color: #198754 !important; /* Green border */
    background-color: #f0fdf4 !important; /* Soft green bg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em; /* ensures same heights for the text block */
    line-height: 1.5;
}

.min-w-0 {
  min-width: 0 !important;
}


.bg-success-soft {
    background-color: #d1e7dd !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Alpine.js x-cloak preventing element flickering */
[x-cloak] {
    display: none !important;
}

/* Brand-specific Pagination Overrides */
.pagination .page-item.active .page-link {
    background-color: var(--brand-yellow) !important;
    border-color: var(--brand-yellow) !important;
    color: #111827 !important;
    font-weight: 600;
}

.pagination .page-link {
    color: var(--brand-yellow-dark);
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: var(--brand-yellow) !important;
    border-color: var(--brand-yellow) !important;
    color: #111827 !important;
    box-shadow: 0 0 0 0.25rem rgba(250, 204, 21, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af !important;
    background-color: transparent !important;
    border-color: #e5e7eb !important;
}
