/* Seagrass Spotter Custom Styles */

/* Innoceana Brand Colors */
:root {
    --inno-maritime: #03101E;
    --inno-marine: #160041;
    --inno-royal: #0051FF;
    --inno-sky: #118EFF;
    --inno-sky-light: #22CDFF;
    --inno-arctic: #92EAFF;
    --inno-foam: #F4F4F4;
    --inno-sun: #F7931E;
}

/* Global styles */
body {
    background-color: var(--inno-marine);
    color: var(--inno-foam);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    background-color: var(--inno-maritime) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--inno-sky) !important;
}

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

.navbar-nav .nav-link:hover {
    color: var(--inno-arctic) !important;
}

/* Cards */
.card {
    background-color: var(--inno-marine);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Seagrass Observations card header - Updated January 2026 */
/* Uses Innoceana Royal Blue (#0051FF) for card headers on seagrass pages */
.seagrass-page .card-header {
    background-color: var(--inno-royal) !important;
    border-bottom: none !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--inno-royal);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--inno-sky);
    transform: translateY(-1px);
}

/* Seagrass Add Entry button - Added January 2026 */
/* Uses Innoceana Sun Orange (#F7931E) for primary action buttons */
.btn-add-entry {
    background-color: var(--inno-sun) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
}

.btn-add-entry:hover {
    background-color: #d97c0d !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Specific to Seagrass Entry Screens */
.seagrass-entry-header {
    color: var(--inno-sky);
    border-bottom: 2px solid var(--inno-royal);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--inno-arctic);
    font-weight: 500;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--inno-foam);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--inno-sky);
    color: var(--inno-foam);
    box-shadow: 0 0 0 0.25rem rgba(17, 142, 255, 0.25);
}

.text-primary {
    color: var(--inno-sky) !important;
}

.btn-outline-primary {
    border-color: #1f6feb;
    color: #1f6feb;
}

.btn-outline-primary:hover {
    background-color: #1f6feb;
    border-color: #1f6feb;
    color: #ffffff;
}

/* Tables */
.table-dark {
    background-color: #0d1117;
    border-color: #30363d;
}

.table-dark th {
    background-color: #21262d;
    border-color: #30363d;
    font-weight: 600;
}

.table-dark td {
    border-color: #30363d;
}

.table-hover tbody tr:hover {
    background-color: #161b22;
}

/* Data quality badges */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    border-radius: 6px;
}

.badge.bg-success {
    background-color: #238636 !important;
}

.badge.bg-warning {
    background-color: #bf8700 !important;
}

.badge.bg-danger {
    background-color: #da3633 !important;
}

.badge.bg-info {
    background-color: #0969da !important;
}

.badge.bg-primary {
    background-color: #1f6feb !important;
}

.badge.bg-secondary {
    background-color: #656d76 !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-info {
    background-color: #0c2d6b;
    border-color: #1f6feb;
    color: #79c0ff;
}

.alert-danger {
    background-color: #490202;
    border-color: #da3633;
    color: #f85149;
}

.alert-success {
    background-color: #0f5132;
    border-color: #238636;
    color: #56d364;
}

.alert-warning {
    background-color: #7d4e00;
    border-color: #bf8700;
    color: #ffdf5d;
}

/* Footer */
footer {
    background-color: #0d1117 !important;
    border-top: 1px solid #30363d;
    margin-top: 3rem;
}

footer a {
    color: #58a6ff;
}

footer a:hover {
    color: #79c0ff;
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, #21262d 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: #8b949e;
    margin-bottom: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1f6feb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Data visualization enhancements */
.data-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #58a6ff;
}

.data-label {
    font-size: 0.9rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timestamp styling */
.timestamp {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #79c0ff;
    background-color: #0d1117;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #30363d;
}

/* Icon styling */
.fa-waves {
    color: #58a6ff;
}

.fa-refresh {
    animation: none;
}

.fa-refresh.spinning {
    animation: spin 1s linear infinite;
}

/* Status indicators */
.status-live {
    color: #56d364;
}

.status-recent {
    color: #ffdf5d;
}

.status-stale {
    color: #f85149;
}

/* Table enhancements */
.table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.data-cell {
    white-space: nowrap;
}

/* Utility classes */
.text-oceanblue {
    color: #58a6ff;
}

.text-wavegreen {
    color: #56d364;
}

.text-windyellow {
    color: #ffdf5d;
}

.bg-ocean {
    background: linear-gradient(135deg, #0969da 0%, #1f6feb 100%);
}
