:root {
    --bg-color: #cfebe7;
    --text-color: #00a893;
    --btn-bg: white;
    --btn-border: #00a893;
    --btn-hover-bg: #00a893;
    --btn-hover-text: white;
    --nav-bg: white;
}

[data-theme='dark'] {
    --bg-color: #1a1a1a;
    --text-color: #f7941d;
    --btn-bg: #2d2d2d;
    --btn-border: #f7941d;
    --btn-hover-bg: #f7941d;
    --btn-hover-text: #1a1a1a;
    --nav-bg: #2d2d2d;
}

body {
    background-color: var(--bg-color);
    padding-top: 0;
    padding-bottom: 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease;
    min-height: 100vh;
}

.profile-section {
    margin-bottom: 30px;
    position: relative;
}

.accent-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #f7941d;
    border-radius: 50%;
    top: -20px;
    right: -30px;
    z-index: -1;
    opacity: 0.3;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bio {
    color: var(--text-color);
    margin: 15px 0 25px;
}

.btn-link {
    background-color: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--text-color);
    padding: 15px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
}

.btn-link i {
    margin-right: 10px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    margin-left: 8px;
}

.badge-new {
    background-color: var(--text-color);
    color: var(--btn-bg);
}
.badge-alert {
    background-color: #f7941d;
    color: var(--btn-bg);
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 15px;
    color: var(--text-color);
}

.navbar {
    background-color: var(--nav-bg);
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.4rem;
}

.nav-link {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--btn-hover-bg);
}

.nav-link.active {
    color: #f7941d !important;
    font-weight: 500;
}

.theme-btn {
    background-color: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    transform: scale(1.1);
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: var(--nav-bg);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--btn-hover-bg);
}

.footer-divider {
    color: var(--text-color);
    opacity: 0.5;
    margin: 0 0.5rem;
}

/* Map styles */
.map-container {
    position: relative;
    height: calc(100vh - 140px);
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

/* Collapsible footer mirror */
.footer-collapsible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 56px; /* sits above fixed footer */
    background-color: var(--nav-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* above navbar/footer (1000) */
    max-height: 50vh;
    overflow: auto;
}

@media (max-width: 576px) {
    .footer-collapsible {
        bottom: 64px; /* extra space on small screens */
    }
}

.mirror-content .btn-link {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mirror-content .badge {
    transform: scale(0.9);
}

/* Close button for dismissible links */
.link-wrapper {
    position: relative;
}

/* Toast notification for cyber awareness link */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, #4da6ff 0%, #3399ff 100%);
    border: 2px solid #4da6ff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    opacity: 0;
    animation: slideInToast 0.5s ease-out 0.5s forwards;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-notification.hidden {
    animation: slideOutToast 0.3s ease-in forwards;
}

@keyframes slideOutToast {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast-link {
    display: block;
    color: white;
    text-decoration: none;
    padding-right: 30px;
}

.toast-link:hover {
    color: white;
    text-decoration: none;
}

.toast-link p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-notification:hover {
    background: linear-gradient(135deg, #f7941d 0%, #e67e00 100%);
    border-color: #f7941d;
    box-shadow: 0 10px 30px rgba(247, 148, 29, 0.3);
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

.btn-close-custom {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.btn-close-custom:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.link-wrapper.hidden {
    display: none;
}
