:root {
    --primary: #18927E;
    --primary-dark: #126e5f;
    --primary-light: #22b89e;
    --accent: #FBC02D;
    --accent-light: #fdd866;
    --bg: #faf8f5;
    --bg-dark: #e8f5f1;
    --text: #1a2e28;
    --text-light: #3d5a50;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* HERO */
.hero {
    margin-top: 70px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.pexels.com/photos/6628611/pexels-photo-6628611.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750') center/cover no-repeat;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
}

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

/* ELEGANT SECTIONS - Italic styling for subpages */
.about-text {
    font-style: italic;
}

.about-text p {
    font-style: italic;
    line-height: 1.8;
}

.about-text h3 {
    font-style: normal;
}

.service-item-content p,
.service-card-content p {
    font-style: italic;
    line-height: 1.8;
}

.service-item-content h3,
.service-card-content h3 {
    font-style: normal;
}

/* SECTIONS */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 400;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* ABOUT */
.about {
    background: var(--primary);
    color: var(--white);
}

.about .section-title h2 {
    color: var(--white);
}

.about .section-title p {
    color: rgba(255,255,255,0.9);
}

/* Page-specific about section (light background) */
.page-about .about-text h3 {
    color: var(--primary);
    font-weight: 600;
}

.page-about .about-text p {
    color: var(--text);
    font-style: italic;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text .btn {
    background: var(--primary);
    color: var(--white);
}

.about-text .btn:hover {
    background: var(--primary-dark);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

.services-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.service-item h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
}

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* PRICING TABLE */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid var(--bg-dark);
}

.pricing-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background: var(--bg-dark);
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* BOOKING */
.booking {
    background: var(--bg-dark);
}

.map-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--bg-dark);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--bg-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.time-slot.booked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-style: italic;
}

.contact-info a {
    color: var(--primary);
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-form p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form a {
    color: var(--primary);
    font-weight: 600;
}

.map-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FOOTER */
footer {
    background: var(--accent);
    color: var(--primary-dark);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

footer p {
    opacity: 1;
}

footer a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ADMIN */
.admin-login {
    max-width: 400px;
    margin: 120px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-login h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
}

.admin-panel {
    margin-top: 90px;
    padding: 30px 5%;
    width: 100%;
}

.admin-panel .container {
    max-width: 100%;
    padding: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: var(--primary);
}

/* 2-Row Table Layout */
.orders-table-2row {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orders-table-2row thead th {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-size: 1rem;
}

.orders-table-2row tbody tr {
    border-bottom: 2px solid var(--bg-dark);
    transition: var(--transition);
}

.orders-table-2row tbody tr:hover {
    background: var(--bg-dark);
}

/* Main row */
.order-main-row td {
    padding: 15px 12px;
    vertical-align: middle;
}

.order-id {
    font-weight: 700;
    color: var(--primary);
    width: 50px;
}

.order-name {
    font-weight: 600;
    min-width: 150px;
}

.order-email {
    color: var(--text-light);
    min-width: 180px;
}

.order-date,
.order-time {
    text-align: center;
    min-width: 100px;
}

.order-status {
    text-align: center;
    min-width: 100px;
}

/* Details row */
.order-details-row td {
    padding: 10px 12px 15px;
    background: var(--bg-dark);
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    gap: 5px;
}

.detail-item strong {
    color: var(--primary-dark);
}

.order-details .action-buttons {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Regular table (fallback) */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    table-layout: auto;
}

.orders-table th,
.orders-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--bg-dark);
    white-space: nowrap;
}

.orders-table th:first-child,
.orders-table td:first-child,
.orders-table th:nth-child(2),
.orders-table td:nth-child(2),
.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    text-align: left;
}

/* Akcie stĺpec */
.orders-table th:last-child,
.orders-table td:last-child {
    min-width: 220px;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.orders-table th {
    background: var(--primary);
    color: var(--white);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.action-btn.confirm {
    background: #28a745;
    color: white;
}

.action-btn.cancel {
    background: #dc3545;
    color: white;
}

.action-btn.reschedule {
    background: #ffc107;
    color: #333;
}

.action-btn:hover {
    opacity: 0.85;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-hover);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* ALERT */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--accent);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: var(--transition);
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 25px;
    }

    .admin-panel {
        padding: 30px 15px;
    }

    /* 2-Row responsive */
    .order-details {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .order-details .action-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .order-main-row td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .order-id {
        width: 40px;
    }

    /* Regular table responsive */
    .orders-table {
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}
