
body {
  margin: 0;
  padding: 0;
  background: url("../images/ocean-bg.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}


.bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: url("../images/bubbles.png") no-repeat center center;
  background-size: contain;
  opacity: 0.8;
  animation: rise 8s infinite ease-in;
}

.bubble.x1 { left: 10%; }
.bubble.x2 { left: 30%; }
.bubble.x3 { left: 50%; }
.bubble.x4 { left: 70%; }
.bubble.x5 { left: 90%; }

@keyframes rise {
  0% {
      transform: translateY(0) scale(0.8);
      opacity: 0.5;
  }
  50% { 
      opacity: 1; 
  }
  100% {
      transform: translateY(-120vh) scale(1.2);
      opacity: 0;
  }
}

.card-header {
  font-weight: bold;
}


#loadingOverlay {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.5);
}

#loadingOverlay .spinner-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#mapPreviewArea {
  width: 100%;
  height: 200px;
}

#rightDisplayFrame {
  background-color: rgba(255, 255, 255, 0.85);
  min-height: 500px;
  padding: 15px;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

#rightDisplayFrame iframe,
#rightDisplayFrame img,
#rightDisplayFrame div.embed-responsive {
  width: 100%;
  height: auto;
}


#rightDisplayFrame .leaflet-container {
  height: 500px;
  width: 100%;
}


.card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.card-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
}


.btn {
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.form-select, .form-control {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.form-select:focus, .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


.radio-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}


.plot-container {
  background: white;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#plotContainer {
  width: 100% !important;
  height: 500px !important;
  background: transparent;
  border-radius: 4px;
  padding: 15px;
}

#expandedMapContainer {
  width: 100% !important;
  height: 500px !important;
  border-radius: 4px;
  overflow: hidden;
}


.js-plotly-plot {
  width: 100% !important;
  height: 100% !important;
}


#rightDisplayFrame {
  min-height: 500px;
  padding: 15px;
  overflow: visible;
  background-color: transparent;
}

#rightDisplayFrame.both-display {
  min-height: 1020px; 
} 

#plotContainer {
    padding: 0;
    margin: 0;
    height: auto;
}


.prediction-section {
    margin-top: 2rem;
}

.prediction-section .card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.prediction-section .card-header {
    background: #f8f9fa;
    border: none;
    color: #495057;
    font-weight: 600;
}

.prediction-status .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.prediction-status .badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268) !important;
}

.prediction-status .badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
    color: #212529;
}

.prediction-status .badge.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

.prediction-status .badge.bg-danger {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}


.prediction-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.prediction-section .form-select {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.prediction-section .form-select:hover {
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.prediction-section .form-select:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
    background: #ffffff;
}


#btnPredict {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btnPredict:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

#btnPredict:active {
    transform: translateY(0);
}

#btnPredict:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
}


#predictionInfo {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #bee5eb;
    color: #0c5460;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#predictionInfo.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffeaa7;
    color: #856404;
}

#predictionInfo.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #c3e6cb;
    color: #155724;
}

#predictionInfo.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #f5c6cb;
    color: #721c24;
}


#predictionResultsContainer {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#predictionChart {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}


#predictionTable {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#predictionTable thead th {
    background: linear-gradient(135deg, #343a40, #495057);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 0.75rem;
}

#predictionTable tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

#predictionTable tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#predictionTable tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}


.prediction-row-normal {
    border-left: 4px solid #28a745;
}

.prediction-row-warning {
    border-left: 4px solid #ffc107;
}

.prediction-row-danger {
    border-left: 4px solid #dc3545;
}


#btnExportPredictions {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

#btnExportPredictions:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a8a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}


#volumeResult {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

#volumeResult strong {
    color: #0c5460;
    font-weight: 600;
}


.volume-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.volume-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.volume-content {
    padding: 1.5rem;
}

.volume-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.volume-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

.volume-label {
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.volume-value {
    color: #17a2b8;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #17a2b8, #138496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.volume-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #17a2b8, transparent);
    margin: 1.5rem 0;
    border-radius: 1px;
}

.volume-section {
    margin-top: 1rem;
}

.volume-section-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.volume-units {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.volume-unit {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.volume-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.volume-unit:hover::before {
    left: 100%;
}

.volume-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    border-color: #2196f3;
}

.unit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.unit-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.25rem;
}

.unit-label {
    display: block;
    font-size: 0.9rem;
    color: #424242;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .volume-units {
        grid-template-columns: 1fr;
    }
    
    .volume-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .volume-value {
        font-size: 1rem;
    }
}


.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #17a2b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}


.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}


.chart-container {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(23, 162, 184, 0.1);
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-controls .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.chart-controls .badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268) !important;
}

.chart-controls .badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
    color: #212529;
}

.chart-controls .badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

.chart-controls .badge.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}


@media (max-width: 768px) {
    .prediction-section .row > div {
        margin-bottom: 1rem;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .chart-controls .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}


.custom-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1000;
}


#statsContainer {
    margin-top: 20px;
}

#statsContainer .card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#statsContainer .card-header {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
}
