/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

/* =========================
   HEADER / NAVBAR
========================= */
.site-header {
    background-color: #000;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
}

/* LOGO */
.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #c97a2b;
    text-decoration: none;
}

/* NAVIGATION */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: #eee;
    text-decoration: none;
    font-size: 16px;
}

.main-nav a:hover {
    color: #c97a2b;
}

/* AUTH */
.auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    color: #fff;
    font-size: 14px;
}

.btn-auth {
    background-color: #c97a2b;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    transition: 0.2s;
}

.btn-auth:hover {
    background-color: #b86f26;
}

/* HAMBURGER */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.nav-toggle span {
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* =========================
   MAIN / SECTIONS
========================= */
main {
    margin-top: 70px;
}

/* Poista margin form-section sivuilla */
.form-section ~ main,
main:has(.form-section) {
    margin-top: 0;
}

/* Poista margin admin-sivuilla */
main:has(.admin-section) {
    margin-top: 0;
}

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    scroll-margin-top: 70px;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================
   HERO
========================= */
#hero {
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background-color: #c97a2b;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: #b86f26;
}

/* =========================
   SECTIONS: ABOUT / SERVICES / BOOKING / CONTACT
========================= */
#about, #booking-cta {
    background-color: #222;
    color: #fff;
}

#services, #contact {
    background-color: #000;
    color: #fff;
}

#about h2, #services h2, #booking-cta h2, #contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#about p, #services li, #booking-cta p, #contact p {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 16px;
}

/* =========================
   FORMS (LOGIN / REGISTER / BOOKING)
========================= */
.form-section {
    min-height: 100vh;
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center; /* Takaisin centeriin */
    padding-top: 70px;
    padding-bottom: 40px;
    margin-top: -5px;
}

.form-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    color: #fff;
}

.form-container h1 {
    margin-bottom: 24px;
}

.form label {
    display: block;
    margin-bottom: 6px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    text-align: left;
    font-weight: bold;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: none;
}
/* Onnistumis- ja virheviestit */
.form-messages {
    margin-bottom: 20px;
}

.form-success {
    background-color: #4caf50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.form-error {
    background-color: #f44336;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Lomakkeen alaosan linkki */
.form-text {
    margin-top: 20px;
    text-align: center;
    color: #ddd;
    font-size: 14px;
}

.form-text a {
    color: #c97a2b;
    text-decoration: none;
    font-weight: bold;
}

.form-text a:hover {
    color: #b86f26;
    text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
#site-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {

    /* Hero */
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        font-size: 18px;
    }

    /* Navbar menu */
    .main-nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: #000;
        display: none;
        text-align: left;
        padding: 20px;
        padding-bottom: 40px;
    }

    .main-nav.active ul {
        display: flex;
    }

    /* Navbar auth info */
    .auth {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-left: 10px;
    }

    .user-greeting {
        font-size: 14px;
        white-space: nowrap;
        color: #fff;
    }

    .btn-auth {
        font-size: 14px;
        padding: 6px 12px;
        white-space: nowrap;
    }

    /* Hamburger */
    .nav-toggle {
        display: flex;
        margin-left: auto;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }

    .nav-toggle span {
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }
}
/* =========================
   MOBILE / DESKTOP NÄKYVYYS
========================= */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* =========================
   RESPONSIVE NAVIGATION FIX
========================= */
@media (max-width: 768px) {
    .site-header .container {
        justify-content: space-between;
        position: relative;
    }
    
    /* Piilota desktop auth */
    .desktop-only {
        display: none !important;
    }
    
    /* Näytä mobile linkit navigaatiossa */
    .mobile-only {
        display: block;
    }
    
/* Navigaation tyylitys mobiilissa */
    .main-nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(2px);
        display: none;
        text-align: center;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 999;
    }

   .main-nav ul li {
        margin: 0;
        padding: 8px 0;
        border-bottom: 1px solid #333;
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 8px 0;
        font-size: 16px;
    }

   .nav-toggle {
        display: flex;
        z-index: 1001;
        margin-left: 12px;
    }

    .main-nav.active ul {
        display: flex;
    }
}

/* Profiili-nappi erikoistyyli */
.btn-profile {
    background-color: #555 !important;
    margin-right: 8px;
}

.btn-profile:hover {
    background-color: #666 !important;
}

/* Admin-nappi erikoistyyli */
.btn-admin {
    background-color: #f44336 !important;
    margin-right: 8px;
}

.btn-admin:hover {
    background-color: #d32f2f !important;
}

/* Mobile profiili-linkki ikonilla */
.mobile-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-profile-link svg {
    color: #c97a2b;
    transition: all 0.3s ease;
}

.mobile-profile-link:hover svg {
    color: #b86f26;
    transform: scale(1.1);
}

/* Mobile user greeting tyyli */
.mobile-user-greeting {
    background-color: #c97a2b;
    color: #000;
    font-weight: bold;
    padding: 12px 0 !important;
    margin-bottom: 8px;
    border-bottom: 2px solid #b86f26 !important;
}

