/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    margin: 0;
}

/* ===== NAVBAR ===== */
.ff-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
}

.navbar .nav-link {
    color: #475569 !important;
}

    .navbar .nav-link:hover {
        color: #4f8cff !important;
    }

.navbar .nav-item {
    display: flex;
    align-items: center;
}

.ff-navbar .navbar-brand {
    color: #0f172a !important;
}

    .ff-navbar .navbar-brand:hover {
        color: #0f172a !important;
    }

.ff-navbar .nav-link {
    font-weight: 500;
}

    .ff-navbar .nav-link i {
        color: #4f8cff;
    }

/* ===== LOGO ===== */
.ff-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f8cff, #19c6b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ===== MAIN ===== */
.ff-main-wrapper {
    min-height: calc(100vh - 130px);
}

/* ===== HOME WRAPPER ===== */
.ff-home-wrapper {
    min-height: calc(100vh - 130px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== TITULO ===== */
.ff-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

/* ===== TEXTO ===== */
.ff-hero-text {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== BADGE ===== */
.ff-badge {
    display: inline-block;
    background: #e0ecff;
    color: #4f8cff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== GRID DE FUNCIONES ===== */
.ff-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== CARD LINK ===== */
.ff-card-link {
    text-decoration: none;
    color: inherit;
}

/* ===== CARDS ===== */
.ff-feature-card {
    background: #ffffff;
    padding: 1.3rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 150px;
}

    .ff-feature-card i {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        color: #4f8cff;
    }

    .ff-feature-card h6 {
        font-weight: 700;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        color: #0f172a;
    }

    .ff-feature-card p {
        font-size: 0.95rem;
        color: #64748b;
        margin-bottom: 0;
    }

    .ff-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .ff-feature-card.disabled {
        opacity: 0.65;
        cursor: default;
    }

        .ff-feature-card.disabled:hover {
            transform: none;
            box-shadow: none;
        }

/* ===== BOTONES ===== */
.ff-btn-primary {
    background: #4f8cff;
    border: none;
    color: white;
    border-radius: 10px;
}

    .ff-btn-primary:hover {
        background: #3b78ec;
        color: white;
    }

.ff-btn-outline {
    border: 1px solid #d1d5db;
    color: #1e293b;
    border-radius: 10px;
    background: #ffffff;
}

    .ff-btn-outline:hover {
        background: #f1f5f9;
        color: #1e293b;
    }

/* ===== LOGIN ===== */
.ff-auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

/* ===== INPUTS ===== */
.form-control {
    border-radius: 10px;
}

/* ===== FOOTER ===== */
.ff-footer {
    color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .ff-home-wrapper {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ff-features-grid {
        grid-template-columns: 1fr;
    }

    .ff-hero-title {
        font-size: 2.2rem;
    }
}
/* ===== PÁGINAS INTERNAS ===== */
.ff-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ff-page-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.ff-page-subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
}

/* ===== CONTENEDOR TIPO CARD ===== */
.ff-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
}

/* ===== ALERTAS ===== */
.ff-alert {
    border-radius: 12px;
}

/* ===== TABLA ===== */
.ff-table thead th {
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    background: #f8fafc;
}

.ff-table tbody td {
    vertical-align: middle;
    color: #334155;
}

/* ===== BOTÓN DE ACCIÓN DE TABLA ===== */
.ff-btn-table {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    margin-left: 0.2rem;
}

    .ff-btn-table:hover {
        background: #f8fafc;
    }

/* ===== VISTA DETALLE ===== */
.ff-label-view {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.ff-value-view {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #0f172a;
    min-height: 48px;
}
/* ===== FOTO DEL CHOFER ===== */
.ff-photo-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-photo-preview {
    max-width: 100%;
    max-height: 240px;
    border-radius: 14px;
    object-fit: cover;
}

.ff-avatar-mini {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
}

.ff-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f8cff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4ff;


}
/* ===== MÓDULO CHOFERES - INDEX ===== */
.ff-chofer-table tbody tr {
    transition: background-color 0.2s ease;
}

    .ff-chofer-table tbody tr:hover {
        background: #f8fbff;
    }

.ff-driver-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 260px;
}

.ff-driver-info {
    min-width: 0;
}

.ff-driver-name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.ff-driver-meta {
    font-size: 0.86rem;
    color: #64748b;
}

.ff-avatar-mini {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.ff-avatar-placeholder {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0ecff, #eef7ff);
    color: #4f8cff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid #dbe4ff;
    box-shadow: 0 4px 10px rgba(79, 140, 255, 0.08);
}

.ff-table-text {
    color: #334155;
    font-size: 0.95rem;
}

.ff-badge-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ff-badge-file-primary {
    background: #e0ecff;
    color: #2563eb;
}

.ff-badge-file-success {
    background: #dcfce7;
    color: #15803d;
}

.ff-badge-file-warning {
    background: #fef3c7;
    color: #b45309;
}

.ff-chofer-table td,
.ff-chofer-table th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .ff-driver-cell {
        min-width: 220px;
    }

    .ff-avatar-mini,
    .ff-avatar-placeholder {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}
.ff-navbar {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #e8ecf3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ff-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ff-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.ff-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.ff-user-menu {
    min-height: 44px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #e6ebf2;
    border-radius: 999px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

    .ff-user-menu:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

.ff-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.ff-user-info {
    flex-direction: column;
    line-height: 1.1;
}

.ff-user-email {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.ff-user-role {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.ff-dropdown {
    margin-top: 10px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    padding: 8px;
}