/* 1. Global Modern Font & Background */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9; /* Very soft, clean gray/blue */
    color: #333333;
}

/* 2. Sleek Maritime Navbar */
.navbar-custom {
    background-color: #0F2027 !important; /* Deep Navy/Black */
    background: linear-gradient(to right, #0F2027, #203A43, #2C5364) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4DB8FF !important; /* Light blue hover effect */
}

/* 3. Modern Cards (Soft shadows, no harsh borders, hover effect) */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Make cards "lift" slightly when you hover over them */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-weight: 600;
}

/* 4. Inputs and Buttons */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(32, 58, 67, 0.1);
    border-color: #203A43;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #203A43;
    border-color: #203A43;
}

.btn-primary:hover {
    background-color: #0F2027;
    border-color: #0F2027;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
}
.icon-box-primary { background: rgba(32, 58, 67, 0.1); color: #203A43; }
.icon-box-success { background: rgba(25, 135, 84, 0.1); color: #198754; }

/* 6. Premium Tables (Airy, clean, hover effects) */
.table-custom {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 0;
}
.table-custom thead {
    background-color: #f8f9fc;
    border-bottom: 2px solid #edf2f9;
}
.table-custom th {
    color: #8492a6;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
}
.table-custom td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    color: #3c4d62;
    font-weight: 500;
    border-bottom: 1px solid #edf2f9;
}
.table-custom tbody tr:hover { background-color: #f8f9fc; }

/* 7. Soft Badges (Like modern Apple/Google apps) */
.badge-soft-primary { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; font-weight: 600; padding: 0.4em 0.6em; }
.badge-soft-success { background-color: rgba(25, 135, 84, 0.1); color: #198754; font-weight: 600; padding: 0.4em 0.6em; }
.badge-soft-warning { background-color: rgba(255, 193, 7, 0.15); color: #b08103; font-weight: 600; padding: 0.4em 0.6em; }


/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    /* Shrink table padding and font size so data fits on mobile */
    .table-custom th, .table-custom td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Make submit buttons full width for easier thumb-tapping */
    form button[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Style the mobile dropdown menu to look like a floating card */
    .navbar-collapse {
        background: rgba(32, 58, 67, 0.98);
        padding: 15px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    
    .nav-item {
        margin-bottom: 8px;
    }
    
    /* Ensure the mobile menu border separator is subtle */
    .border-secondary {
        border-color: rgba(255,255,255,0.1) !important;
    }
}