/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

/* Global design tokens */
:root {
    --primary-color: #000;
    --secondary-color: #C2C2C2;
    --accent-color: #F4A300;
    --accent-color-dark: #e19600;
    --light-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --card-bg: #ffffff;
    --input-bg: #fafafa;
    --input-border: #e0e0e0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --box-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Generic class for highlighting text with accent color */
.accent-text {
    color: var(--accent-color);
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: var(--light-color);
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    opacity: 0.9;
}

body {
    margin-bottom: 100px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-page {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    font-family: var(--font-family);
}

/* Styling for Logg inn boks */
.login-box {
    max-width: 600px;
    background: var(--card-bg);
    padding: 40px;
    margin: 50px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

h2 {
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Felles stil for sidetitler */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Ensure swipe-hint doesn't inherit transparent text */
.page-title + .swipe-hint,
.month-year-wrapper > .swipe-hint {
    -webkit-text-fill-color: #666 !important;
    color: #666 !important;
    background: transparent !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Inputfelt styling */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-family: var(--font-family);
}

/* Unngå at avkrysningsbokser strekker seg over hele bredden */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Plasser avkrysningsboks og etikett ved siden av hverandre */
.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    text-align: left;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    background-color: var(--light-color);
    box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.1);
}

/* Styling for knapper */
.btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 163, 0, 0.3);
}

.btn:active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 163, 0, 0.2);
}

    /* Styling for Om oss Section */
.section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: center;
    letter-spacing: -0.02em;
}

.section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.section ul {
    list-style: disc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

/* About page container */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Legacy support for old about-box */
.about-box {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.about-box:hover {
    box-shadow: var(--box-shadow-hover);
}

.about-box p:first-of-type {
    font-size: 1.1rem;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #f0f0f0;
    margin-bottom: 32px;
    transition: var(--transition);
}

.content-section:hover {
    box-shadow: var(--box-shadow-hover);
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--card-bg);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #f0f0f0;
    margin-top: 48px;
    margin-bottom: 32px;
    transition: var(--transition);
}

.contact-section:hover {
    box-shadow: var(--box-shadow-hover);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.contact-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .btn,
.form-actions .btn-secondary {
    flex: 1;
}

.response-message {
    margin-top: 24px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    background: var(--input-bg);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.feature-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
    line-height: 1.4;
}

section {
    margin-bottom: 1.5rem;
}

/* Personlig introduksjon */
.content-section.personal-intro,
.personal-intro {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-left: 4px solid var(--accent-color);
}

.content-section.personal-intro p,
.personal-intro p {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

/* Eksempelbilder */
.example-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    cursor: zoom-in;
}

.example-caption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #555;
}

/* Contact card styling */
.contact-card {
    text-align: left;
}

.contact-card p:first-of-type {
    margin-bottom: 8px;
}

.contact-card p:last-of-type {
    margin-bottom: 24px;
}

.contact-card .contact-form {
    max-width: 100%;
    margin-top: 24px;
}

.contact-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color-dark);
    transform: translateX(4px);
}

/* Om oss: moderne layout (about.html) */
.about-container.about-modern {
    max-width: 1100px;
    padding: 28px 20px 48px;
}

.about-modern .about-hero {
    position: relative;
    text-align: center;
    padding: 48px 24px 56px;
    margin-bottom: 8px;
    border-radius: calc(var(--border-radius) + 4px);
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f3f4f6 55%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 40px rgba(0, 0, 0, 0.06);
}

.about-hero__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 85%;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(244, 163, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.about-eyebrow {
    position: relative;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.about-hero__title {
    position: relative;
    font-family: 'Outfit', var(--font-family);
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.about-hero__lead {
    position: relative;
    max-width: 38rem;
    margin: 0 auto 28px;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.about-hero__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.about-btn--primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(244, 163, 0, 0.35);
}

.about-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 163, 0, 0.45);
}

.about-btn--ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border-color: rgba(0, 0, 0, 0.1);
}

.about-btn--ghost:hover {
    border-color: var(--accent-color);
    background: #fff;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.about-pillar {
    padding: 22px 20px;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-pillar:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.about-pillar__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    font-family: 'Outfit', var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(244, 163, 0, 0.2) 0%, rgba(244, 163, 0, 0.05) 100%);
    border-radius: 8px;
}