.mobile-user-greeting span {
    font-size: 14px;
}
/* =========================
   AIKA-NAPIT (TIME SLOTS)
========================= */
.available-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-slot {
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
}

.time-slot:hover {
    background-color: #444;
    border-color: #c97a2b;
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: #c97a2b;
    color: #000;
    border-color: #c97a2b;
}

/* =========================
   PROFIILI DASHBOARD
========================= */
.profile-dashboard {
    max-width: 900px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 30px;
    border-radius: 8px;
    color: #fff;
    min-height: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin-bottom: 40px;
}
.profile-dashboard h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #c97a2b;
}

/* Välilehdet */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    flex-wrap: wrap;
}

.tab-button {
    background-color: transparent;
    color: #999;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.tab-button:hover {
    color: #c97a2b;
}

.tab-button.active {
    color: #c97a2b;
    border-bottom-color: #c97a2b;
}

/* Välilehden sisältö */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content h2 {
    color: #c97a2b;
    margin-bottom: 20px;
    font-size: 24px;
}

/* =========================
   VARAUSKORTIT (Profiili)
========================= */
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 2px dashed #555;
}

.no-bookings p {
    color: #999;
    font-size: 18px;
    margin-bottom: 20px;
}

.bookings-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0 40px 0;
}

.booking-item {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.6) 0%, rgba(20, 20, 20, 0.6) 100%);
    border: 2px solid #444;
    border-left: 5px solid #4caf50;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.booking-item:hover {
    border-color: #c97a2b;
    border-left-color: #c97a2b;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 122, 43, 0.3);
}

.booking-service {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.booking-badge {
    display: inline-block;
    background-color: #4caf50;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* Status-badget eri väreillä */
.booking-badge.status-cancelled {
    background-color: #f44336;
}

.booking-badge.status-completed {
    background-color: #666;
}

/* Peruutettujen varausten tyyli */
.booking-item.cancelled {
    border-left-color: #f44336 !important;
    opacity: 0.7;
}

.booking-item.cancelled .booking-service {
    color: #f44336;
}

.booking-info {
    margin: 25px 0;
}

.info-row {
    display: block;
    text-align: center;
    margin: 12px 0;
    font-size: 16px;
}

.info-label {
    color: #c97a2b;
    font-weight: bold;
    margin-right: 8px;
}

.info-value {
    color: #ddd;
}
.booking-cancel-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #555;
}

.btn-cancel-booking {
    background-color: #c97a2b;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-booking:hover {
    background-color: #b86f26;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 122, 43, 0.4);
}

/* Responsiivisuus */

@media (max-width: 768px) {
    .profile-dashboard {
        padding: 30px 20px;
    }
    
    .profile-dashboard h1 {
        font-size: 24px;
    }
    
    .tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-button {
        border-bottom: 1px solid #333;
        border-left: 3px solid transparent;
        text-align: left;
        min-width: auto;
    }
    
    .tab-button.active {
        border-left-color: #c97a2b;
        border-bottom-color: #333;
    }
}

/* =========================
   SALASANAN VAIHTO
========================= */
.password-requirements {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #c97a2b;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.password-requirements p {
    margin: 0 0 10px 0;
    color: #c97a2b;
    font-weight: bold;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 5px 0;
    color: #ddd;
    font-size: 14px;
}

/* Salasanan näyttäminen/piilottaminen (valinnainen tuleva ominaisuus) */
.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #c97a2b;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.password-toggle-btn:hover {
    color: #b86f26;
}

/* =========================
   DEMO CREDENTIALS BOX
========================= */
.demo-credentials {
    background-color: rgba(201, 122, 43, 0.2);
    border: 2px solid #c97a2b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.demo-credentials p {
    margin: 5px 0;
    font-size: 14px;
    color: #fff;
}

.demo-credentials strong {
    color: #c97a2b;
}

/* =========================
   ADMIN SECTION
========================= */
.admin-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 90px 20px 60px;
    margin-top: -5px; /* Poista ohut valkoinen viiva */
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
    color: #fff;
    min-height: auto; /* Poista kiinteä korkeus */
}

.admin-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #c97a2b;
    text-align: center;
}

.admin-welcome {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #ddd;
}

