/* Custom Styles for MyBookXXX */

:root {
    /* MyBookXXX Brand Colors */
    --mybookxxx-primary: #e0006c;
    --mybookxxx-secondary: #fd61e3;
    --mybookxxx-hot-pink: #ff4fd7;
    --mybookxxx-soft-pink: #ff77b8;
    --mybookxxx-dark: #0d0d0d;
    --mybookxxx-dark-bg: #1a1a1a;
    --mybookxxx-light-grey: #f2f2f2;
    --mybookxxx-text-muted: #999999;
    --mybookxxx-gradient: linear-gradient(135deg, #e0006c 0%, #fd61e3 50%, #ff4fd7 100%);
    
    /* Legacy color fallbacks */
    --primary-color: var(--mybookxxx-primary);
    --secondary-color: var(--mybookxxx-secondary);
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: var(--mybookxxx-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Logo Styling */
.logo-navbar {
    height: 32px;
    transition: transform 0.3s ease;
}

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

.logo-footer {
    height: 40px;
    filter: brightness(1.2);
}

.logo-auth {
    max-height: 80px;
    transition: transform 0.3s ease;
}

.logo-auth:hover {
    transform: scale(1.02);
}

.logo-hero {
    height: 60px;
    filter: brightness(1.1);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

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

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-buttons .btn {
    margin-bottom: 10px;
    min-width: 160px;
}

/* Feature Cards */
.feature-icon i {
    opacity: 0.8;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Steps Section */
.step-number {
    font-size: 1.5rem;
    margin: 0 auto;
}

/* Stats Section */
.stat-item h3 {
    margin-bottom: 0;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

/* Dashboard Styles */
.dashboard-sidebar {
    background-color: var(--light-color);
    min-height: calc(100vh - 76px);
    border-right: 1px solid #dee2e6;
}

.dashboard-sidebar .nav-link {
    color: var(--dark-color);
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.dashboard-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Model Cards */
.model-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.model-card .card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.model-card .model-info {
    padding: 20px;
}

.model-card .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* Calendar Styles */
.calendar {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.calendar-day {
    padding: 15px;
    border: 1px solid #dee2e6;
    min-height: 60px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-day:hover {
    background-color: var(--light-color);
}

.calendar-day.available {
    background-color: #d4edda;
    color: var(--success-color);
}

.calendar-day.booked {
    background-color: #f8d7da;
    color: var(--danger-color);
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--secondary-color);
    color: white;
}

/* Profile Image Upload */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--light-color);
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-image-container:hover .image-upload-overlay {
    opacity: 1;
}

/* Booking Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Enhanced Responsive Design */

/* Mobile-First Base Styles */
.container-responsive {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Responsive breakpoints for all devices */
@media (min-width: 576px) {
    .container-responsive { max-width: 540px; }
}

@media (min-width: 768px) {
    .container-responsive { max-width: 720px; }
}

@media (min-width: 992px) {
    .container-responsive { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container-responsive { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container-responsive { max-width: 1320px; }
}

/* Mobile Styles (Portrait & Landscape) */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .dashboard-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .model-card .card-img-top {
        height: 200px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .notification {
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 55vh;
        padding: 2.5rem 0;
    }
    
    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem;
    }
    
    .model-card .card-img-top {
        height: 220px;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .dashboard-sidebar .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Large Tablet / Small Desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .model-card .card-img-top {
        height: 240px;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 575.98px) {
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        max-width: 250px;
    }
    
    .model-card .card-img-top {
        height: 180px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .dashboard-sidebar .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 140px;
        max-width: 200px;
        flex: 0 0 auto;
    }
}

/* High-DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-navbar,
    .logo-footer,
    .logo-auth,
    .logo-hero {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .calendar-day {
        min-height: 48px;
    }
    
    .card:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .btn,
    .hero-buttons,
    .social-links {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: var(--mybookxxx-dark-bg);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .form-control {
        background-color: var(--mybookxxx-dark-bg);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .form-control:focus {
        background-color: var(--mybookxxx-dark-bg);
        border-color: var(--mybookxxx-primary);
        color: white;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
}

/* Footer */
footer {
    margin-top: auto;
}

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

footer a:hover {
    color: var(--secondary-color) !important;
}