.about-pillar__title {
    font-family: 'Outfit', var(--font-family);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.about-pillar__text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.about-section-title {
    font-family: 'Outfit', var(--font-family);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-panel {
    margin-bottom: 28px;
    padding: 28px 26px;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-panel--split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px 36px;
    align-items: start;
}

.about-panel__text p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.about-panel__text p:last-child {
    margin-bottom: 0;
}

.about-panel__figure {
    margin: 0;
}

.about-panel__figure .example-image {
    margin-top: 0;
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-figure-caption {
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.about-showcase {
    margin-bottom: 28px;
}

/* Same card treatment as other about-panels when showcase is boxed */
.about-panel.about-showcase {
    margin-bottom: 28px;
}

.about-panel.about-showcase .about-showcase__intro {
    margin-bottom: 22px;
    max-width: 42rem;
}

.about-showcase__intro {
    margin-bottom: 22px;
    max-width: 42rem;
}

.about-showcase__lede {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
}

.about-showcase__story {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.about-showcase__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.about-showcase__item {
    margin: 0;
    padding: 16px;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-showcase__media {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(260px, 32vw, 400px);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(165deg, #f0f1f3 0%, #e8e9ec 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-showcase__media .example-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(360px, 55vh);
    margin: 0;
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-showcase__item figcaption {
    flex-shrink: 0;
    margin-top: 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.about-panel--compact {
    padding-bottom: 26px;
}

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

.about-ticks li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.about-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.about-ticks li:last-child {
    margin-bottom: 0;
}

.about-contact {
    padding: 32px 28px 36px;
    border-radius: calc(var(--border-radius) + 4px);
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    position: relative;
}

.about-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--accent-color), #ffb833);
}

.about-contact__intro {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 8px;
}

.about-contact__intro h2 {
    font-family: 'Outfit', var(--font-family);
    font-size: 1.65rem;
    margin-bottom: 10px;
}

.about-contact__intro p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.about-contact__intro p:last-of-type {
    margin-bottom: 20px;
}

.about-contact.contact-card .contact-form {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .about-pillars {
        grid-template-columns: 1fr;
    }

    .about-panel--split {
        grid-template-columns: 1fr;
    }

    .about-showcase__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-pillar:hover,
    .about-btn--primary:hover,
    .about-btn--ghost:hover {
        transform: none;
    }
}

/* Invite page */
.invite-box {
    text-align: center;
}

.invite-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Call to action */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--border-radius);
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(244, 163, 0, 0.3);
}

.cta-section h2 {
    color: var(--light-color);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-section .btn {
    width: auto;
    padding: 14px 32px;
    background: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-section .btn:hover {
    background: var(--light-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Styling for Kontakt Oss Section */
.contact-box {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--card-bg);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.contact-box:hover {
    box-shadow: var(--box-shadow-hover);
}

.contact-box p {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

#responseMessage {
    margin-top: 20px;
    text-align: center;
    color: #28203f;
    font-weight: bold;
}

.error-messages {
    color: red;
    display: none;
}

/* Toast notification styling - fixed position for visibility */
#message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#message.success {
    background: #2ecc71;
    color: white;
}

#message.error {
    background: #e74c3c;
    color: white;
}

#message.info {
    background: #3498db;
    color: white;
}

/* Style for Beregne lønn siden */
/* Custom styles for the calculator */
.calculator-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.calculate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.result-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-label {
    font-weight: bold;
    color: var(--light-color);
}

.result-value {
    color: var(--light-color);
}

.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 1;
    width: 100%;
}

/* Styling for lenker */
p {
    margin: 1em 0;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* Subtle underline effect for links in content */
p a, .about-box a, .contact-box a {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

p a:hover, .about-box a:hover, .contact-box a:hover {
    border-bottom-color: var(--accent-color);
}

/* Simple modal component */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 32px;
    border-radius: var(--border-radius);
    width: fit-content;
    max-width: 90%;
    position: relative;
    z-index: 2001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    border: 1px solid #f0f0f0;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: rotate(90deg);
}

#image-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
}

/* Toggle for user shift in calendar */
.user-shift-toggle {
    margin: 10px 0 20px 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--input-border);
}

.user-shift-toggle label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.user-shift-toggle input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Kortdesign for brukere */
.user-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--light-color);
    align-items: center;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.user-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.user-card.compact {
    flex-direction: column;
    text-align: center;
}
.user-card.mini {
    flex-direction: row;
    aspect-ratio: 3/1;
    padding: 10px;
}
.user-card.mini .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.user-card.mini .avatar-img {
    width: 60px;
    height: 60px;
}
.user-card.mini button,
.user-card.mini .action-btn,
.user-card.mini .status-text {
    width: 100%;
}
.user-card.compact button,
.user-card.compact .action-btn {
    width: 100%;
}
.user-card.compact .avatar-img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.user-card .avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    font-size: 36px;
    color: var(--light-color);
    flex-shrink: 0;
}

.user-card button,
.action-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.user-card button:hover,
.action-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
}

@media (max-width: 600px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    .user-card.mini {
        flex-direction: row;
        text-align: left;
    }

    /* About page responsive */
    .about-container {
        padding: 20px 16px;
    }

    .hero-section {
        padding: 40px 0 32px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .content-section,
    .contact-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .content-section h2,
    .section-title {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-actions .btn-secondary {
        width: 100%;
    }

    .personal-intro {
        padding: 16px;
    }

    .about-container.about-modern {
        padding: 16px 14px 36px;
    }

    .about-modern .about-hero {
        padding: 36px 18px 40px;
    }

    .about-panel,
    .about-contact {
        padding: 22px 18px 26px;
    }
}

.user-card .user-info .name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.user-card .user-info p {
    margin-bottom: 2px;
    line-height: 1.3;
}

.status-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.close-label {
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Row for color selector and "Nær kollega" checkbox */
.settings-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-row select {
    flex: 1;
}

.fade {
    animation: fade 0.3s ease-out;
}

@keyframes fade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1);   }
}

/* Utility classes for modern effects */
.smooth-transition {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Scrollbar styling for modern look */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #aaa 100%);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
}

/* Selection styling */
::selection {
    background: var(--accent-color);
    color: var(--light-color);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--light-color);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Global loading spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-spinner.active {
    display: flex;
    opacity: 1;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.spinner-content {
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 32px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--input-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-text {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

/* Inline loading (for specific elements) */
.inline-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: var(--border-radius-sm);
    z-index: 100;
}

.inline-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--input-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.inline-loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button loading state */
.btn.loading,
.nav-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Toast notification for kopiert lenke */
.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--light-color);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease;
    max-width: 90%;
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.share-toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .spinner-content {
        padding: 24px 32px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .spinner-text {
        font-size: 0.9rem;
    }
    
    .share-toast {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
