/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff5f5;
    color: #1c2526;
    line-height: 1.6; /* Increased for better readability */
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p, a, li, input, select, button {
    text-align: center;
}

h1 { font-size: 2rem; } /* Slightly larger for emphasis */
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p, a, li, input, select, button { font-size: 1rem; } /* Increased for readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1c2526;
}

/* Centered Containers */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px; /* Increased padding for better spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #d32f2f;
    padding: 10px 0; /* Slightly more padding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    z-index: 1000;
}

.navbar-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px; /* Increased padding */
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem; /* Slightly larger */
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    margin-right: 15px; /* More spacing */
}

.navbar-brand img {
    width: 45px; /* Slightly larger logo */
    margin-right: 8px;
}

.navbar-toggler {
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 6px; /* More padding for touch */
}

.navbar-toggler-icon i,
.navbar-close-icon i {
    font-size: 1.2rem; /* Larger icon */
}

/* Mobile Navbar */
.navbar-collapse {
    position: fixed;
    top: 0;
    left: -220px; /* Slightly wider */
    width: 220px;
    height: 100%;
    background: #d32f2f;
    padding: 20px; /* More padding */
    z-index: 1001;
    transition: left 0.4s ease-in-out;
}

.navbar-collapse.show {
    left: 0;
}

.navbar-collapse .nav-link {
    display: block;
    color: #ffffff !important;
    font-size: 0.9rem; /* Larger text */
    padding: 8px 12px; /* More padding */
    margin: 6px 0;
    border-radius: 6px; /* Softer corners */
    transition: background 0.3s ease, transform 0.2s ease; /* Added transform */
}

.navbar-collapse .nav-link:hover {
    background: #ffd700;
    color: #1c2526 !important;
    transform: scale(1.05); /* Subtle hover effect */
}

.navbar-nav {
    display: flex;
    flex-direction: column;
}

/* Desktop Navbar */
@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
    .navbar-collapse {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        left: 0;
        transition: none;
        display: flex !important;
    }
    .navbar-nav {
        flex-direction: row;
    }
    .navbar-collapse .nav-link {
        font-size: 0.9rem;
        padding: 6px 14px; /* More padding */
        margin: 0 6px;
        color: #ffffff !important;
        transition: background 0.3s ease, transform 0.2s ease; /* Added transform */
    }
    .navbar-collapse .nav-link:hover {
        background: #ffd700;
        color: #1c2526 !important;
        transform: scale(1.05); /* Hover effect */
    }
}

/* Main Wrapper */
.main-wrapper {
    margin-top: 60px; /* Adjusted for larger navbar */
    min-height: calc(100vh - 60px);
    padding-bottom: 70px; /* Adjusted for bottom nav */
}

/* Footer (base1.html) */
footer {
    background: #d32f2f;
    color: #ffffff;
    padding: 25px 0; /* More padding */
    text-align: center;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 8px; /* More spacing */
}

/* Hero Section (home.html) */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 70px 0; /* More padding */
    text-align: center;
    width: 100%;
}

.hero-section .overlay {
    background: rgba(211, 47, 47, 0.75); /* Slightly more opacity */
    padding: 20px; /* More padding */
    border-radius: 10px; /* Softer corners */
    max-width: 550px; /* Slightly wider */
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2rem; /* Larger text */
    color: #ffffff;
}

.hero-section p {
    font-size: 1rem; /* Larger text */
    color: #ffffff;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px; /* Softer corners */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* Stronger shadow */
    background: #ffffff;
    margin-bottom: 15px; /* More spacing */
    width: 100%;
    max-width: 370px; /* Slightly larger */
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added interactivity */
}

.card:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 150px; /* Slightly taller */
    object-fit: cover;
}

.card-body {
    padding: 15px; /* More padding */
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(90deg, #ffd700, #ffeb3b);
    color: #1c2526;
    border-radius: 10px; /* Softer corners */
    padding: 15px; /* More padding */
    text-align: center;
    max-width: 370px; /* Slightly larger */
    margin-left: auto;
    margin-right: auto;
}

.wallet-card h5 {
    font-size: 1.1rem; /* Larger text */
    margin-bottom: 10px; /* More spacing */
}

.wallet-card p {
    font-size: 0.9rem; /* Larger text */
}

.wallet-card a {
    background: #d32f2f;
    color: #ffffff;
    border: none;
    padding: 8px 14px; /* More padding */
    font-size: 0.9rem; /* Larger text */
    border-radius: 6px; /* Added for consistency */
    transition: background 0.2s ease, transform 0.2s ease; /* Added transform */
}

.wallet-card a:hover {
    background: #b71c1c;
    transform: scale(1.05); /* Subtle hover effect */
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px; /* Softer corners */
    border: 1px solid #d1d5db;
    padding: 10px; /* More padding for touch */
    font-size: 0.9rem; /* Larger text */
    width: 100%;
    max-width: 370px; /* Slightly larger */
    margin: 0 auto;
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Smoother transition */
}

.form-control:focus, .form-select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.3); /* Stronger focus effect */
}

.form-label {
    font-size: 0.9rem; /* Larger text */
    color: #1c2526;
    text-align: center;
    display: block;
    margin-bottom: 5px; /* Added spacing */
}

