/* * {
    border: black 1px solid !important;
} */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS custom properties (colour tokens) ──────────────────────────────────── */

:root {
    --color-bg: #f4f4f4;
    --color-surface: #ffffff;
    --color-surface-alt: #f7f7f7;
    --color-header-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --color-nav-bg: #333;
    --color-nav-text: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-text-muted: #888;
    --color-border: #e0e0e0;
    --color-border-strong: #333;
    --color-tag-bg: #f0f0f0;
    --color-tag-text: #333;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.14);
    --color-accent: #0ea5e9;
    --color-accent-hover: #0284c7;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #ffffff;
    --color-footer-muted: #aaa;
    --color-success: #27ae60;
    --color-error: #c0392b;
    --color-timeline-line: #ddd;
    --color-timeline-marker: #333;
    --color-timeline-marker-current: #0ea5e9;
}

[data-theme="dark"] {
    --color-bg: #0f0f0f;
    --color-surface: #1e1e1e;
    --color-surface-alt: #252525;
    --color-header-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --color-nav-bg: #1a1a1a;
    --color-nav-text: #e0e0e0;
    --color-text: #e8e8e8;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #888;
    --color-border: #333;
    --color-border-strong: #666;
    --color-tag-bg: #2a2a2a;
    --color-tag-text: #ccc;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.5);
    --color-accent: #38bdf8;
    --color-accent-hover: #7dd3fc;
    --color-footer-bg: #0a0a0a;
    --color-footer-text: #e0e0e0;
    --color-footer-muted: #777;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --color-timeline-line: #333;
    --color-timeline-marker: #666;
    --color-timeline-marker-current: #38bdf8;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0 10%;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--color-header-bg);
    color: white;
    padding: 45px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

h1 {
    padding-bottom: 10px;
    font-weight: 700;
    font-size: 32px;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: 2px;
}

h2 {
    padding: 15px 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.3px;
}

h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

header h2:first-of-type {
    font-size: 18px;
    opacity: 0.9;
}

section {
    padding: 40px 20px;
    margin-top: 0;
    background-color: transparent;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-border-strong), var(--color-text-muted), var(--color-border-strong));
    border-radius: 2px;
}

