/* NavixGate Premium Maritime Design CSS Theme */
:root {
    --navy-dark: #0A192F;
    --navy-primary: #0B2545;
    --navy-light: #134074;
    --accent-blue: #0077B6;
    --accent-cyan: #00A8E8;
    --gray-light: #F4F6F9;
    --gray-card: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --gold-accent: #D4AF37;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Maritime Header / Navbar */
.navix-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    border-bottom: 4px solid var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navix-logo-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.navix-logo-brand span {
    color: var(--accent-cyan);
}

.navix-header .contact-link {
    color: #E2E8F0;
    transition: color 0.2s ease-in-out;
}

.navix-header .contact-link:hover {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(10, 25, 47, 0.88), rgba(11, 37, 69, 0.92)),
                url('https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: #FFFFFF;
    padding: 3.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.hero-banner p.subtitle {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto 1.5rem auto;
    color: #CBD5E1;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #E2E8F0;
}

/* Registration Form Sections */
.section-card {
    background-color: var(--gray-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.section-title {
    color: var(--navy-primary);
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-number {
    background: var(--navy-primary);
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Form Controls */
.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.required-star {
    color: #DC2626;
    font-weight: bold;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

.char-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* Checkbox Cards for Products & Services */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.checkbox-tile {
    background: var(--gray-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-tile:hover {
    border-color: var(--accent-cyan);
    background: #EBF8FF;
}

.checkbox-tile input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy-primary);
    cursor: pointer;
}

.checkbox-tile label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
}

/* Dynamic Rows Table for Ports */
.ports-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0;
}

.ports-table th {
    background-color: var(--navy-primary);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.75rem;
}

.ports-table th:first-child {
    border-top-left-radius: 8px;
}

.ports-table th:last-child {
    border-top-right-radius: 8px;
}

.ports-table td {
    padding: 0.6rem;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
}

/* Submit Button */
.btn-submit-main {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-submit-main:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.5);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Footer */
footer.navix-footer {
    background-color: var(--navy-dark);
    color: #94A3B8;
    padding: 2.5rem 0 1.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.navix-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

footer.navix-footer a:hover {
    text-decoration: underline;
}

/* Admin Dashboard Cards & Tables */
.stat-card {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card.bg-navy {
    background: linear-gradient(135deg, #0A192F 0%, #134074 100%);
}

.stat-card.bg-blue {
    background: linear-gradient(135deg, #0077B6 0%, #00A8E8 100%);
}

.stat-card.bg-teal {
    background: linear-gradient(135deg, #028090 0%, #00A896 100%);
}

.stat-card.bg-gold {
    background: linear-gradient(135deg, #C68B59 0%, #D4AF37 100%);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* Modal and Detailed Views */
.detail-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    .section-card {
        padding: 1.25rem;
    }
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Official NavixGate logo in the portal header */
.navix-brand-logo {
    width: auto;
    height: 54px;
    max-width: min(230px, 55vw);
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .navix-brand-logo { height: 42px; max-width: 205px; }
}
