/* Restaurant Theme Styles - Modern & Professional */

:root {
    /* Brand Colors */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --surface-gradient: linear-gradient(to bottom right, #ffffff, #f9fafb);

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    /* UI Colors */
    --background-color: #f3f4f6;
    --surface-color: #ffffff;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
    --focus-ring: rgba(79, 70, 229, 0.25);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Fonts */
    --font-family: 'Poppins', sans-serif;
}

/* General Reset & Typography */
body {
    background-color: var(--background-color);
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Layout & Containers */
.main-wrapper {
    padding-top: 3rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 300px); /* Ensure footer stays down */
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Styling */
.content-card {
    background: var(--surface-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

/* Form Sections */
.form-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.form-section:hover .section-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(-5deg);
}

/* Form Controls */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.input-group-text {
    background-color: #f3f4f6;
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.75rem 0 0 0.75rem;
    font-weight: 500;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    background: var(--input-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .upload-icon {
    transform: scale(1.1);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    margin-top: 12px;
    border-radius: 3px;
    overflow: hidden;
    display: none; /* Hidden by default */
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Opening Hours */
.opening-hours-container {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.time-select input {
    text-align: center;
    font-weight: 500;
    min-width: 110px;
}

/* Map Container */
.map-container {
    height: 350px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

/* OTP Modal */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.otp-input-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background: #fff;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
    transform: translateY(-2px);
}

/* Country Code Dropdown */
.country-code-btn {
    background-color: #f9fafb !important;
    border-color: var(--border-color) !important;
    color: #1f2937 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.country-dropdown {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Validation & Status */
.form-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .form-section {
        padding: 1.25rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c7c7c7; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}
