/* =========================
   GLOBAL STYLES (Migrated from VCM)
   ========================= */
:root {
    --azul: #0b1d3a;
    --warn: #facc15;
    --bg: #f5f7fb;
    --card: #fff;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    padding-top: 75px;
    /* Space for fixed header */
}

* {
    box-sizing: border-box;
}

/* Layout Containers */
.layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.layout-inner {
    width: 100%;
    max-width: 1400px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 1.5rem;
}

/* Page Headers */
.page-header {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    color: var(--azul);
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
}

.page-subtitle {
    margin: 0;
    color: #64748b;
}

/* ESTILOS NAVBAR */
.site-header {
    background: #0b1d3a;
    color: #d9e2f2;
    border-bottom: 4px solid #facc15;
    height: 75px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-text {
    line-height: 1.2;
}

.header-text strong {
    color: #fff;
    font-size: 0.85rem;
}

.header-text small {
    color: #cbd5e1;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.nav-menu a {
    color: #d9e2f2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-menu a.active {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    font-weight: 700;
}

/* Dropdown simple CSS override */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-text {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .layout {
        padding: 1rem;
    }

    .layout-inner {
        padding: 1rem;
    }
}

/* Tables (Global) */
.vcm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.vcm-table th,
.vcm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.vcm-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vcm-table tr:hover {
    background-color: #f1f5f9;
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view {
    background: #fff;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-edit {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.btn-del {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.btn-view:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.btn-del:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* General Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--azul);
    color: #fff;
}

.btn-primary:hover {
    background: #1e3a8a;
    box-shadow: 0 4px 12px rgba(11, 29, 58, 0.2);
}

.btn-secondary {
    background: #fff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #94a3b8;
}

.btn-dark {
    background: #1e293b;
    color: #fff;
}

.btn-dark:hover {
    background: #0f172a;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: var(--azul);
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* =========================
   LOGIN PAGE STYLES
   ========================= */
body.login-body {
    padding-top: 0;
    height: 100%;
}

html.login-html {
    height: 100%;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Left Side - Form */
.login-form-wrapper {
    flex: 0.8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    order: 1;
    /* Ensure it's first */
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.brand-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.login-header {
    border-left: 4px solid #dc3545;
    /* Red bar */
    padding-left: 15px;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--azul);
    margin: 0;
    line-height: 1.2;
}

.login-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.1);
}

.btn-primary {
    background: var(--azul);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 29, 58, 0.2);
}

/* Right Side - Image */
.login-image {
    flex: 1.2;
    background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    /* Port/Ship image */
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    order: 2;
}

.login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 29, 58, 0.9), rgba(11, 29, 58, 0.4));
}

.login-caption {
    position: relative;
    color: white;
    z-index: 2;
    max-width: 600px;
}

.login-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.login-caption p {
    font-size: 1.25rem;
    opacity: 0.8;
    font-weight: 300;
}

@media (max-width: 900px) {
    .login-image {
        display: none;
    }

    .login-form-wrapper {
        flex: 1;
    }
}