/* ============================================
   CrewSettings — AdminLTE Custom Overrides
   ============================================ */

/* Branding colors */
:root {
    --primary: #d32129;
    --primary-hover: #b91c23;
}

/* Font override */
body {
    font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.main-header.navbar {
    background-color: #1e293b;
    border-bottom: none;
}

/* Sidebar branding */
.main-sidebar {
    background-color: #1e293b;
}

.main-sidebar .sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 57px);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* Active nav link — use our brand red */
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    border: 1px solid #e2e8f0;
    padding: 20px;
}

/* Page titles */
.card>h1,
.content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* Login page */
.login-page {
    background: #f4f6f9;
}

.login-box {
    width: 400px;
}

.login-card-body {
    border-radius: 0.5rem;
}

/* Legacy .btn class (used in templates) — map to AdminLTE primary */
.btn:not(.btn-secondary):not(.btn-default):not(.btn-info):not(.btn-success):not(.btn-warning):not(.btn-danger):not([style*="background-color"]) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn:not(.btn-secondary):not(.btn-default):not(.btn-info):not(.btn-success):not(.btn-warning):not(.btn-danger):not([style*="background-color"]):hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

/* Feature Grid (Extra page) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    border-color: var(--primary);
    text-decoration: none;
    color: #212529;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Table layout compatibility */
.table {
    width: 100%;
    font-size: 13px;
}

.tableLayout {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.table td,
.table th,
.tableLayout td,
.tableLayout th {
    padding: 6px 10px;
}

.tableLayout td,
.tableLayout th {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tableLayout td {
    font-size: 13px;
}

.tableLayout thead tr {
    background: #f3f4f6 !important;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

.tableLayout thead th {
    padding: 1rem !important;
}

/* Responsive mobile hide */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Status badges */
.badge-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    color: #fff;
    display: inline-block;
}

/* Content wrapper background */
.content-wrapper {
    background-color: #f4f6f9;
}