/* ==========================================================================
   ARFIANKA - KOMPLET CSS STYLESHEET
   Optimeret til Desktop, Tablet & Mobil
   ========================================================================== */

:root {
    --primary-navy: #0d2c54;
    --primary-gold: #c39a5c;
    --bg-light: #fdfbf7;
    --text-dark: #333333;
    --admin-bg: #f4f7f8;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background-color: rgba(13, 44, 84, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 70px;
    max-width: 250px;
    padding: 4px;
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.btn-outline {
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-navy) !important;
}

.lang-select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.lang-select:hover {
    border-color: white;
}

.lang-select option {
    color: var(--text-dark);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(195, 154, 92, 0.2) 0%, rgba(13, 44, 84, 0.85) 60%, #0d2c54 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 100px 20px 20px 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-solid {
    display: inline-block;
    background-color: var(--primary-gold);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.btn-solid:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

/* --- ALMINDELIGE SEKTIONER --- */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-navy);
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* --- SERVICES (USLUGE) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover, .service-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(13,44,84,0.1);
}

.service-card h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-book-btn {
    margin-top: auto;
}

/* --- ABOUT US (O NAMA) --- */
.about-container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13,44,84,0.08);
    align-items: stretch; 
    transition: all 0.3s ease;
}

.about-image {
    flex: 1 1 400px;
    background-color: var(--primary-navy);
    background-repeat: no-repeat;
    min-height: 400px;
}

.about-content {
    flex: 1.5 1 400px;
    padding: 50px 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.about-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary-navy);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.title-gold {
    color: var(--primary-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.about-container.no-image .about-content {
    align-items: center;
    text-align: center;
    padding: 70px 10%;
    background-color: white;
}

.about-container.no-image .about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-container.no-image .title-gold {
    font-size: 1rem;
    margin-bottom: 35px;
}

.about-container.no-image .about-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

/* --- BOOKING FORM --- */
.booking-section {
    background-color: var(--primary-navy);
    color: white;
    padding: 80px 5%;
}

.booking-section .section-title {
    color: white;
}

.booking-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    color: var(--text-dark);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    background-color: white;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* --- PUBLIC CONTACT & MODULES --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,0.06); border-top: 4px solid var(--primary-gold); }
.feature-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

.public-contact { text-align: center; background: #fff; padding: 40px; border-radius: 14px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.public-contact a { display: inline-block; margin: 10px 20px; color: var(--primary-navy); font-weight: bold; text-decoration: none; font-size: 1.1rem; }
.public-contact a:hover { color: var(--primary-gold); }

/* --- ADMIN LAYOUT & TABS --- */
#admin-login, #admin-dashboard {
    display: none;
    min-height: 100vh;
    background-color: var(--admin-bg);
}

#admin-login { padding: 100px 5%; display: flex; justify-content: center; align-items: center; }
#admin-dashboard { padding-bottom: 50px; }

.admin-topbar {
    background-color: var(--primary-navy);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.admin-brand {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: bold;
}

.admin-shell-note {
    font-size: 13px;
    opacity: 0.85;
}

.admin-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--admin-bg);
    padding: 15px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #e1e7ef;
}

.admin-nav-tabs button {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 10px 18px;
    border: none;
    background-color: #e2e8f0;
    color: var(--primary-navy);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.admin-nav-tabs button:hover {
    background-color: #cbd5e1;
}

.admin-nav-tabs button.active {
    background-color: var(--primary-gold);
    color: white;
    box-shadow: 0 4px 12px rgba(195,154,92,0.3);
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header-flex h2 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.8rem;
}

.admin-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.admin-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(13,44,84,0.05);
    margin-bottom: 30px;
}

.admin-card h3 {
    color: var(--primary-navy);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* --- ADMIN KPIS & DASHBOARD --- */
.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 15px;
    margin: 0 0 25px;
}

.admin-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e7ef;
    box-shadow: 0 3px 12px rgba(13,44,84,0.04);
}

.admin-kpi strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-navy);
    margin-top: 5px;
}

.admin-kpi span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- BOOKING TABLE --- */
.booking-toolbar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 190px auto;
    gap: 12px;
    margin-bottom: 20px;
}

