/* frontend/style.css - FINAL MERGED VERSION */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* =========================================
   1. GLOBAL & BACKGROUND
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    /* Modern Deep Purple/Blue Gradient Background */
    background: linear-gradient(135deg, #ecedf1 0%, #fbfafb 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
    padding-top: 100px; /* Space for your fixed header */
    overflow-x: hidden;
}

/* =========================================
   2. YOUR HEADER (Restored exactly as you wanted)
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 50px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none;
}

.logo img {
    height: 50px; /* Keeps your logo image the correct size */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    padding: 8px 15px;
    transition: 0.3s; 
    border-radius: 20px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
}

.nav-btn:hover { 
    background: #f0f2f5; 
    color: #27ae60; 
}

.nav-primary {
    background: #27ae60; 
    color: white !important; 
    padding: 8px 20px;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.nav-primary:hover { 
    background: #219150; 
    transform: translateY(-2px); 
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    header { padding: 10px 20px; flex-direction: column; gap: 10px; }
    .nav-links { gap: 5px; flex-wrap: wrap; justify-content: center; }
    body { padding-top: 140px; }
}

/* =========================================
   3. MODERN GLASS LAYOUT (For Login, Dashboard, Store)
   ========================================= */
/* These classes apply the frosted glass effect to your main content areas */
.container, .login-card, .order-card, .product-card, .admin-wrapper {
    background: rgba(255, 255, 255, 0.92); /* High readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 40px auto;
    max-width: 1000px;
}

/* =========================================
   4. MODERN INPUTS & BUTTONS
   ========================================= */
input[type="text"], input[type="number"], input[type="file"], input[type="tel"], input[type="email"], textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #764ba2;
    background: white;
    outline: none;
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.2);
}

/* Main Action Buttons (Submit, Pay, Login) */
button, .action-btn, .generate-btn {
    background: linear-gradient(45deg, #27ae60 0%, #2ecc71 100%); /* Green Gradient */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
}

button:hover, .action-btn:hover, .generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
}

/* =========================================
   5. TABLES & UTILITIES
   ========================================= */
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th { background: rgba(0,0,0,0.05); color: #333; padding: 12px; text-align: left; border-bottom: 2px solid #ddd; }
td { padding: 12px; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: middle; }

h2, h3 { color: #2c3e50; font-weight: 700; }

/* Status Messages */
.status { padding: 15px; border-radius: 12px; margin-top: 20px; display: none; }
.status.success { background: #d4edda; color: #155724; display: block; border: 1px solid #c3e6cb; }
.status.error { background: #f8d7da; color: #721c24; display: block; border: 1px solid #f5c6cb; }
.status.loading { background: #fff3cd; color: #856404; display: block; border: 1px solid #ffeeba; }