/* ===================================
   ODBB Attorneys - Professional Legal Portal
   Color Scheme: Navy Blue + Grey + Gold
   =================================== */

:root {
    /* Primary Colors - Navy Blue (60%) */
    --navy-primary: #1a2a4e;
    --navy-dark: #0f1729;
    --navy-light: #2d4575;
    
    /* Secondary Colors - Grey/White (30%) */
    --grey-light: #f5f7fa;
    --grey-medium: #e1e8ed;
    --grey-dark: #6c757d;
    --white: #ffffff;
    
    /* Accent Colors - Gold/Bronze (10%) */
    --gold-primary: #d4af37;
    --gold-light: #f0d974;
    --gold-dark: #b8941f;
    
    /* Supporting Colors */
    --text-primary: #1a2a4e;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* ===================================
   Typography & Base Styles
   =================================== */

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.text-navy { color: var(--navy-primary) !important; }
.text-gold { color: var(--gold-primary) !important; }
.text-gray { color: var(--text-secondary) !important; }
.text-light-gray { color: var(--grey-medium) !important; }

.bg-navy { background-color: var(--navy-primary) !important; }
.bg-gold { background-color: var(--gold-primary) !important; }
.bg-light { background-color: var(--grey-light) !important; }

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 50%, var(--navy-light) 100%);
    color: var(--text-light);
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-weight: 700;
    color: var(--white);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    color: var(--white);
    font-weight: 500;
}

.feature-item i {
    font-size: 1.5rem;
}

/* ===================================
   Login Card
   =================================== */

.login-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
}

.card-header-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.card-header-gold h3 {
    font-weight: 600;
    font-size: 1.5rem;
}

.login-card .form-label {
    color: var(--navy-primary);
    font-weight: 600;
}

.login-card .form-control {
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.login-card .card-footer {
    background-color: var(--grey-light);
    padding: 15px;
}

/* ===================================
   Buttons
   =================================== */

.btn-navy {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(26, 42, 78, 0.3);
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 42, 78, 0.4);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
    color: var(--navy-dark);
}

.btn-outline-navy {
    border: 2px solid var(--navy-primary);
    color: var(--navy-primary);
    background: transparent;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-navy:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.btn-outline-navy-narrow {
    border: 2px solid var(--navy-primary);
    color: var(--navy-primary);
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-navy-narrow:hover {
    background: var(--navy-primary);
    color: var(--white);
}

/* ===================================
   Resources & News Section
   =================================== */

.resources-section {
    background-color: var(--grey-light);
    padding: 60px 0;
}

.resource-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--gold-primary);
}

.card-icon-header i {
    font-size: 2.5rem;
    color: var(--gold-primary);
}

.card-icon-header h3 {
    margin: 0;
    font-weight: 700;
}

/* Resource List */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--grey-light);
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: var(--grey-medium);
    transform: translateX(5px);
}

.resource-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.resource-info i {
    font-size: 2rem;
}

.resource-info h5 {
    margin: 0;
    color: var(--navy-primary);
    font-weight: 600;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--grey-light);
    border-radius: 8px;
    border-left: 4px solid var(--navy-primary);
    transition: all 0.3s ease;
}

.news-item:hover {
    background: var(--grey-medium);
    transform: translateX(5px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 70px;
    text-align: center;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-content h5 {
    color: var(--navy-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===================================
   Features Section
   =================================== */

.features-section {
    padding: 60px 0;
    background: var(--white);
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: var(--grey-light);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: var(--white);
    border: 2px solid var(--gold-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    padding: 60px 0;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--white);
}

.contact-info .contact-item i {
    font-size: 1.5rem;
    width: 40px;
}

.contact-form-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-form-card .form-control {
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 991px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .login-card {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .resource-item,
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-icon-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Data Tables & Grids
   =================================== */

.data-table-wrapper {
    overflow-x: auto;
    background: var(--grey-light);
    border-radius: 8px;
    padding: 10px;
}

.data-table {
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
    table-layout: fixed;
    width: 100%;
}

.data-table th {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 10px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid var(--navy-dark);
    min-width: 80px;
}

.data-table td {
    padding: 8px 10px;
    border: 1px solid var(--grey-medium);
    vertical-align: top;
    position: relative;
}

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

.data-table tbody tr:nth-child(even) {
    background: var(--grey-light);
}

.data-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.data-table tbody tr.expanded {
    background: rgba(212, 175, 55, 0.15) !important;
}

.data-table td .cell-content {
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.data-table tr.expanded td .cell-content {
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.data-table td .expand-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.data-table tbody tr:hover td .expand-icon {
    opacity: 1;
}

.data-table tr.expanded td .expand-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
}

.row-expand-hint {
    text-align: center;
    padding: 10px;
    background: var(--grey-light);
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.row-expand-hint i {
    color: var(--info);
    margin-right: 8px;
}

/* Sheet/Data Info Panel */
.sheet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--grey-light);
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
    flex-wrap: wrap;
    gap: 15px;
}

.sheet-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--gold-primary);
}

.header-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 6px;
    border: 2px solid var(--navy-primary);
}

.header-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.header-toggle label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-primary);
}

/* ===================================
   Pagination Controls
   =================================== */

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background: var(--grey-light);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: var(--navy-primary);
    font-weight: 600;
}

.pagination-controls-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-selector select {
    padding: 8px 12px;
    border: 2px solid var(--navy-primary);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy-primary);
    font-weight: 600;
    cursor: pointer;
}

.page-size-selector select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--grey-light);
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-buttons button {
    padding: 8px 16px;
    border: 2px solid var(--navy-primary);
    background: var(--white);
    color: var(--navy-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-buttons button:hover:not(:disabled) {
    background: var(--navy-primary);
    color: var(--white);
}

.pagination-buttons button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-buttons button.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--navy-dark);
}

/* ===================================
   Utility Classes
   =================================== */

.min-vh-75 {
    min-height: 75vh;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}
