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

:root {
    --primary-color: #FF6B00;
    --primary-light: #FF8C42;
    --primary-dark: #E55B00;
    --accent-color: #FF9E5E;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #FFF8F2;
    --card-hover: #FFF0E5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.kiosk-container {
    width: 100%;
    max-width: 1400px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    margin: 20px;
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Header Styles */
.kiosk-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px 25px;
    text-align: center;
    position: relative;
}

.kiosk-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation Grid - 2 rows x 4 columns */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    background: var(--background-light);
    min-height: 60vh;
}

/* Navigation Cards */
.nav-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #FFE8D9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    border-color: var(--primary-light);
    background: var(--card-hover);
}

.nav-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.25);
}

/* Card Icon */
.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.nav-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.card-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

/* Card Text */
.nav-card h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.nav-card:hover h2,
.nav-card:hover p {
    color: var(--primary-dark);
}

/* Footer */
.kiosk-footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.kiosk-footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navigation-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .kiosk-container {
        margin: 10px;
    }

    .kiosk-header h1 {
        font-size: 2rem;
    }

    .navigation-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        padding: 25px 15px;
        gap: 15px;
    }

    .nav-card {
        padding: 25px 15px;
        min-height: 180px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .nav-card h2 {
        font-size: 1.3rem;
    }

    .nav-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .kiosk-header h1 {
        font-size: 1.8rem;
    }

    .logo {
        max-height: 70px;
    }
}

@media (max-width: 576px) {
    .navigation-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        padding: 20px 15px;
    }

    .kiosk-header {
        padding: 20px 15px;
    }

    .kiosk-header h1 {
        font-size: 1.6rem;
        margin: 10px 0 5px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-card {
        min-height: 160px;
    }
}

/* Touch feedback for tablets */
@media (hover: none) {
    .nav-card:active {
        background: var(--card-hover);
    }
}

/* Accessibility */
.nav-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation */
.nav-card {
    animation: slideUp 0.5s ease-out backwards;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }
.nav-card:nth-child(4) { animation-delay: 0.4s; }
.nav-card:nth-child(5) { animation-delay: 0.5s; }
.nav-card:nth-child(6) { animation-delay: 0.6s; }
.nav-card:nth-child(7) { animation-delay: 0.7s; }
.nav-card:nth-child(8) { animation-delay: 0.8s; }

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