/* File: portal/static/portal/css/portal.css */

/* ============================================================================
   TYPOGRAPHY - NUNITO SANS EXTRALIGHT 200
   ========================================================================== */

* {
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 200 !important;
}

/* Override all Tailwind font weight utilities */
.font-bold, .font-semibold, .font-medium, .font-normal {
    font-weight: 400 !important;
}

/* ============================================================================
   SIDEBAR STYLES
   ========================================================================== */

#sidebar {
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #374151;
    color: white;
}

.menu-item.active {
    background-color: #1f2937;
    color: white;
    border-left: 4px solid #3b82f6;
}

.menu-item .icon-wrapper {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-item .icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
}

#sidebar .label {
    display: none;
}

#sidebar.expanded .label {
    display: inline;
}

#sidebar .icon-wrapper {
    flex-shrink: 0;
}


/* ============================================================================
   STATUS BADGES - OUTLINE STYLE
   ========================================================================== */

.badge-outline {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    border-radius: 0.25rem;
}

/* Status-specific badge colors */
.badge-closed {
    border-color: #d1d5db;
    color: #6b7280;
}

.badge-pending-approval {
    border-color: #fbbf24;
    color: #d97706;
}

.badge-in-progress {
    border-color: #60a5fa;
    color: #2563eb;
}

.badge-scheduled {
    border-color: #a78bfa;
    color: #7c3aed;
}

.badge-partial {
    border-color: #fb923c;
    color: #ea580c;
}

.badge-complete {
    border-color: #4ade80;
    color: #16a34a;
}

.badge-open {
    border-color: #d1d5db;
    color: #4b5563;
}


/* ============================================================================
   TABLE STYLES - BUSINESS PROFESSIONAL
   ========================================================================== */

/* Reduced table cell padding */
table.business-table td {
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
}

table.business-table th {
    padding: 0.75rem 1rem; /* py-3 px-4 */
}

/* Row striping */
table.business-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table.business-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

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

/* Text link styling for actions */
.table-action-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.table-action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* ============================================================================
   FILTER FORM STYLES
   ========================================================================== */

.filter-form {
    padding: 0.75rem;
}

.filter-form input,
.filter-form select {
    font-size: 0.875rem;
}


/* ============================================================================
   STAT CARDS
   ========================================================================== */

.stat-card-icon svg {
    stroke-width: 1.5;
}


/* ============================================================================
   TYPOGRAPHY REFINEMENTS
   ========================================================================== */

/* Consistent heading weights */
h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 600;
}

/* Table text consistency */
table th {
    font-weight: 600;
}

table td {
    font-weight: 400;
}


/* ============================================================================
   BORDER RADIUS ADJUSTMENTS - MINIMAL
   ========================================================================== */

/* Override Tailwind's default rounded for sharper look */
.rounded-minimal {
    border-radius: 0.25rem;
}

.rounded-none-important {
    border-radius: 0 !important;
}


/* ============================================================================
   MODAL STYLES
   ========================================================================== */

.modal-backdrop {
    background-color: rgba(17, 24, 39, 0.5);
}


/* ============================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text ellipsis helper */
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Numeric column alignment helper */
.numeric-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
