:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px; /* Add top padding to account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

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

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

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

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}

/* Rating Stars */
.rating {
    color: #ffc107;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Search Bar */
.search-bar {
    background: white;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-bar input {
    border: none;
    outline: none;
}

/* Barbershop Card */
.barbershop-card {
    position: relative;
    margin-bottom: 30px;
}

.barbershop-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

/* Service List */
.service-item {
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Booking Status */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-confirmed {
    background-color: #17a2b8;
    color: #fff;
}

.status-completed {
    background-color: #28a745;
    color: #fff;
}

.status-cancelled {
    background-color: #dc3545;
    color: #fff;
}

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

/* Profile Image */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section {
        height: 400px;
        padding-top: 100px; /* Increased top padding for mobile navbar */
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Mobile Typography */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.2rem !important; }
    h5 { font-size: 1.1rem !important; }
    h6 { font-size: 1rem !important; }
    
    /* Mobile Spacing */
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Mobile Cards */
    .card {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Mobile Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 25px;
        margin: 5px;
    }
    
    .btn-lg {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Mobile Forms */
    .form-control {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    /* Mobile Feature Icons */
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    /* Mobile Steps */
    .step-circle {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 15px;
    }
    
    /* Mobile Tables */
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
        vertical-align: middle;
    }
    
    /* Mobile Alerts */
    .alert {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    /* Mobile Badges */
    .badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Mobile Pagination */
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Mobile Modals */
    .modal-dialog {
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

/* Navbar Logo Styles */
.navbar-logo {
    transition: all 0.3s ease;
    object-fit: contain;
}

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

/* Logo responsive sizing */
@media (max-width: 768px) {
    .navbar-logo {
        max-height: 40px !important;
        max-width: 180px !important;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        max-height: 35px !important;
        max-width: 150px !important;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

/* Mobile Responsive Navbar */
.navbar .nav-link {
    transition: all 0.3s ease;
}

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

@media (max-width: 991px) {
    .navbar .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem !important;
    }
    
    .navbar .nav-link span {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar .nav-link {
        font-size: 1.1rem;
        padding: 0.4rem !important;
    }
    
    .btn-primary.btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Responsive Navigation Icons - Medium Size for Mobile */
@media (max-width: 991px) {
    .navbar .nav-link i {
        font-size: 1.4rem !important;
    }
    
    .navbar .dropdown-toggle i {
        font-size: 1.4rem !important;
    }
    
    .navbar-logo {
        max-height: 55px !important;
    }
    
    /* Touch-friendly navigation */
    .navbar .nav-link {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px !important;
        transition: all 0.3s ease;
    }
    
    /* Mobile navbar collapse */
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        padding: 15px;
        margin-top: 10px;
    }
    
    /* Mobile nav items */
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    .navbar-nav .nav-link {
        border-radius: 8px;
        padding: 12px 16px !important;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 10px;
    }
    
    .dropdown-item {
        color: white !important;
        padding: 10px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
}

@media (max-width: 767px) {
    .navbar .nav-link i {
        font-size: 1.4rem !important;
    }
    
    .navbar .dropdown-toggle i {
        font-size: 1.4rem !important;
    }
    
    .navbar .nav-link {
        padding: 10px 14px !important;
    }
    
    .navbar-logo {
        max-height: 60px !important;
    }
    
    /* Smaller screens */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 575px) {
    .navbar .nav-link i {
        font-size: 1.4rem !important;
    }
    
    .navbar .dropdown-toggle i {
        font-size: 1.4rem !important;
    }
    
    .navbar .nav-link {
        padding: 12px 16px !important;
    }
    
    .navbar-logo {
        max-height: 65px !important;
        max-width: 200px !important;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 1.1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .btn-primary i, .btn-secondary i {
        font-size: 1.3rem !important;
    }
    
    /* Extra small mobile optimizations */
    .navbar-toggler {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
    
    .navbar-toggler-icon {
        width: 25px;
        height: 25px;
    }
}

/* Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Touch-friendly hover states */
    .btn, .card, .nav-link, .dropdown-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile card hover effects */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile button press effects */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mobile input focus */
    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        transform: scale(1.02);
        transition: all 0.3s ease;
    }
    
    /* Mobile swipe gestures for cards */
    .card {
        position: relative;
        overflow: hidden;
    }
    
    /* Mobile loading states */
    .btn.loading {
        pointer-events: none;
        opacity: 0.7;
    }
    
    .btn.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        margin: auto;
        border: 2px solid transparent;
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s linear infinite;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        /* Note: Use loading="lazy" in HTML img tags for lazy loading */
    }
    
    /* Mobile viewport optimizations */
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Mobile safe areas */
    .container {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Mobile scrollbar styling */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* Mobile Landscape Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 300px;
        padding-top: 70px;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(33, 37, 41, 0.98);
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Mobile Portrait Optimizations */
@media (max-width: 480px) and (orientation: portrait) {
    .hero-section h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-section p {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-group .btn {
        width: auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-logo {
        max-height: 50px !important;
        max-width: 150px !important;
    }
}

/* Mobile-Specific Component Enhancements */

/* Mobile Barbershop Cards */
@media (max-width: 768px) {
    .barbershop-card {
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }
    
    .barbershop-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .barbershop-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Mobile Service Cards */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 20px;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .service-card .card-body {
        padding: 20px;
    }
    
    .service-price {
        font-size: 1.5rem;
        font-weight: bold;
    }
}

/* Mobile Barber Profiles */
@media (max-width: 768px) {
    .barber-profile {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .barber-profile img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .barber-profile h5 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .barber-profile p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
}

/* Mobile Review Cards */
@media (max-width: 768px) {
    .review-card {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 10px;
        background: #f8f9fa;
    }
    
    .review-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }
    
    .review-name {
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .review-date {
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .review-rating {
        margin-bottom: 10px;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Mobile Booking Form */
@media (max-width: 768px) {
    .booking-form {
        padding: 20px;
        border-radius: 15px;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .booking-form .form-group {
        margin-bottom: 20px;
    }
    
    .booking-form .form-label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .booking-form .form-control {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .booking-form .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .booking-form .btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 10px;
    }
}

/* Mobile Dashboard */
@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: #343a40;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .dashboard-header {
        padding: 15px;
        background: white;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 20px;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .dashboard-card .card-body {
        padding: 20px;
    }
    
    .dashboard-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.9rem;
        opacity: 0.9;
    }
}

/* Mobile Tables Responsive */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .table {
        margin-bottom: 0;
    }
    
    .table th {
        background: #f8f9fa;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 12px 8px;
    }
    
    .table td {
        padding: 12px 8px;
        font-size: 0.9rem;
        vertical-align: middle;
    }
    
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(248, 249, 250, 0.5);
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }
    
    .footer-section ul li a:hover {
        color: #667eea;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
        font-size: 0.8rem;
        color: #6c757d;
    }
}

/* Barbershop Details Page - Mobile Responsive */
@media (max-width: 768px) {
    /* Shop Header */
    .shop-header h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .shop-header .lead {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    /* Rating Section */
    .rating-section {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .rating-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .rating-badge {
        font-size: 1rem !important;
        padding: 8px 16px !important;
        margin-bottom: 10px;
    }
    
    .rating-stars i {
        font-size: 1.1rem !important;
    }
    
    /* Address Cards */
    .address-card, .hours-card {
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .address-card h6, .hours-card h6 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .address-card p, .hours-card p {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    /* Shop Image */
    .shop-image-container {
        margin-bottom: 20px;
    }
    
    .shop-image-container img {
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    /* Services Section */
    .services-section .card-header h4 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .service-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }
    
    .service-card .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-card .icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px;
    }
    
    .service-card .icon-wrapper i {
        font-size: 1.2rem !important;
    }
    
    .service-card h5 {
        font-size: 1rem !important;
        margin-bottom: 8px;
    }
    
    .service-card p {
        font-size: 0.85rem !important;
        margin-bottom: 10px;
    }
    
    .service-card .badge {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .price-badge {
        font-size: 1rem !important;
        padding: 10px 16px !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .service-card .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    /* Barbers Section */
    .barbers-section .card-header h4 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .barber-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }
    
    .barber-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .barber-card .image-wrapper img {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto;
    }
    
    .barber-card .badge.position-absolute {
        bottom: -5px !important;
        right: 35% !important;
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
    
    .barber-card h6 {
        font-size: 1rem !important;
        margin-bottom: 5px;
    }
    
    .barber-card p {
        font-size: 0.85rem !important;
        margin-bottom: 10px;
    }
    
    .barber-card .badge {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        margin-bottom: 5px;
    }
    
    /* Reviews Section */
    .reviews-section .card-header h4 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .review-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }
    
    .review-card .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-card .avatar-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin: 0 auto 10px;
    }
    
    .review-card h6 {
        font-size: 0.9rem !important;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .review-card .rating-stars {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .review-card .rating-stars i {
        font-size: 0.8rem !important;
    }
    
    .review-card .date-badge {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
        text-align: center;
        margin: 0 auto;
        display: inline-block;
    }
    
    .review-card p {
        font-size: 0.85rem !important;
        text-align: center;
        line-height: 1.5;
    }
    
    /* Booking Sidebar */
    .booking-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .booking-sidebar .card-header h5 {
        font-size: 1.1rem !important;
        text-align: center;
    }
    
    .booking-sidebar .card-body {
        padding: 20px !important;
    }
    
    .booking-sidebar .info-card {
        padding: 15px !important;
        margin-bottom: 15px;
    }
    
    .booking-sidebar .info-card h6 {
        font-size: 0.9rem !important;
        margin-bottom: 8px;
    }
    
    .booking-sidebar .info-card p {
        font-size: 0.85rem !important;
        margin-bottom: 5px;
    }
    
    .booking-sidebar .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .booking-sidebar .login-prompt {
        text-align: center;
    }
    
    .booking-sidebar .login-prompt p {
        font-size: 0.85rem !important;
        margin-bottom: 15px;
    }
    
    /* Contact Cards */
    .contact-card {
        padding: 15px !important;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .contact-card h6 {
        font-size: 0.9rem !important;
        margin-bottom: 8px;
    }
    
    .contact-card p {
        font-size: 0.85rem !important;
        margin-bottom: 5px;
    }
    
    .contact-card .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

/* Small Mobile Devices - Barbershop Details */
@media (max-width: 480px) {
    /* Shop Header */
    .shop-header h1 {
        font-size: 1.8rem !important;
    }
    
    .shop-header .lead {
        font-size: 0.9rem !important;
    }
    
    /* Service Cards */
    .service-card {
        padding: 15px !important;
    }
    
    .service-card .icon-wrapper {
        width: 35px !important;
        height: 35px !important;
    }
    
    .service-card .icon-wrapper i {
        font-size: 1rem !important;
    }
    
    .service-card h5 {
        font-size: 0.9rem !important;
    }
    
    .service-card p {
        font-size: 0.8rem !important;
    }
    
    /* Barber Cards */
    .barber-card {
        padding: 15px !important;
    }
    
    .barber-card .image-wrapper img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .barber-card h6 {
        font-size: 0.9rem !important;
    }
    
    /* Review Cards */
    .review-card {
        padding: 15px !important;
    }
    
    .review-card .avatar-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
    
    .review-card h6 {
        font-size: 0.85rem !important;
    }
    
    .review-card p {
        font-size: 0.8rem !important;
    }
    
    /* Booking Sidebar */
    .booking-sidebar .card-body {
        padding: 15px !important;
    }
    
    .booking-sidebar .info-card {
        padding: 12px !important;
    }
    
    .booking-sidebar .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation - Barbershop Details */
@media (max-width: 768px) and (orientation: landscape) {
    .shop-header h1 {
        font-size: 1.6rem !important;
    }
    
    .service-card {
        padding: 15px !important;
    }
    
    .barber-card {
        padding: 15px !important;
    }
    
    .review-card {
        padding: 15px !important;
    }
    
    .booking-sidebar {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* Barbershop Details - Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Service Cards Touch Effects */
    .service-card {
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .service-card:hover::before {
        left: 100%;
    }
    
    .service-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Barber Cards Touch Effects */
    .barber-card {
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .barber-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    .barber-card:active {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    /* Review Cards Touch Effects */
    .review-card {
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .review-card:hover {
        transform: translateX(5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .review-card:active {
        transform: translateX(2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    /* Booking Sidebar Touch Effects */
    .booking-sidebar .btn {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .booking-sidebar .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .booking-sidebar .btn:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .booking-sidebar .btn:active {
        transform: scale(0.95);
    }
    
    /* Contact Cards Touch Effects */
    .contact-card {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .contact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    
    .contact-card:active {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    
    /* Shop Image Touch Effects */
    .shop-image-container img {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .shop-image-container img:hover {
        transform: scale(1.02);
        box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    }
    
    .shop-image-container img:active {
        transform: scale(1.01);
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }
    
    /* Rating Badge Touch Effects */
    .rating-badge {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .rating-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(253, 203, 110, 0.4);
    }
    
    .rating-badge:active {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(253, 203, 110, 0.3);
    }
    
    /* Price Badge Touch Effects */
    .price-badge {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .price-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(253, 203, 110, 0.4);
    }
    
    .price-badge:active {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(253, 203, 110, 0.3);
    }
    
    /* Avatar Touch Effects */
    .barber-card .image-wrapper img {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .barber-card .image-wrapper img:hover {
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    }
    
    .barber-card .image-wrapper img:active {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    /* Review Avatar Touch Effects */
    .review-card .avatar-circle {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .review-card .avatar-circle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }
    
    .review-card .avatar-circle:active {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    }
    
    /* Icon Wrapper Touch Effects */
    .service-card .icon-wrapper {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .service-card .icon-wrapper:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }
    
    .service-card .icon-wrapper:active {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    }
    
    /* Star Rating Touch Effects */
    .rating-stars i {
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .rating-stars i:hover {
        transform: scale(1.2);
    }
    
    .rating-stars i:active {
        transform: scale(1.1);
    }
    
    /* Badge Touch Effects */
    .service-card .badge {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .service-card .badge:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
    }
    
    .service-card .badge:active {
        transform: scale(1.02);
        box-shadow: 0 2px 8px rgba(0, 184, 148, 0.2);
    }
    
    /* Remove tap highlight for better mobile experience */
    .service-card,
    .barber-card,
    .review-card,
    .booking-sidebar .btn,
    .contact-card,
    .shop-image-container img,
    .rating-badge,
    .price-badge,
    .barber-card .image-wrapper img,
    .review-card .avatar-circle,
    .service-card .icon-wrapper,
    .rating-stars i,
    .service-card .badge {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for content */
    .service-card h5,
    .service-card p,
    .barber-card h6,
    .barber-card p,
    .review-card h6,
    .review-card p,
    .shop-header h1,
    .shop-header .lead,
    .booking-sidebar .info-card h6,
    .booking-sidebar .info-card p,
    .contact-card h6,
    .contact-card p {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Barbershop Details - Mobile Loading States */
@media (max-width: 768px) {
    .service-card.loading,
    .barber-card.loading,
    .review-card.loading {
        position: relative;
        overflow: hidden;
    }
    
    .service-card.loading::before,
    .barber-card.loading::before,
    .review-card.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
        animation: loading-shimmer 1.5s infinite;
    }
    
    @keyframes loading-shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .booking-sidebar .btn.loading {
        position: relative;
        color: transparent;
    }
    
    .booking-sidebar .btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* Barbershop Details - Mobile Accessibility Improvements */
@media (max-width: 768px) {
    /* Focus states for keyboard navigation */
    .service-card:focus,
    .barber-card:focus,
    .review-card:focus,
    .booking-sidebar .btn:focus,
    .contact-card:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .service-card,
        .barber-card,
        .review-card,
        .booking-sidebar,
        .contact-card {
            border: 2px solid #000;
        }
        
        .service-card h5,
        .barber-card h6,
        .review-card h6 {
            color: #000;
        }
        
        .service-card p,
        .barber-card p,
        .review-card p {
            color: #000;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .service-card,
        .barber-card,
        .review-card,
        .booking-sidebar .btn,
        .contact-card,
        .shop-image-container img,
        .rating-badge,
        .price-badge,
        .barber-card .image-wrapper img,
        .review-card .avatar-circle,
        .service-card .icon-wrapper,
        .rating-stars i,
        .service-card .badge {
            transition: none;
            animation: none;
        }
        
        .service-card:hover,
        .barber-card:hover,
        .review-card:hover,
        .booking-sidebar .btn:hover,
        .contact-card:hover,
        .shop-image-container img:hover,
        .rating-badge:hover,
        .price-badge:hover,
        .barber-card .image-wrapper img:hover,
        .review-card .avatar-circle:hover,
        .service-card .icon-wrapper:hover,
        .rating-stars i:hover,
        .service-card .badge:hover {
            transform: none;
        }
    }
}

/* Barbershop Dashboard - Mobile Responsive */
@media (max-width: 768px) {
    /* Dashboard Container */
    .container-fluid {
        padding: 10px;
    }
    
    /* Sidebar - Responsive Only */
    .modern-sidebar {
        position: relative;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .sidebar-header {
        text-align: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .shop-avatar {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px;
        font-size: 1.5rem !important;
    }
    
    .shop-name {
        font-size: 1rem !important;
        margin-bottom: 8px;
    }
    
    .shop-status {
        font-size: 0.8rem !important;
        padding: 4px 12px;
        border-radius: 20px;
    }
    
    /* Sidebar Navigation */
    .sidebar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        padding: 12px 20px;
        margin: 5px 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .nav-item:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }
    
    .nav-item.active {
        background: rgba(255,255,255,0.15);
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        font-size: 1.2rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
        flex: 1;
    }
    
    .nav-indicator {
        width: 4px;
        height: 20px;
        background: white;
        border-radius: 2px;
    }
    
    /* Sidebar Stats */
    .sidebar-stats {
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: space-around;
    }
    
    .stat-item {
        text-align: center;
        flex: 1;
    }
    
    .stat-item i {
        font-size: 1.2rem;
        margin-bottom: 5px;
        display: block;
    }
    
    .stat-value {
        font-size: 1.1rem;
        font-weight: bold;
        display: block;
    }
    
    .stat-label {
        font-size: 0.7rem;
        opacity: 0.8;
        display: block;
    }
    
    /* Main Content Area */
    .col-md-9.col-lg-10 {
        padding-left: 0;
        margin-left: 0;
    }
    
    /* Dashboard Logo */
    .dashboard-logo-section {
        padding: 20px 0;
        text-align: center;
    }
    
    .dashboard-page-logo {
        max-height: 80px !important;
        margin-bottom: 15px;
    }
    
    /* Dashboard Header */
    .dashboard-header {
        text-align: center;
        margin-bottom: 25px;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 15px;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem !important;
        margin-bottom: 8px;
    }
    
    .dashboard-header p {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
    }
    
    /* Mobile Responsive Sidebar Only */
    @media (max-width: 768px) {
        .modern-sidebar {
            position: relative;
            top: 0;
            margin-bottom: 20px;
        }
        
        .sidebar-header {
            padding: 20px 15px;
        }
        
        .shop-avatar {
            width: 60px;
            height: 60px;
        }
        
        .shop-avatar i {
            font-size: 1.5rem;
        }
        
        .shop-name {
            font-size: 0.95rem;
        }
        
        .shop-status {
            font-size: 0.75rem;
        }
        
        .sidebar-nav {
            padding: 15px 10px;
        }
        
        .nav-item {
            padding: 12px 15px;
            margin-bottom: 6px;
        }
        
        .nav-icon {
            width: 35px;
            height: 35px;
        }
        
        .nav-icon i {
            font-size: 1rem;
        }
        
        .nav-text {
            font-size: 0.85rem;
        }
        
        .nav-badge {
            font-size: 0.7rem;
            padding: 2px 6px;
        }
        
        .sidebar-stats {
            padding: 15px 10px;
        }
        
        .stat-item {
            padding: 10px;
        }
        
        .stat-icon {
            font-size: 1.1rem;
        }
        
        .stat-value {
            font-size: 0.9rem;
        }
        
        .stat-label {
            font-size: 0.7rem;
        }
    }
    
    /* Dashboard Stats Cards */
    .dashboard-card {
        margin-bottom: 15px;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    .dashboard-card .card-body {
        padding: 20px;
    }
    
    .dashboard-card h6 {
        font-size: 0.8rem !important;
        margin-bottom: 8px;
    }
    
    .dashboard-card h3 {
        font-size: 1.8rem !important;
        margin-bottom: 0;
    }
    
    .stat-icon {
        font-size: 2rem !important;
        opacity: 0.8;
    }
    
    /* Subscription Card */
    .subscription-card {
        margin-bottom: 20px;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .subscription-card .card-body {
        padding: 20px;
    }
    
    .subscription-card h5 {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }
    
    .subscription-card p {
        font-size: 0.9rem !important;
        margin-bottom: 8px;
    }
    
    .subscription-card h3 {
        font-size: 1.5rem !important;
        margin-bottom: 5px;
    }
    
    .subscription-card small {
        font-size: 0.8rem !important;
    }
    
    /* Usage Stats */
    .usage-card {
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .usage-card .small {
        font-size: 0.75rem !important;
    }
    
    .usage-card .fw-semibold {
        font-size: 0.8rem !important;
    }
    
    /* Plan Cards */
    .plan-card {
        margin-bottom: 20px;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .plan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    .plan-card .card-body {
        padding: 20px;
    }
    
    .plan-card .badge {
        font-size: 0.7rem !important;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .plan-card h5 {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }
    
    .plan-card h3 {
        font-size: 1.8rem !important;
        margin-bottom: 5px;
    }
    
    .plan-card p {
        font-size: 0.9rem !important;
        margin-bottom: 15px;
    }
    
    .plan-card ul {
        margin-bottom: 20px;
        padding-left: 20px;
    }
    
    .plan-card li {
        font-size: 0.85rem !important;
        margin-bottom: 8px;
    }
    
    .plan-card .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
        font-weight: 600;
    }
    
    /* Recent Bookings Table */
    .dashboard-table {
        font-size: 0.85rem;
    }
    
    .dashboard-table th {
        font-size: 0.8rem !important;
        padding: 12px 8px;
        font-weight: 600;
    }
    
    .dashboard-table td {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    .dashboard-table .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    /* Action Buttons */
    .action-buttons {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .action-buttons .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    /* Alert Messages */
    .alert {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 12px;
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices - Dashboard */
@media (max-width: 480px) {
    /* Sidebar */
    .modern-sidebar {
        margin-bottom: 15px;
    }
    
    .shop-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .shop-name {
        font-size: 0.9rem !important;
    }
    
    .nav-item {
        padding: 10px 15px;
        margin: 3px 10px;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
    
    /* Dashboard Cards */
    .dashboard-card .card-body {
        padding: 15px;
    }
    
    .dashboard-card h3 {
        font-size: 1.5rem !important;
    }
    
    .stat-icon {
        font-size: 1.5rem !important;
    }
    
    /* Plan Cards */
    .plan-card .card-body {
        padding: 15px;
    }
    
    .plan-card h5 {
        font-size: 1rem !important;
    }
    
    .plan-card h3 {
        font-size: 1.5rem !important;
    }
    
    .plan-card p {
        font-size: 0.85rem !important;
    }
    
    .plan-card li {
        font-size: 0.8rem !important;
    }
    
    /* Table */
    .dashboard-table {
        font-size: 0.8rem;
    }
    
    .dashboard-table th {
        padding: 10px 6px;
        font-size: 0.75rem !important;
    }
    
    .dashboard-table td {
        padding: 10px 6px;
    }
    
    .dashboard-table .badge {
        font-size: 0.65rem !important;
        padding: 3px 6px;
    }
    
    /* Action Buttons */
    .action-buttons .btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* Landscape Orientation - Dashboard */
@media (max-width: 768px) and (orientation: landscape) {
    .modern-sidebar {
        height: 100vh;
        overflow-y: auto;
    }
    
    .dashboard-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .dashboard-card .card-body {
        padding: 15px;
    }
    
    .plan-card .card-body {
        padding: 15px;
    }
}

/* Dashboard - Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Sidebar Touch Effects */
    .modern-sidebar {
        transition: left 0.3s ease;
    }
    
    .nav-item {
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.1);
        transition: left 0.3s ease;
    }
    
    .nav-item:hover::before {
        left: 100%;
    }
    
    .nav-item:active {
        transform: scale(0.98);
    }
    
    /* Dashboard Cards Touch Effects */
    .dashboard-card {
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.1);
        transition: left 0.5s ease;
    }
    
    .dashboard-card:hover::before {
        left: 100%;
    }
    
    .dashboard-card:active {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }
    
    /* Plan Cards Touch Effects */
    .plan-card {
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .plan-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }
    
    .plan-card:active {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    /* Mobile Menu Toggle Touch Effects */
    .mobile-menu-toggle {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .mobile-menu-toggle:hover::before {
        width: 100px;
        height: 100px;
    }
    
    /* Remove tap highlight */
    .nav-item,
    .dashboard-card,
    .plan-card,
    .mobile-menu-toggle,
    .action-buttons .btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for content */
    .dashboard-header h2,
    .dashboard-header p,
    .subscription-card h5,
    .subscription-card p,
    .usage-card .small,
    .plan-card h5,
    .plan-card p,
    .plan-card li,
    .dashboard-table td {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Dashboard - Mobile Loading States */
@media (max-width: 768px) {
    .dashboard-card.loading,
    .plan-card.loading {
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-card.loading::before,
    .plan-card.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: dashboard-loading-shimmer 1.5s infinite;
    }
    
    @keyframes dashboard-loading-shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .mobile-menu-toggle.loading {
        color: transparent;
    }
    
    .mobile-menu-toggle.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: dashboard-spin 1s linear infinite;
    }
    
    @keyframes dashboard-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* Sidebar Toggle Button */
#sidebarToggle {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#sidebarToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.05);
}

#sidebarToggle:active {
    transform: scale(0.95);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Time Slot Selection */
.time-slot {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 5px;
}

.time-slot:hover {
    border-color: var(--accent-color);
    background-color: #e3f2fd;
}

.time-slot.selected {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}
