﻿/* ===========================================
   KLUG VINDUESPUDSNING - BASE STYLES
   =========================================== */

/* ===== BUTTON TRANSITION ===== */
.btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}
.btn-hover:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.btn-hover2:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ===== ADMIN HEADER LAYOUT ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== CALENDAR STYLES ===== */
.calendar-table td {
    height: 120px;
    vertical-align: top;
    padding: 8px;
}

.calendar-cell {
    position: relative;
}

/* Weekend days (Lørdag + Søndag) */
.calendar-weekend {
    background-color: #f7d6d6 !important;
}

/* Danske helligdage */
.calendar-holiday {
    background-color: #bae1ff !important;
}

/* Day number + Kommune container */
.calendar-day-number {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.day-num {
    font-size: 18px;
    font-weight: bold;
}

    .day-num.today {
        color: #3498db;
    }

.calendar-cell.today {
    box-shadow: inset 0 0 0 2px #3498db, inset 0 0 10px rgba(52, 152, 219, 0.15);
}

/* Kommune labels */
.municipality-label {
    font-size: 11px;
    color: #8b92a0;
    font-weight: 400;
}

.municipality-full {
    display: inline;
}

.municipality-short {
    display: none;
}

/* Ugedage */
.day-full {
    display: inline;
}

.day-short {
    display: none;
}

/* Calendar badges (notifikationer) */
.calendar-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.calendar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ✅ Planlagte kunde-aftaler - MØRKEblå */
.badge-appointments {
    background-color: #1557a0;
    color: white;
    border: 1px solid #0d4f8a;
}

.badge-appointments:hover {
    background-color: #0d4f8a;
    transform: translateY(-1px);
}

/* ✅ Udførte aftaler - GRØN */
.badge-completed {
    background-color: #198754;
    color: white;
    border: 1px solid #146c43;
}

.badge-completed:hover {
    background-color: #146c43;
    transform: translateY(-1px);
}

/* ✅ Private aftaler - LYSERE BLÅ #1b6ec2 */
.badge-private {
    background-color: #9fc5e8;
    color: white;
    border: 1px solid #1557a0;
}

.badge-private:hover {
    background-color: #1557a0;
    transform: translateY(-1px);
}

/* ✅ Kontakt - ORANGE #f59e0b med TAL */
.badge-contact {
    background-color: #f59e0b;
    color: #000;
    border: 1px solid #d97706;
}

.badge-contact:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

/* ✅ Ikke planlagte aftaler - LILLA */
.badge-unplanned {
    background-color: #7c3aed;
    color: white;
    border: 1px solid #6d28d9;
}

.badge-unplanned:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Admin header */
    .admin-header { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .admin-buttons { 
        flex-direction: column; 
    }
    .admin-buttons .btn { 
        width: 100%; 
    }
    
    /* Kalender */
    .calendar-table td {
        height: 95px !important;
        padding: 4px !important;
    }
    
    /* Ugedage - vis kun ét bogstav */
    .day-full {
        display: none;
    }
    .day-short {
        display: inline;
    }
    
    /* Dag nummer til venstre, vejr til højre — behold row-layout */
    .calendar-day-number {
        flex-direction: row;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 4px;
    }
    
    .day-num {
        font-size: 16px !important;
    }
    
    .day-num.today {
        width: 26px;
        height: 26px;
        font-size: 14px !important;
    }
    
    /* Skjul alle kommune-labels på mobil */
    .municipality-full,
    .municipality-short {
        display: none;
    }
    
    /* Badges - kompakte */
    .calendar-badges {
        gap: 4px;
    }
    
    .calendar-badge {
        min-width: 24px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }
}

/* Ekstra små skærme */
@media (max-width: 576px) {
    .calendar-table td {
        height: 80px !important;
        padding: 3px !important;
    }
    
    .day-num {
        font-size: 14px !important;
    }
    
    .day-num.today {
        width: 24px;
        height: 24px;
        font-size: 12px !important;
    }
    
    .calendar-badge {
        min-width: 22px;
        height: 18px;
        font-size: 10px;
    }
    
    .municipality-short {
        font-size: 8px !important;
    }
}

/* ===========================================
   FORSIDE SPECIFIK STYLING
   =========================================== */

/* ✅ Hero button - shimmer + lift */
.hero-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    padding: 15px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: inline-block;
}
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37,99,235,0.45);
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.hero-btn:hover::before {
    left: 130%;
}

/* ✅ Topbar - hvid/lysegrå tekst */
.public-layout .topbar {
    background-color: #2c3e50 !important;
}

