/* ScuPlan - Custom CSS */

:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f5f5f5;
    --card-bg: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--body-bg);
    padding-top: 56px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Forms */
.form-control {
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Dive Plan Results Section */
.dive-results-card {
    display: none;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Profile Visualization */
.profile-visualization {
    display: none;
}

.profile-stage {
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background-color: rgba(0, 86, 179, 0.1);
    margin-bottom: 10px;
}

.stage-time {
    font-weight: 500;
    color: var(--primary-color);
}

/* Tank and Buddy Management */
.tank-card, .buddy-card {
    border-left: 4px solid var(--primary-color);
}

.gas-consumption-container {
    margin-top: 20px;
}

/* Checklist Styles */
.checklist-item {
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.checklist-item.completed {
    color: var(--secondary-color);
    text-decoration: line-through;
}

/* Sharing Styles */
.share-link-container {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
}

/* Crypto Donation Section */
.donation-section {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.donation-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.crypto-address {
    font-family: monospace;
    word-break: break-all;
}

.qr-code-container {
    text-align: center;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
}

/* Modals */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--warning-color);
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.9rem;
    display: none;
}

.offline-indicator.show {
    display: block;
}

/* Shared Plan Page */
.shared-plan-card {
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.plan-not-found {
    display: none;
    text-align: center;
    padding: 50px 0;
}

/* Loading Indicator */
.loading-container {
    text-align: center;
    padding: 50px 0;
}

/* Alert Container */
#alertContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* About Me Section */
.about-me-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.about-me-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 86, 179, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.about-me-section h5 {
    color: var(--dark-color);
    font-weight: 500;
}

.about-me-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.about-me-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Print Styles */
@media print {
    nav, footer, .btn, #offlineIndicator {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .donation-section {
        display: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.4rem;
    }
    
    .profile-visualization .col-md-3 {
        margin-bottom: 15px;
    }
    
    .donation-section .row {
        flex-direction: column-reverse;
    }
    
    .qr-code-container {
        margin-bottom: 20px;
    }
}


/* Marine Life Tooltips & Ambient Sounds */
.marine-life-toggle {
    box-shadow: 0 2px 10px rgba(0,123,255,0.2);
    transition: all 0.3s ease;
}

.marine-life-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.ambient-sound-panel {
    border: 2px solid rgba(0,123,255,0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
}

.ambient-toggle-btn {
    box-shadow: 0 2px 10px rgba(0,123,255,0.2);
    transition: all 0.3s ease;
}

.ambient-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.marine-life-tooltip {
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
}

.marine-info-popup {
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
