:root {
    --primary: #5e911a;
    --primary-dark: #4a7a15;
    --secondary: #FFC72C;
    --dark: #27251F;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --border: 2px solid #e0e0e0;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header & Navigation */
.header {
    background-color: var(--primary);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: white;
    text-decoration: none;
}

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

 /*nav {
   background-color: var(--primary-dark);
    padding: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}
*/

/* Hero Sections */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/hero-biryani.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.video-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    margin-bottom: 40px;
    overflow: hidden;
}

.video-background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20%;
    box-sizing: border-box;
    pointer-events: none;
}

.video-overlay h1 {
    font-family: 'Barlow Condensed', sans-serif;
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-overlay p {
    font-size: 1.2rem;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.order-container {
    display: flex;
    margin-bottom: 50px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

.order-form {
    flex: 1;
    padding: 30px;
}

.order-summary {
    width: 350px;
    background-color: var(--gray);
    padding: 30px;
    border-left: var(--border);
}

/* Typography */
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.section-title i {
    margin-right: 10px;
}

/* Form Elements */
.form-row {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-group {
    position: relative;
}

.input-icon-wrapper {
    position: relative;
    width: 100%; /* Added to ensure full width */
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    pointer-events: none; /* Added to prevent icon interference */
    z-index: 2;
}

.input-icon-wrapper textarea + i {
    top: 20px;
    left: 15px; /* Changed from right to left for consistency */
    transform: none;
}

input, textarea {
    width: 100%; /* Changed from 80% to 100% for better click area */
    padding: 15px 15px 15px 45px;
    border: var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    min-height: 48px; /* Added for better touch targets */
    box-sizing: border-box;
}


select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: 'Roboto', sans-serif;
}

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

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #aaa;
}

.select-wrapper {
    position: relative;
    width: 100%; /* Changed from 80% to 100% */
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 40px;
    cursor: pointer;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.delivery-option {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option.active {
    border-color: var(--primary);
    background-color: rgba(228, 0, 43, 0.05);
}

.delivery-option i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.delivery-option h3 {
    margin: 10px 0 5px;
    color: var(--dark);
}

.delivery-option p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Menu Items */
.menu-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.menu-item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item:hover .menu-item-img {
    transform: scale(1.05);
}

.menu-item-details {
    flex: 1;
}

.menu-item-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.menu-item-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.menu-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.quantity-btn:hover {
    background-color: #C10024;
    transform: scale(1.1);
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 0 10px;
    border: var(--border);
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #C10024;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn i {
    margin-right: 10px;
}

/* Order Summary */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s;
}

.cart-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary);
}

/* Sinhala Font */
@font-face {
    font-family: 'UN-Gurulugomi';
    src: url('fonts/UN-Gurulugomi.woff2') format('woff2'),
         url('fonts/UN-Gurulugomi.ttf') format('truetype');
    font-display: swap;
}

.sinhala-text {
    font-family: 'UN-Gurulugomi', sans-serif;
    font-size: 200%;
    display: inline-block;
    line-height: 1.3;
    word-break: keep-all;
}

/* Admin Styles */
.admin-main {
    margin-left: 200px;
    padding: 1rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .order-container {
        flex-direction: column;
    }
    
    .order-summary {
        width: 100%;
        border-left: none;
        border-top: var(--border);
    }
    
    .hero h1, .video-overlay h1 {
        font-size: 2.5rem;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    h1 .sinhala-text {
        font-size: 180%;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    h1 .sinhala-text {
        font-size: 160%;
    }
    
    input, textarea, .select-wrapper {
        width: 100%;
    }
}
/* Index Page Styles */
.featured-items {
    padding: 60px 0;
    background-color: var(--light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.menu-card:hover {
    transform: translateY(-10px);
}

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

.menu-card-body {
    padding: 20px;
}

.menu-card-body h3 {
    margin: 0 0 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
}

.cta-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/kottu-bg.jpg');
    background-size: cover;
    color: white;
}

.cta-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Menu Page Styles */
.menu-hero {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/menu-hero.jpg');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.menu-hero .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.full-menu {
    padding: 60px 0;
}

.menu-column {
    max-width: 800px;
    margin: 0 auto;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .menu-item-img {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Header Navigation */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.main-nav a:hover {
    color: var(--secondary);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    min-width: 150px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative; /* Creates new stacking context */
    z-index: 10; /* Higher than potential overlays */
    pointer-events: auto !important; /* Overrides any inherited none */
}

/* Menu Card Styles */
.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

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

/* Featured On Section */
.featured-on {
    background-color: var(--light);
    padding: 40px 0;
    text-align: center;
}

.featured-title {
    font-family: 'Barlow Condensed', sans-serif;
    color:#a2a88c;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.featured-logos img {
    height: 80px;
    opacity: 0.7;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.featured-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer Styles */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-col p, .footer-col a {
    color: #ccc;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .featured-logos {
        gap: 20px;
    }
    
    .featured-logos img {
        height: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.admin-main {
    margin-left: 250px; /* Equal to sidebar width */
    padding: 2rem;
    box-sizing: border-box;
}
/* Sidebar-specific styles */
.sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    position: fixed;
    height: 100vh;
    padding: 1.5rem;
    box-sizing: border-box;
}

.sidebar-header h2 {
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px;
    margin: 5px 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background: var(--primary);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

