* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-panel, .results-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-panel h2, .results-panel h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results-content {
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: 600;
    color: #333;
}

.result-item .value {
    font-weight: 700;
    color: #2a5298;
    font-size: 1.1rem;
}

.timeline-section {
    margin-top: 25px;
}

.timeline-section h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.timeline {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    font-weight: 600;
    color: #2a5298;
    min-width: 80px;
    font-size: 0.9rem;
}

.timeline-description {
    margin-left: 15px;
    color: #555;
    font-size: 0.9rem;
}

.timeline-description.completion {
    font-weight: 700;
    color: #2a5298;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px 0;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.visual-timeline-section {
    margin-top: 25px;
}

.visual-timeline-section h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.visual-timeline {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid #e9ecef;
}

.stage-container {
    display: inline-block;
    vertical-align: top;
    margin-right: 30px;
    text-align: center;
    min-width: 120px;
}

.stage-time {
    font-weight: 600;
    color: #2a5298;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stage-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.vessel-positions {
    position: relative;
    height: 60px;
    background: linear-gradient(to right, #e3f2fd, #f3e5f5);
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
}

.incident-marker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #FF4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.incident-marker::after {
    content: '🚨';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #FF4444;
    white-space: nowrap;
}

.errv-vessel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 15px;
    background: #2a5298;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
}

.errv-vessel::before {
    content: '🚢';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #2a5298;
    white-space: nowrap;
}

.dc-vessel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 12px;
    background: #4CAF50;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
}

.dc-vessel::before {
    content: '🚤';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #4CAF50;
    white-space: nowrap;
}

.distance-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.distance-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: #999;
    border-radius: 1px;
}

.distance-marker.left {
    left: 25%;
}

.distance-marker.right {
    left: 75%;
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chart-container h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-section h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

.guidelines-info {
    margin-bottom: 20px;
}

.guideline-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    border-left: 4px solid #2a5298;
}

.guideline-item h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.guideline-item p, .guideline-item ul {
    margin-bottom: 10px;
    color: #555;
}

.guideline-item ul {
    padding-left: 20px;
}

.guideline-item li {
    margin-bottom: 5px;
}

.detailed-guidelines {
    margin-top: 20px;
}

.guidelines-toggle {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #2a5298;
    border-radius: 8px;
    color: #2a5298;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guidelines-toggle:hover {
    background: #2a5298;
    color: white;
}