/* =========================
   TILASTOKORTIT
========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.stat-info h3 {
    font-size: 14px;
    color: #c97a2b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #c97a2b;
    margin: 10px 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #c97a2b;
    margin: 0;
}

/* Värikoodit eri korteille */
.stat-card.today .stat-number { color: #4caf50; }
.stat-card.week .stat-number { color: #2196f3; }
.stat-card.month .stat-number { color: #ff9800; }
.stat-card.pending .stat-number { color: #f44336; }

/* =========================
   ADMIN TAULUKKO
========================= */
.admin-bookings {
    margin-top: 40px;
}

.admin-bookings h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #c97a2b;
}

.table-responsive {
    overflow-x: auto;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 20px;
}

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

.admin-table thead {
    background-color: #c97a2b;
    color: #000 !important;
}

.admin-table thead th {
    color: #000 !important;
}
.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    font-size: 14px;
    color: #fff; /* Valkoinen teksti */
}
.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(201, 122, 43, 0.1);
}

.admin-table small {
    color: #ddd; /* Vaaleampi harmaa */
    font-size: 12px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.admin-back {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

.admin-back a {
    color: #c97a2b;
    text-decoration: none;
}

.admin-back a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .admin-container {
        padding: 20px;
    }
    
    .admin-container h1 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* =========================
   ADMIN VIESTIT
========================= */
.admin-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.admin-message.success {
    background-color: #4caf50;
    color: #fff;
}

.admin-message.error {
    background-color: #f44336;
    color: #fff;
}

/* =========================
   ADMIN LOMAKE
========================= */
.admin-add-booking {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .admin-add-booking {
        margin: 20px -10px;
        padding: 15px 10px;
    }
}

.btn-toggle {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.add-form {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .add-form {
        padding: 15px 10px;
    }
}

.add-form h3 {
    color: #c97a2b;
    margin-bottom: 20px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.admin-form label {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Radiobuttonit */
.admin-form input[type="radio"] {
    margin-right: 8px;
    margin-left: 12px;
}

.admin-form input[type="radio"]:first-of-type {
    margin-left: 0;
}

.admin-form label[for] {
    display: inline;
    margin-right: 15px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .admin-form input[type="radio"] {
        margin-right: 6px;
        margin-left: 8px;
    }
    
    .admin-form label[for] {
        margin-right: 10px;
        font-size: 13px;
    }
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #c97a2b;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit {
    background-color: #c97a2b;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: #b86f26;
}

.btn-cancel {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #555;
}

.btn-delete {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* =========================
   ADMIN RESPONSIIVISUUS
========================= */
@media (max-width: 1400px) {
    .admin-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .admin-section {
        padding: 15px;
        padding-top: 85px;
    }
    
    .admin-container {
        padding: 20px 15px;
    }
    
    .admin-container h1 {
        font-size: 24px;
    }
    
    .admin-welcome {
        font-size: 16px;
    }
    
    /* Lomake */
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Taulukko skrollaa vaakasuunnassa */
    .table-responsive {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Piilota turhat sarakkeet mobiilissa */
    .admin-table th:nth-child(1),
    .admin-table td:nth-child(1) {
        display: none; /* ID */
    }
    
    .admin-table th:nth-child(6),
    .admin-table td:nth-child(6) {
        font-size: 11px; /* Kesto pienempi */
    }
}

@media (max-width: 480px) {
    .admin-container h1 {
        font-size: 20px;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .btn-toggle,
    .btn-submit,
    .btn-cancel {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* =========================
   ADMIN VÄLILEHDET
========================= */
.admin-tabs {
    display: flex;
    gap: 0;
    margin: 40px 0 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.admin-tab-btn {
    flex: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #999;
    border: none;
    border-right: 1px solid #333;
    padding: 18px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-tab-btn:last-child {
    border-right: none;
}

.admin-tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c97a2b;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-tab-btn:hover {
    color: #c97a2b;
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.admin-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #c97a2b 0%, #b86f26 100%);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.admin-tab-btn.active::before {
    transform: scaleX(1);
}

.admin-tab-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    animation: fadeInTab 0.4s ease;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-tab-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    color: #c97a2b;
    border-bottom: 2px solid #c97a2b;
    padding-bottom: 10px;
    display: inline-block;
}

/* GDPR-huomio */
.gdpr-notice {
    background-color: rgba(255, 152, 0, 0.2);
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #fff;
}

.gdpr-notice strong {
    color: #ff9800;
}

/* GDPR-poisto nappi */
.btn-gdpr {
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-gdpr:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

/* Responsiivisuus välilehdille */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .admin-tab-btn {
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 15px 20px;
    }
    
    .admin-tab-btn:last-child {
        border-bottom: none;
    }
    
    .admin-tab-btn::before {
        width: 4px;
        height: 100%;
        left: 0;
        bottom: 0;
    }
    
    .admin-tab-content {
        padding: 20px 15px;
    }
}

/* Mobile profiili-ikoni navbarissa */
.mobile-profile-icon {
    display: none;
}

@media (max-width: 768px) {
    .mobile-profile-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(201, 122, 43, 0.2);
        color: #c97a2b;
        transition: all 0.3s ease;
        margin-left: auto;
        margin-right: 0;
        border: 2px solid #c97a2b;
    }

    .mobile-profile-icon:hover {
        background-color: #c97a2b;
        color: #000;
        transform: scale(1.1);
    }

    .mobile-profile-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Profiili-ikoni */
.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(201, 122, 43, 0.2);
    color: #c97a2b;
    transition: all 0.3s ease;
    margin-right: 8px;
    border: 2px solid #c97a2b;
}

.profile-icon:hover {
    background-color: #c97a2b;
    color: #000;
    border-color: #c97a2b;
    transform: scale(1.1);
}

.profile-icon svg {
    width: 20px;
    height: 20px;
}