.payment-form .form-select,
.payment-form .form-control {
    margin-bottom: 10px; /* More spacing */
}

/* Buttons */
.btn-primary {
    background: #d32f2f;
    border: none;
    border-radius: 6px; /* Softer corners */
    padding: 10px 20px; /* More padding */
    font-size: 0.9rem; /* Larger text */
    transition: background 0.2s ease, transform 0.2s ease; /* Added transform */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added depth */
}

.btn-primary:hover {
    background: #b71c1c;
    transform: scale(1.05); /* Subtle hover effect */
}

.btn-outline-primary {
    border: 1px solid #d32f2f;
    color: #d32f2f;
    border-radius: 6px; /* Softer corners */
    padding: 8px 16px; /* More padding */
    font-size: 0.85rem; /* Larger text */
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; /* Added transform */
}

.btn-outline-primary:hover {
    background: #d32f2f;
    color: #ffffff;
    transform: scale(1.05); /* Subtle hover effect */
}

.btn-outline-success {
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 6px; /* Softer corners */
    padding: 8px 16px; /* More padding */
    font-size: 0.85rem; /* Larger text */
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; /* Added transform */
}

.btn-outline-success:hover {
    background: #28a745;
    color: #ffffff;
    transform: scale(1.05); /* Subtle hover effect */
}

.btn-lg {
    padding: 12px 24px; /* More padding */
    font-size: 1rem; /* Larger text */
}

/* Alerts */
.alert {
    border-radius: 6px; /* Softer corners */
    margin-bottom: 15px; /* More spacing */
    font-size: 0.9rem; /* Larger text */
    text-align: center;
    max-width: 370px; /* Slightly larger */
    margin-left: auto;
    margin-right: auto;
    padding: 10px; /* Added padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added depth */
}

/* Tables */
.table {
    font-size: 0.9rem; /* Larger text */
    border-radius: 6px; /* Added for consistency */
    overflow: hidden; /* Cleaner look */
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 10px; /* More padding */
}

.table tbody tr:hover {
    background: #ffd700; /* Hover effect */
    color: #1c2526;
    transition: background 0.2s ease;
}

/* Timeline (order_confirmation.html) */
.timeline {
    list-style: none;
    padding: 15px 0; /* More padding */
    position: relative;
    max-width: 370px; /* Slightly larger */
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px; /* Thicker line */
    background: #ffd700;
    left: 6px;
}

.timeline li {
    margin-bottom: 15px; /* More spacing */
    position: relative;
    padding-left: 25px; /* More indent */
    font-size: 0.9rem; /* Larger text */
    transition: transform 0.3s ease; /* Added interactivity */
}

.timeline li:hover {
    transform: translateX(5px); /* Subtle hover effect */
}

.timeline li:before {
    content: '';
    width: 12px; /* Larger dot */
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    position: absolute;
    left: 0; /* Adjusted position */
    top: 3px;
}

/* Bottom Navigation (base2.html) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    display: flex;
    justify-content: space-around;
    padding: 8px 0; /* More padding */
    z-index: 1000;
}

.bottom-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 1.4rem; /* Larger icons */
    padding: 8px 12px; /* More padding */
    flex: 1;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease; /* Added transform */
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #d32f2f;
    transform: scale(1.1); /* Subtle hover effect */
}

/* Users Online Indicator */
.users-online {
    margin-top: 12px; /* Adjusted spacing */
    margin-bottom: 25px;
    background: #ffffff;
    padding: 6px 12px; /* More padding */
    border-radius: 20px; /* Softer corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    font-size: 0.9rem; /* Larger text */
    display: inline-flex;
    align-items: center;
}

.users-online span {
    margin-right: 6px; /* More spacing */
}

.green-dot {
    width: 10px; /* Larger dot */
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite; /* Added pulsing effect */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Accessibility Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #ffd700; /* Visible focus style */
    outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 768px) {
    h1 { font-size: 2.4rem; } /* Larger text */
    h2 { font-size: 2rem; }
    p, a, li, input, select, button { font-size: 1rem; }
    .container {
        max-width: 1200px;
        padding: 0 20px; /* More padding */
    }
    .hero-section {
        padding: 90px 0; /* More padding */
    }
    .hero-section h1 {
        font-size: 2.4rem; /* Larger text */
    }
    .card-img-top {
        height: 200px; /* Taller image */
    }
    .form-control, .form-select {
        max-width: 500px;
        font-size: 1rem; /* Larger text */
    }
    .bottom-nav a {
        font-size: 1.5rem; /* Larger icons */
        padding: 10px 14px; /* More padding */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px; /* Adjusted padding */
    }
    .card-body {
        padding: 12px; /* More padding */
    }
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem; /* Larger text */
    }
    .form-control, .form-select {
        font-size: 0.85rem; /* Larger text */
        padding: 8px; /* More padding */
    }
    .bottom-nav {
        padding: 6px 0; /* Adjusted padding */
    }
    .bottom-nav a {
        font-size: 1.2rem; /* Larger icons */
        padding: 6px 10px;
    }
    .users-online {
        font-size: 0.8rem; /* Larger text */
        padding: 5px 10px;
    }
}