p {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.hidden {
    display: none;
}

strong {
    font-weight: bolder;
    font-size: large;
}


/* Nav box */

nav {
    display: flex;
    justify-content: center;
    width: 100%;
    position: -webkit-sticky;
    position: sticky;    
    top: 0;
    overflow: hidden;
    z-index: 99;
}

ul.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background-color: var(--color-nav-bg);
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.nav li {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;
}

.nav a {
    text-align: center;
    padding: 14px 1.25rem;
    margin: 0;
    color: var(--color-nav-text);
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

li.nav a:hover {
    background-color: #111;
}

li a:hover {
    background-color: #111;
}

.sec-cont {
    width: 100%;
    display: flexbox;
    align-items: center;
    align-content: center;
    text-align: center;
}

.cont {
    grid-template-columns: 3fr;
}


/* services and portfolio boxes */

.box {
    height: auto;
    width: 29%;
    margin: 10px;
    padding: 10px;
    display: inline-block;
    line-height: 1.5em;
}

.admin-page {
    padding: 20px 0;
}

.admin-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    background: var(--color-surface);
    box-shadow: 0 2px 14px var(--color-shadow);
    border-radius: 12px;
    text-align: left;
}

.login-section .admin-card {
    max-width: 420px;
}

.login-message {
    color: var(--color-error);
    margin-top: 0.75rem;
}

.login-section input[type="password"] {
    width: 100%;
}

.private-card textarea,
.admin-card input[type="text"],
.admin-card textarea,
.admin-card input[type="file"] {
    width: 100%;
}

.private-card .hint {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

img {
    height: 100%;
    width: 100%;
}

.hs-wrap {
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.hs {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.port-cont {
    display: inline-block;
    padding: 1em;
    box-sizing: border-box;
}

.cont-item {
    height: auto;
    width: auto;
    white-space: normal;
}


/* paddle buttons */

.paddle {
    position: absolute;
    top: 50%;
    bottom: 0;
    width: 3em;
}

.left-paddle {
    left: 0;
}

.right-paddle {
    right: 0;
}

button {
    align-self: center;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    height: 40px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: background 0.2s ease;
}

button:hover {
    background: var(--color-border);
}


/* testimonials */

blockquote {
    font-weight: normal;
    font-style: italic;
}


/* footer elements */

#contact {
    display: inline-flex;
    background-color: #333;
}

.contact-cont,
.legal-cont {
    background-color: #333;
    color: white;
    width: 50%;
    padding: 10px;
}

.contact-cont {
    text-align: left;
}

.legal-cont {
    text-align: right;
}

footer p {
    font-size: 12px;
}

footer a {
    color: white;
}

footer a:hover {
    text-decoration: underline;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    justify-items: center;
    padding: 0;
}

.travel-grid .box,
.travel-uploader.box {
    width: 100%;
    display: block;
}

.travel-card {
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: var(--color-surface);
    box-shadow: 0 2px 12px var(--color-shadow);
    border-radius: 10px;
}

.travel-card .media {
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: #eaeaea;
}

.travel-card .media img,
.travel-card .media video {
    width: 100%;
    height: auto;
    display: block;
}

.travel-content h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
}

.travel-content .meta {
    margin: 0 0 0.75rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.travel-uploader {
    width: 100%;
    text-align: left;
    background: var(--color-surface);
    box-shadow: 0 2px 12px var(--color-shadow);
    border-radius: 10px;
    padding: 1rem;
}

.travel-uploader h3 {
    margin-top: 0;
}

.travel-uploader form {
    display: grid;
    gap: 0.75rem;
}

.travel-uploader label {
    display: block;
    font-weight: 600;
}

.travel-uploader input[type="text"],
.travel-uploader textarea,
.travel-uploader input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    margin-top: 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.travel-uploader button {
    cursor: pointer;
    min-width: 120px;
    padding: 0.75rem 1rem;
    height: auto;
}

.travel-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #999;
    border-radius: 8px;
    background: var(--color-surface-alt);
}

.travel-preview.hidden {
    display: none;
}

.preview-media {
    margin-bottom: 0.75rem;
}

.preview-media img,
.preview-media video {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.preview-text p {
    margin: 0.2rem 0;
}

/* About section */
.about-cont {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.profile-figure {
    margin: 0;
    text-align: center;
}

.profile-figure img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.about-text {
    text-align: left;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--color-surface);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-border-strong);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--color-shadow-hover);
}

.project-header {
    margin-bottom: 1rem;
}

.project-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card p {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.project-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Skills section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    background: var(--color-surface);
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    font-size: 1.15rem;
    border-bottom: 2px solid var(--color-border-strong);
    padding-bottom: 0.75rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Contact & Footer */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 0;
}

#contact {
    background: var(--color-footer-bg);
    padding: 2rem 20px;
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.contact-info,
.footer-links {
    padding: 1rem 0;
}

.contact-info h3,
.footer-links h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info p,
.footer-links p {
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-info a,
.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.footer-links a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--color-footer-muted);
    font-size: 0.9rem;
}

/* Travel empty state */
.travel-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* AI Dev section */
.ai-dev-inner {
    text-align: left;
}

.ai-dev-inner > p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.ai-dev-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.ai-point {
    background: var(--color-surface-alt);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid var(--color-border-strong);
}

.ai-point h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--color-text);
}

.ai-point p {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Certifications */
.cert-row {
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.cert-row h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border-strong);
    padding-bottom: 0.5rem;
}

