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

/* BODY */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: bold;
    font-size: 24px;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 15px !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .admin-login-btn {
    background: rgba(255,193,7,0.2) !important;
    border: 1px solid rgba(255,193,7,0.5);
    color: #ffc107 !important;
    font-weight: 600;
}

.navbar-nav .admin-login-btn:hover {
    background: rgba(255,193,7,0.3) !important;
    border-color: #ffc107;
    color: #ffc107 !important;
    transform: translateY(-2px);
}

.navbar-nav .admin-login-btn::after {
    display: none;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.5);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.hero-buttons .btn {
    min-width: 150px;
    position: relative;
    z-index: 10;
}

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

/* FOOD CARDS */
.food-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.food-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.food-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.food-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.food-placeholder {
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.food-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.food-card:hover .food-placeholder i {
    transform: scale(1.1);
    opacity: 0.7;
}

.food-card:hover img {
    transform: scale(1.15);
}

.food-card .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.food-card h5 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.food-card .fw-bold {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

/* BUTTONS */
.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.6);
}

.btn-light {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.5);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    margin: 10px;
    border-radius: 50px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* CARDS */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* TABLES */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9ff;
    transform: scale(1.01);
}

/* CART */
.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.cart-actions a {
    margin: 0 5px;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-actions a:first-child {
    background: #28a745;
    color: white;
}

.cart-actions a:nth-child(2) {
    background: #ffc107;
    color: #333;
}

.cart-actions a:last-child {
    background: #dc3545;
    color: white;
}

.cart-actions a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* FORMS */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ALERTS */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* PAGE TITLES */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* HOVER CARD */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* BADGES */
.badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CONTAINER IMPROVEMENTS */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* TABLES RESPONSIVE */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

/* CARDS ENHANCEMENT */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* FORMS ENHANCEMENT */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

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

/* ALERTS ENHANCEMENT */
.alert {
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.alert-danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* LOADING STATES */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .food-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 40px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        margin: 2px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }
    
    .food-card {
        margin-bottom: 25px;
    }
    
    .food-card img,
    .food-placeholder {
        height: 180px;
    }
    
    .food-placeholder i {
        font-size: 3rem;
    }
    
    .food-card .card-body {
        padding: 20px;
    }
    
    .food-card h5 {
        font-size: 1.1rem;
    }
    
    .food-card .fw-bold {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .card-header {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 20px !important;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .food-card img,
    .food-placeholder {
        height: 160px;
    }
    
    .food-placeholder i {
        font-size: 2.5rem;
    }
    
    .food-card h5 {
        font-size: 1rem;
    }
    
    .food-card .fw-bold {
        font-size: 1.3rem;
    }
    
    .table th,
    .table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .card-header {
        font-size: 1rem;
        padding: 12px;
    }
}

/* PRINT STYLES */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS STATES */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}
