/**
 * Main Styles for Digital Menu Platform
 * نمط منصة القائمة الرقمية (منيو كي)
 */

/* ===== Notifications Styles ===== */
.notification-unread {
    border-right: 4px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-icon {
    background-color: rgba(13, 110, 253, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-text {
    color: #555;
}

/* ===== Restaurant Profile Styles ===== */
.restaurant-profile-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.restaurant-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.restaurant-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #007cfe, #15a0ba);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.restaurant-name {
    font-weight: bold;
    color: #333;
    letter-spacing: 0.5px;
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card .stats-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card .stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Styles */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #101e1e;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #101e1e;
    
    /* MenuQi Brand Colors */
    --menuqi-red: #FF6B6B;
    --menuqi-dark: #101e1e;
    --menuqi-cream: #FFF8E8;
    --menuqi-light-gray: #f1f1f1;
}

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

body {
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    letter-spacing: 0.3px;
}

/* Header and Navigation */
header {
    margin-bottom: 15px;
}

.navbar-brand {
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to left, #e86363, #FF6B6B);
    border-radius: 10px;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e86363;
    border-color: #e55c5c;
}

/* Features Section */
.features .card {
    height: 100%;
    padding: 1rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pricing Section */
.pricing .card {
    height: 100%;
}

.card-price {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Demo Section */
.menu-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.price {
    font-weight: bold;
    color: var(--danger-color);
}

/* Dashboard */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Restaurant Menu */
.menu-header {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 15px 15px;
}

.menu-logo {
    max-height: 100px;
    margin-bottom: 15px;
}

.menu-sections {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.menu-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.menu-footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 0;
    border-radius: 15px 15px 0 0;
    margin-top: 30px;
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
}

/* Sortable tables */
.sortable-sections tr, .sortable-items tr {
    cursor: grab;
}

.sortable-sections tr:active, .sortable-items tr:active {
    cursor: grabbing;
}

.ui-sortable-helper {
    display: table;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* QR Code container */
#qrcode-container {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .btn {
        padding: 0.4rem 1rem;
    }
    
    .card-price {
        font-size: 2rem;
    }
    
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-img {
        margin-bottom: 15px;
    }
    
    .list-group-item.active {
        margin-top: 15px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Arabic-specific adjustments */
[dir="rtl"] .ms-auto {
    margin-right: auto;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto;
    margin-right: 0 !important;
}

/* Headings enhancement */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Subscription plan display */
.subscription-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.plan-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.plan-header {
    color: white;
    padding: 20px;
    text-align: center;
}

.plan-monthly .plan-header {
    background: linear-gradient(135deg, #FF6B6B, #e86363);
}

.plan-yearly .plan-header {
    background: linear-gradient(135deg, #101e1e, #162a2a);
}

.plan-header h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1;
}

.plan-price-currency {
    font-size: 24px;
    vertical-align: super;
}

.plan-price-period {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.plan-body {
    padding: 20px 30px;
    background-color: white;
}

.plan-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--primary-color);
    margin-left: 10px;
}

.plan-features .feature-disabled {
    opacity: 0.5;
}

.plan-features .feature-disabled i {
    color: #ccc;
}

.plan-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    text-align: center;
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 1px;
}

.plan-badge-popular {
    background-color: #ff9800;
    color: white;
}

.plan-badge-value {
    background-color: #4CAF50;
    color: white;
}

/* Reminder system styles */
.reminder-stat-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reminder-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reminder-stat-icon {
    font-size: 48px;
    opacity: 0.2;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* MenuQi Logo Styles */
.menuqi-logo {
    max-height: 40px;
    margin-right: 10px;
}

/* Navbar Brand */
.navbar-dark {
    background-color: var(--menuqi-dark) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white;
}

/* Footer */
.bg-dark {
    background-color: var(--menuqi-dark) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-darker {
    background-color: rgba(0,0,0,0.3) !important;
}

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.transition-color {
    transition: all 0.3s ease;
}

.navbar .nav-link {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-color) !important;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-cta .btn {
    transition: all 0.3s ease;
}

.nav-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Footer Styles */
.footer-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 15px;
}

.footer-links a {
    transition: all 0.3s ease;
    line-height: 1.8;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-right: 5px;
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.newsletter-box {
    border-radius: 15px;
    border-top: 4px solid var(--primary-color);
}

.contact-list .icon-box {
    transition: all 0.3s ease;
}

.contact-list li:hover .icon-box {
    transform: scale(1.1);
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-bottom a {
    transition: all 0.3s ease;
}