.guidelines-content {
    margin-top: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.guideline-scenario {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.guideline-scenario:last-child {
    margin-bottom: 0;
}

.guideline-scenario h4 {
    color: #0d6efd;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.guideline-scenario p {
    margin-bottom: 10px;
    color: #555;
}

.guideline-scenario ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.guideline-scenario li {
    margin-bottom: 5px;
    color: #555;
}

.status-success {
    color: #198754;
    font-weight: 600;
}

.status-warning {
    color: #ffc107;
    font-weight: 600;
}

.status-danger {
    color: #dc3545;
    font-weight: 600;
}

.speed-inputs {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.speed-inputs h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.speed-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.speed-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.speed-row input {
    width: 100%;
}

.speed-row input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .calculator-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guidelines-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .speed-inputs {
        padding: 15px;
    }
    
    .speed-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .speed-row .input-group {
        width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .input-panel, .results-panel {
        padding: 20px;
    }
    
    .input-group label {
        font-size: 0.9rem;
    }
    
    .input-group input, .input-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .calculate-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .reset-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-item .label {
        font-size: 0.9rem;
    }
    
    .result-item .value {
        font-size: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .timeline-time {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .timeline-description {
        margin-left: 0;
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-container h3 {
        font-size: 1.1rem;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
    }
    
    .guideline-item {
        padding: 12px;
    }
    
    .guideline-item h4 {
        font-size: 1rem;
    }
    
    .guideline-item p, .guideline-item ul {
        font-size: 0.9rem;
    }
    
    .guidelines-toggle {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .guidelines-content {
        padding: 15px;
    }
    
    .guideline-scenario h4 {
        font-size: 1rem;
    }
    
    .guideline-scenario p {
        font-size: 0.9rem;
    }
    
    .visual-timeline {
        padding: 15px;
    }
    
    .stage-container {
        min-width: 100px;
        margin-right: 20px;
    }
    
    .stage-time {
        font-size: 0.8rem;
    }
    
    .stage-title {
        font-size: 0.7rem;
    }
    
    .vessel-positions {
        height: 50px;
    }
    
    .errv-vessel, .dc-vessel {
        width: 25px;
        height: 12px;
    }
    
    .errv-vessel::before, .dc-vessel::before {
        font-size: 0.6rem;
        top: -18px;
    }
    
    .incident-marker {
        width: 16px;
        height: 16px;
    }
    
    .incident-marker::after {
        font-size: 0.6rem;
        top: -20px;
    }
    
    /* Bootstrap responsive improvements */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand div {
        width: 35px !important;
        height: 35px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 0.25rem 0 !important;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .badge {
        font-size: 0.75rem !important;
    }
    
    .badge.fs-6 {
        font-size: 0.8rem !important;
    }
    
    /* Timeline improvements for mobile */
    .timeline-item {
        padding: 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .timeline-time {
        font-weight: 600 !important;
        min-width: 60px !important;
        font-size: 0.75rem !important;
    }
    
    .timeline-description {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Chart container improvements */
    .chart-container {
        min-height: 200px !important;
        max-height: 300px !important;
    }
    
    /* Navigation improvements */
    .navbar-collapse {
        background: rgba(255,255,255,0.1) !important;
        border-radius: 0.5rem !important;
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
    }
    
    .navbar-nav {
        text-align: center !important;
    }
    
    .navbar-nav .nav-link {
        border-radius: 0.375rem !important;
        margin: 0.125rem 0 !important;
    }
    
    /* Multi-asset specific mobile improvements */
    .dc-status {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .asset-card {
        margin-bottom: 1rem !important;
    }
    
    /* Form improvements for mobile */
    .row.g-3 > .col-md-6 {
        margin-bottom: 1rem !important;
    }
    
    .card.border-dark,
    .card.border-success,
    .card.border-warning,
    .card.border-secondary {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .input-panel, .results-panel {
        padding: 15px;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    .info-section {
        padding: 10px;
    
    /* Extra small screen improvements */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand div {
        width: 30px !important;
        height: 30px !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 0.9rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .form-label {
        font-size: 0.8rem !important;
    }
    
    .form-control, .form-select {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .badge {
        font-size: 0.7rem !important;
    }
    
    .timeline-item {
        padding: 0.4rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .timeline-time {
        font-size: 0.7rem !important;
        min-width: 50px !important;
    }
    
    .timeline-description {
        font-size: 0.75rem !important;
    }
    
    .chart-container {
        min-height: 150px !important;
        max-height: 250px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        max-width: 150px;
    }
    
    /* Shorten navigation text on very small screens */
    .navbar-nav .nav-link i {
        margin-right: 0.25rem !important;
    }
    
    /* Hide some text on very small screens */
    @media (max-width: 360px) {
        .navbar-nav .nav-link span {
            display: none;
        }
        
        .navbar-nav .nav-link {
            max-width: 44px;
            justify-content: center;
        }
        
        .navbar-nav .nav-link i {
            margin-right: 0 !important;
            font-size: 1.1rem;
        }
    }
    
    .dc-status {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Ensure proper spacing on very small screens */
    .row.g-3 > .col-md-6 {
        margin-bottom: 0.75rem !important;
    }
    
    .card.border-dark,
    .card.border-success,
    .card.border-warning,
    .card.border-secondary {
        margin-bottom: 1rem !important;
    }
    
    /* Improve button spacing */
    .btn {
        margin-bottom: 0.5rem !important;
    }
    
    /* Better form spacing */
    .form-group {
        margin-bottom: 0.75rem !important;
    }
    }
    
    .guideline-item {
        padding: 10px;
    }
    
    .guidelines-content {
        padding: 10px;
    }
    
    .timeline-item {
        padding: 6px 0;
    }
    
    .timeline-time {
        font-size: 0.75rem;
    }
    
    .timeline-description {
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .guidelines-toggle {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        background: white !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .form-control, .form-select {
        border: 2px solid #000 !important;
    }
    
    .btn {
        border: 2px solid #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #212529 0%, #343a40 100%);
        color: #f8f9fa;
    }
    
    .card {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .bg-light {
        background-color: #495057 !important;
        color: #f8f9fa;
    }
    
    .form-control, .form-select {
        background-color: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .form-control:focus, .form-select:focus {
        background-color: #495057;
        color: #f8f9fa;
    }
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Better touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .card {
        transition: transform 0.2s ease;
    }
    
    .card:active {
        transform: scale(0.99);
    }
    
    /* Improve scrolling */
    .timeline {
        -webkit-overflow-scrolling: touch;
    }
    
    .chart-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better form interaction */
    .input-group input:focus,
    .input-group select:focus {
        transform: scale(1.02);
    }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .chart-container {
        height: 150px !important;
    }
    
    .timeline {
        max-height: 120px !important;
    }
}

/* High DPI display improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn {
        border-width: 0.5px;
    }
    
    .card {
        border-width: 0.5px;
    }
    
    .form-control, .form-select {
        border-width: 0.5px;
    }
} 

/* --- Authentication and Blur Styles --- */
.auth-blurred {
    filter: blur(8px);
    user-select: none;
    transition: filter 0.3s ease;
    position: relative;
}

.auth-login-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    pointer-events: auto;
    filter: none !important;
}

.auth-indicator-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.auth-indicator-content i {
    color: #6c757d;
    font-size: 1rem;
}

.auth-indicator-content span {
    color: #666;
    font-weight: 500;
}

.auth-indicator-content button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.auth-indicator-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.auth-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #007bff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.auth-toast-show {
    transform: translateX(0);
}

.auth-toast-success {
    border-left-color: #28a745;
}

.auth-toast-success .auth-toast-content i {
    color: #28a745;
}

.auth-toast-info {
    border-left-color: #17a2b8;
}

.auth-toast-info .auth-toast-content i {
    color: #17a2b8;
}

.auth-toast-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.auth-login-nav-btn,
.auth-logout-nav-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.auth-login-nav-btn:hover,
.auth-logout-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* Mobile responsive for auth components */
@media (max-width: 768px) {
    .auth-login-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 10px 12px;
    }
    
    .auth-indicator-content {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .auth-indicator-content button {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .auth-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .auth-toast-show {
        transform: translateY(0);
    }
}

/* --- Modal Responsive Fix --- */
@media (max-width: 600px) {
  .modal-dialog {
    max-width: 95vw !important;
    width: 100% !important;
    margin: 0 auto;
  }
  .modal-content {
    border-radius: 10px;
  }
}

/* --- Results Panel Responsive Fix --- */
@media (max-width: 600px) {
  .results-content .d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0;
  }
  .results-content .fw-semibold,
  .results-content .fw-semibold.small {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 0.25rem;
  }
  .results-content .badge {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
    display: block;
    margin-bottom: 0;
  }
}

/* --- Prevent Horizontal Scroll on All Cards --- */
.card {
  max-width: 100vw;
  overflow-x: auto;
}

/* --- Fix for ERRV Position at DC Return badge overflow --- */
@media (max-width: 600px) {
  #errvPosition.badge {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    display: block;
    text-align: left;
  }
} 