.booking-toolbar input, .booking-toolbar select {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.booking-toolbar button {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #64748b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.booking-toolbar button:hover { background: var(--primary-navy); }

.admin-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

th {
    background-color: var(--primary-navy);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.status-ny { background: #fee2e2; color: #991b1b; }
.status-lost { background: #dcfce7; color: #166534; }
.status-cancelled { background: #f1f5f9; color: #475569; }

/* --- EMPLOYEES & ROLE MANAGEMENT --- */
.employee-manager-grid {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 25px;
}

.employee-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.employee-list-row strong {
    display: block;
    color: var(--primary-navy);
    font-size: 1.05rem;
}

.employee-list-row small {
    color: #64748b;
}

.employee-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-actions button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.employee-edit { background: var(--primary-navy); }
.employee-toggle { background: #64748b; }
.employee-delete { background: #ef4444; }

.employee-actions button:hover { opacity: 0.9; transform: translateY(-1px); }

.role-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: var(--primary-navy);
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
}

.admin-only-hidden { display: none !important; }
.employee-mode #admin-view-settings, .employee-mode #admin-view-services, .employee-mode #admin-view-content, .employee-mode #admin-view-images, .employee-mode #admin-view-employees { display: none !important; }
.employee-mode .admin-delete-action { display: none !important; }

/* --- CMS MODULER --- */
.cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; }
.cms-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; background: #f8fafc; padding: 15px; border-radius: 8px; margin-top: 10px; border: 1px solid #e2e8f0; }
.cms-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-small { padding: 8px 12px !important; border-radius: 6px !important; font-size: 12px !important; }
.btn-danger { background: #ef4444 !important; border-color: #ef4444 !important; }
.btn-muted { background: #64748b !important; border-color: #64748b !important; }

/* --- SERVICES EDITOR --- */
.services-editor { border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; background: #fff; }
.services-editor-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: #f8fafc; border-bottom: 1px solid #cbd5e1; }
.services-count { background: var(--primary-navy); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }
.services-modern-list { list-style: none !important; padding: 15px !important; margin: 0 !important; display: grid; gap: 12px; }
.service-modern-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; transition: 0.2s; }
.service-modern-row:hover { border-color: var(--primary-gold); box-shadow: 0 4px 12px rgba(13,44,84,0.06); }
.service-index { width: 32px; height: 32px; display: grid; place-items: center; background: #e2e8f0; color: var(--primary-navy); border-radius: 8px; font-weight: 700; }
.service-name { font-weight: 600; font-size: 1.05rem; }
.service-actions { display: flex; gap: 8px; }
.service-actions button, .service-inline-edit button { border: 0; border-radius: 6px; padding: 10px 14px; color: #fff; font-weight: 700; cursor: pointer; transition: 0.2s; }
.service-edit-btn { background: var(--primary-navy); }
.service-delete-btn { background: #ef4444; }
.service-save-btn { background: #16a34a; }
.service-cancel-btn { background: #64748b; }
.service-inline-edit { grid-column: 2/4; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.service-inline-edit input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.services-add { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 12px; padding: 20px; background: #f8fafc; border-top: 1px solid #cbd5e1; }
.services-empty { text-align: center; padding: 30px; color: #64748b; font-style: italic; }
.services-tip { font-size: 13px; color: #64748b; margin: 12px 5px 0; }

/* --- PROFESSIONEL IMAGE LIBRARY (Desktop & Mobil) --- */
.image-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.image-box {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    box-shadow: 0 4px 15px rgba(13,44,84,0.06);
    padding: 16px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13,44,84,0.12);
}

.image-box img {
    width: 100%;
    height: 180px;
    object-fit: contain; 
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e1e7ef;
    padding: 5px;
    box-sizing: border-box;
}

.image-box input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--primary-navy);
    font-weight: 600;
    transition: border-color 0.2s;
}

.image-box input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.image-box .cms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; 
}

.image-box .btn-small {
    flex: 1;
    min-width: 45%;
    background: #edf2f8 !important;
    color: var(--primary-navy) !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 9px 10px !important;
    transition: 0.2s;
}

.image-box .btn-small:hover {
    background: var(--primary-gold) !important;
    color: white !important;
}

.image-box .btn-danger {
    flex: 100%; 
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.image-box .btn-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* --- FIL-UPLOAD & SLIDERS --- */
input[type="file"].form-control {
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
}
input[type="file"].form-control::file-selector-button {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-right: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
input[type="file"].form-control::file-selector-button:hover {
    background: var(--primary-gold);
}

.range-row {
    display: grid;
    grid-template-columns: 190px 1fr 70px;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 3px;
}
input[type=range]:focus {
    outline: none;
}
.range-row output {
    font-weight: 700;
    color: var(--primary-navy);
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #cbd5e1;
    font-size: 13px;
}

/* --- RESPONSIVITET (Mobil & Tablet) --- */
@media (max-width: 900px) {
    .about-image {
        min-height: 350px;
    }
}

@media (max-width: 850px) {
    .admin-kpis { grid-template-columns: repeat(2, 1fr); }
    .booking-toolbar, .employee-manager-grid { grid-template-columns: 1fr; }
    .admin-nav-tabs { position: static; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(13, 44, 84, 0.98);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; }
    
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; box-sizing: border-box; }
    
    .about-content { padding: 40px 6%; text-align: center; }
    .about-image { flex: 1 1 100%; min-height: 300px; }
    
    .cms-row { align-items: flex-start; flex-direction: column; }
    .range-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 25px; }
}

@media (max-width: 760px) {
    .services-add { grid-template-columns: 1fr; }
    .service-modern-row { grid-template-columns: 36px 1fr; }
    .service-actions { grid-column: 1/3; }
    .service-actions button { flex: 1; }
    .service-inline-edit { grid-column: 1/3; grid-template-columns: 1fr; }
    .services-editor-header { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
    .image-library { grid-template-columns: 1fr; }
    .image-box img { height: 220px; }
    .section { padding: 60px 5%; }
    .admin-card { padding: 20px; }
}

@media (max-width: 480px) {
    .admin-kpis { grid-template-columns: 1fr; }
}