.cert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-surface);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cert-title {
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.cert-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.cert-link {
    white-space: nowrap;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.cert-link:hover {
    background: var(--color-text-secondary);
    color: var(--color-bg);
}

@media screen and (max-width: 768px) {
    .cert-card {
        flex-direction: column;
        align-items: flex-start;
    }

    body {
        margin: 0;
    }
    
    header {
        padding: 30px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    section {
        padding: 30px 15px;
    }
    
    section h2 {
        font-size: 22px;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        text-align: center;
    }
    
    .projects-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .box {
        width: auto;
        margin: auto;
    }
    
    .hs,
    .hs-wrap {
        height: 600px;
    }
    
    .paddle {
        top: auto;
        width: 10px;
        height: 100%;
        align-self: auto;
        z-index: 1;
        background-color: #f7f7f780;
    }
    
    .paddle p {
        display: none;
    }
    
    .travel-uploader {
        display: none;
    }
}

/* ── Dark mode toggle button ────────────────────────────────────────────────── */

#dark-mode-toggle {
    background: transparent;
    border: none;
    color: var(--color-nav-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 14px 1rem;
    height: auto;
    width: auto;
    line-height: 1;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

#dark-mode-toggle:hover {
    opacity: 0.75;
    background: transparent;
}

/* ── Career Timeline (Issue #9) ─────────────────────────────────────────────── */

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-timeline-line);
}

.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 3.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-timeline-marker);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-timeline-marker);
    z-index: 1;
}

.timeline-marker--current {
    background: var(--color-timeline-marker-current);
    box-shadow: 0 0 0 2px var(--color-timeline-marker-current);
}

.timeline-content {
    background: var(--color-surface);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 20px var(--color-shadow-hover);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.timeline-content h3 {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.15rem;
    color: var(--color-text);
}

.timeline-content p {
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.timeline-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.timeline-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 14px;
    }
    .timeline-item {
        padding-left: 2.75rem;
    }
    .timeline-marker {
        left: 6px;
        width: 16px;
        height: 16px;
    }
}

/* ── GitHub activity widget (Issue #5) ──────────────────────────────────────── */

.github-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.github-repo-card {
    display: block;
    background: var(--color-surface);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px var(--color-shadow);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-left: 3px solid var(--color-border-strong);
}

.github-repo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--color-shadow-hover);
}

.github-repo-name {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.github-repo-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.github-repo-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.github-repo-lang {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.github-fallback {
    color: var(--color-text-secondary);
    text-align: center;
    width: 100%;
}

.github-fallback a {
    color: var(--color-accent);
}

.github-profile-link {
    text-align: center;
    margin-top: 0.5rem;
}

.github-profile-link a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.github-profile-link a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* ── Contact form (Issue #3) ────────────────────────────────────────────────── */

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--color-shadow);
    text-align: left;
}

#contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-border-strong);
}

#contact-form button[type="submit"] {
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    height: auto;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

#contact-form button[type="submit"]:hover {
    background: var(--color-text-secondary);
}

#contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.4rem;
}

.contact-form-message.success {
    color: var(--color-success);
}

.contact-form-message.error {
    color: var(--color-error);
}

/* ── Admin saved memories list ──────────────────────────────────────────────── */

.saved-memories {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.saved-memories h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.saved-memory-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.saved-memory-row:last-child {
    border-bottom: none;
}

.saved-memory-info {
    font-size: 0.9rem;
    color: var(--color-text);
}

.saved-memory-location {
    color: var(--color-text-secondary);
}

.saved-memory-date {
    color: var(--color-text-muted);
}

.travel-delete-btn {
    background: var(--color-error) !important;
    color: white !important;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    height: auto;
    width: auto;
    flex-shrink: 0;
}

.hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ── Button variants ────────────────────────────────────────────────────────── */

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    cursor: pointer;
    height: auto;
    width: auto;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, transform 0.1s ease;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-strong);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    cursor: pointer;
    height: auto;
    width: auto;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Full-width buttons on narrow login/setup cards */
.login-section .btn-primary,
.login-section .btn-secondary {
    width: 100%;
    text-align: center;
}

/* ── Admin card form inputs ─────────────────────────────────────────────────── */

.admin-card label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.admin-card input[type="text"],
.admin-card input[type="email"],
.admin-card textarea,
.admin-card input[type="file"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-top: 0.35rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.admin-card input[type="text"]:focus,
.admin-card input[type="email"]:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ── Login divider ──────────────────────────────────────────────────────────── */

.login-divider {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    margin: 1.25rem 0;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--color-border);
}

.login-divider span {
    padding: 0 0.75rem;
}