.public-layout .topbar a {
    color: #ecf0f1 !important;
    text-decoration: none;
}

.public-layout .topbar a:hover {
    color: #ffffff !important;
}

/* ✅ Footer - lysere tekst */
.public-layout .site-footer {
    background-color: #1b2738 !important;
    color: #ecf0f1 !important;
}

.public-layout .site-footer h5 {
    color: #ffffff !important;
    font-weight: 600;
}

.public-layout .site-footer p {
    color: #bdc3c7 !important;
}

.public-layout .site-footer a {
    color: #ecf0f1 !important;
}

.public-layout .site-footer a:hover {
    color: #ffffff !important;
}

/* ✅ Copyright tekst - lysere */
.public-layout .site-footer small {
    color: #95a5a6 !important;
}

/* ✅ Social media ikoner */
.public-layout .social-icons a {
    color: #ecf0f1 !important;
}

.public-layout .social-icons a:hover {
    color: #3498db !important;
}

/* ── Footer Redesign ─────────────────────────────────────────────── */

.footer-main {
    padding: 56px 0 40px;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.875rem;
    color: #8fa3b8 !important;
    line-height: 1.75;
    margin-bottom: 0;
}

.footer-map iframe {
    border-radius: 8px;
    opacity: 0.82;
}

.footer-heading {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* Contact list */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 13px;
}

.footer-contact-list li a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #a8bbc8 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s;
}

.footer-contact-list li a:hover {
    color: #ffffff !important;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #60a5fa !important;
    font-size: 0.85rem;
    transition: background 0.18s;
}

.footer-contact-list li a:hover .footer-contact-icon {
    background: rgba(59, 130, 246, 0.35);
}

/* Hours table */
.footer-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.footer-hours-table td {
    padding: 5px 0;
    color: #a8bbc8;
}

.footer-hours-table td:first-child {
    color: #dce6ed;
    font-weight: 500;
    width: 52%;
}

.footer-closed {
    opacity: 0.35;
}

.footer-hours-note {
    font-size: 0.78rem;
    color: #6b7f8e !important;
    line-height: 1.65;
    font-style: italic;
}

/* Navigation links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a8bbc8 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.18s, padding-left 0.18s;
}

.footer-links li a::before {
    content: "›";
    font-size: 1rem;
    opacity: 0.35;
    transition: opacity 0.18s;
    line-height: 1;
}

.footer-links li a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

.footer-links li a:hover::before {
    opacity: 0.8;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8bbc8 !important;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: #3b82f6;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom small {
    color: #6b7f8e !important;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #60a5fa !important;
    text-decoration: none;
    transition: color 0.18s;
}

.footer-bottom a:hover {
    color: #93c5fd !important;
}

/* ✅ Nav menu entries - sliding underline */
.navbar .nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.navbar .nav-links a:hover {
    color: #2563eb !important;
}
.navbar .nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar .nav-links a {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
    .navbar .nav-links a::after {
        display: none;
    }
}

/* ✅ Kundelogin link styling (match other nav entries) */
.customer-login-link {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.customer-login-link i {
    margin-right: 5px;
}

/* Mobile styling for kundelogin */
@media (max-width: 768px) {
    .customer-login-link {
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}

/* ✅ Customer portal - success alert fallback (theme CSS overrides this) */
.customer-layout .alert.alert-success {
    background-color: #d1e7dd !important;
    color: #0a3622 !important;
    border-color: #a3cfbb !important;
}

/* Customer Dashboard Success Alert */
.customer-success-alert {
    background-color: #28a745;
    color: white !important;
    font-weight: 500;
    border: none;
}

.customer-success-alert .btn-close {
    filter: brightness(0) invert(1);
}

/* ===== ADMIN HAMBURGER MENU ===== */
.admin-hamburger {
    position: relative;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hamburger-btn:hover {
    background: #2563eb;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger-btn .bar.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn .bar.open:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn .bar.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hamburger-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.hamburger-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background: #1e2d3d;
    border: 1px solid #2d4050;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hm-btn {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.hm-btn:hover {
    filter: brightness(1.15);
    transform: translateX(2px);
}

.hm-green  { background-color: #198754; }
.hm-blue   { background-color: #0d6efd; }
.hm-teal   { background-color: #0f9d7e; }
.hm-cyan   { background-color: #0891b2; }
.hm-gray   { background-color: #4b5563; }
.hm-red    { background-color: #dc2626; }

.hm-divider {
    border-color: #2d4050;
    margin: 4px 0;
}

/* Dashboard Grid Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}