/* Ki Khana Loyalty Platform - Branded Styling */

:root {
    /* Ki Khana Brand Colors */
    --kikhana-orange: #FF6B35;
    --kikhana-yellow: #FFD23F;
    --kikhana-teal: #20B2AA;
    --kikhana-dark-blue: #2C3E50;
    --kikhana-light-orange: #FFB499;
    
    /* Updated theme colors */
    --primary-color: #FF6B35;
    --secondary-color: #20B2AA;
    --success-color: #20B2AA;
    --warning-color: #FFD23F;
    --danger-color: #E74C3C;
    --info-color: #20B2AA;
    --light-color: #FFF8F5;
    --dark-color: #2C3E50;
    
    /* Ki Khana gradients */
    --primary-gradient: linear-gradient(135deg, #FF6B35, #FFD23F);
    --secondary-gradient: linear-gradient(135deg, #20B2AA, #17A2B8);
    --accent-gradient: linear-gradient(135deg, #FFD23F, #FF6B35);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    background-image: linear-gradient(135deg, #FFF8F5 0%, #FFE4E1 100%);
    min-height: 100vh;
}

/* Ki Khana Logo Styling */
.kikhana-logo {
    max-height: 60px;
    width: auto;
    background: transparent !important;
    border: none;
    box-shadow: none;
}

.navbar-brand .kikhana-logo {
    max-height: 40px;
    background: transparent !important;
    border: none;
    box-shadow: none;
}

/* Ki Khana navbar - only for Ki Khana business */
.kikhana-navbar {
    background: linear-gradient(135deg, #FF6B35, #FFD23F) !important;
}

/* Ki Khana branded elements */
.kikhana-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.kikhana-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
    overflow: hidden;
}

.kikhana-card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.btn-kikhana-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-kikhana-primary:hover {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: white;
}

/* Hero CTA Section Styling */
.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.hero-cta .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Demo Video Section */
.demo-video-section {
    background: #f8f9fa;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    max-height: 500px;
}

@media (max-width: 768px) {
    .demo-video {
        max-height: 300px;
    }
}

.btn-kikhana-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-kikhana-secondary:hover {
    background: linear-gradient(135deg, #1B998B, #20B2AA);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    color: white;
}

/* Custom themed buttons */
.business-theme {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.business-theme:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.business-theme:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: var(--info-color);
    color: #0c5460;
}

/* Badge enhancements */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

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

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Dashboard statistics cards */
.stats-card {
    background: var(--primary-gradient);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Points display */
.points-display {
    background: var(--success-gradient);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.points-display .display-4 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* QR Code styling */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Reward cards */
.reward-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.reward-available {
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.reward-locked {
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    opacity: 0.7;
}

/* Timeline/Activity styling */
.activity-item {
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    background: white;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Color picker enhancements */
.form-control-color {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Loading states */
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Footer styling */
footer {
    margin-top: auto;
    background: var(--dark-color) !important;
    color: white;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Business logo styling */
.business-logo {
    max-height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Staff portal specific styling */
.staff-header {
    background: var(--info-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

/* Customer portal specific styling */
.customer-welcome {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
}

/* Pagination styling */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Text utilities */
.text-business {
    color: var(--primary-color) !important;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

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

/* Print styles */
@media print {
    .navbar, footer, .btn, .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        background: white !important;
    }
}
