/* ============================================
   SMART TAILORING SERVICE - MAIN STYLESHEET
   Modern, Clean Design with Purple Theme
   ============================================ */

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    /* Color Palette */
    --primary-color: #58d1f9ff;
    --secondary-color: #4ba282ff;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* === NAVIGATION BAR (Indian Explorer Style) === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo Section */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Auth Button */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.btn-login-register {
    padding: 0.65rem 1.75rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Default: Show full text on desktop */
.login-text-short {
    display: none;
}

.login-text-full {
    display: inline;
}

.btn-login-register:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dashboard Button */
.btn-dashboard {
    padding: 0.65rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.btn-dashboard:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Logout Button */
.btn-logout {
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Welcome Text */
.welcome-text {
    white-space: nowrap;
}

/* Admin Login Button */
.btn-admin-login {
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: 2px solid #10b981;
    color: #10b981;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-admin-login:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-admin-login i {
    font-size: 1.1rem;
}

/* === NOTIFICATION STYLES === */
.notification-container {
    position: relative;
    margin-left: 0.75rem;
}

.btn-notification {
    position: relative;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-notification:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 209, 249, 0.3);
}

.btn-notification i {
    font-size: 1.1rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(88, 209, 249, 0.05), rgba(75, 162, 130, 0.05));
}

.notification-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
}

.mark-all-read:hover {
    background: rgba(88, 209, 249, 0.1);
    color: var(--secondary-color);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(88, 209, 249, 0.05);
}

.notification-item.unread {
    background: rgba(88, 209, 249, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 4px 4px 0;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-title i {
    font-size: 1rem;
    color: var(--primary-color);
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-time i {
    font-size: 0.7rem;
}

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.notification-empty i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.notification-empty p {
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.notification-login-prompt {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.notification-login-prompt i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: wave 1.5s infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

.notification-login-prompt h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.notification-login-prompt p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.notification-login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 209, 249, 0.3);
}

.notification-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 209, 249, 0.4);
}

/* Scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Search Icon */
.nav-search {
    margin-left: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-search:hover {
    color: var(--primary-color);
}

/* Mobile Menu Icon */
.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* === HERO SECTION === */
/* .hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
} */

.hero {
    position: relative;
    min-height: 85vh; /* You can adjust this, 85vh is good */
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white); /* Ensure text is white */

    /* 1. Set the new background image */
    background-image: url('../images/2.png'); /* <-- UPDATE THIS PATH */
    
    /* 2. Style the background for a professional look */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This creates a cool parallax scroll effect */
}

/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558769132-cb1aea3c8565?w=1200') center/cover;
    opacity: 0.15;
    z-index: 1;
} */

/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(71, 228, 112, 0.9) 0%, rgba(77, 123, 167, 0.9) 100%);
    z-index: 2;
} */

.hero::before {
    display: none; /* Disable the old pattern overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* 3. The crucial readability overlay */
    background-color: rgba(0, 0, 0, 0.6); /* Black overlay with 60% opacity */
    
    /* REMOVE the old linear-gradient */
    z-index: 2;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 1.4s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--white);
}

/* === SERVICES SECTION === */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* === TAILORS SECTION === */
.tailors-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.tailors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    min-height: 200px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.25rem;
    color: var(--text-light);
}

/* === FOOTER (Indian Explorer Style) === */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200') center/cover;
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column {
    animation: fadeInUp 0.8s ease;
}

.footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links,
.footer-contact,
.footer-social {
    list-style: none;
}

.footer-links li,
.footer-contact li,
.footer-social li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact span,
.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact i,
.footer-social i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    font-size: 1rem;
}

.footer-bottom .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-icon {
        display: none !important;
    }

    /* Hide admin login button on mobile */
    .btn-admin-login {
        display: none !important;
    }

    /* Hide welcome text on mobile */
    .welcome-text {
        display: none !important;
    }

    /* Show only "Login" text on mobile */
    .login-text-full {
        display: none;
    }

    .login-text-short {
        display: inline;
    }

    /* Hide button text on mobile, show only icons */
    .btn-dashboard .btn-text,
    .btn-logout .btn-text {
        display: none;
    }

    /* Make buttons circular on mobile (icon only) */
    .btn-dashboard,
    .btn-logout {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-left: 0.5rem;
    }

    .btn-dashboard i,
    .btn-logout i {
        margin: 0;
        font-size: 1.1rem;
    }

    /* Reorder navbar for mobile: Logo | Search | Dashboard | Logout */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        max-width: 100%;
    }

    .nav-auth {
        order: 3;
        margin-left: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Notification styles for mobile */
    .notification-container {
        margin-left: 0.5rem;
    }
    
    .btn-notification {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .notification-dropdown {
        width: 90vw;
        right: -20px;
        max-width: 350px;
    }
    
    .notification-badge {
        top: -3px;
        right: -3px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .nav-search {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        font-size: 1.3rem;
    }

    .logo {
        order: 1;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
        background-attachment: scroll; /* Better performance on mobile */
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Search and Filter */
    .search-filter-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
        min-width: auto;
    }
    
    .search-box input {
        font-size: 0.95rem;
        padding: 0.85rem 0.85rem 0.85rem 3rem;
    }
    
    .search-box i {
        left: 1rem;
        font-size: 1rem;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Tailor Cards Grid */
    .tailors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Services grid - 2 columns on mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    /* Hide logo text on mobile to save space */
    .logo-text {
        display: none;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .nav-logo img {
        width: 35px;
        height: 35px;
    }
    
    /* Navbar compact spacing */
    .nav-search {
        font-size: 1.1rem;
        margin-right: 0.25rem;
    }
    
    .btn-dashboard,
    .btn-logout {
        width: 36px;
        height: 36px;
        margin-left: 0.25rem;
    }
    
    .btn-dashboard i,
    .btn-logout i {
        font-size: 1rem;
    }
    
    /* Hero adjustments for very small screens */
    .hero {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .btn {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Section spacing adjustments */
    .services-section {
        padding: 3rem 0;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    /* Services grid - single column on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    /* Search and Filter - Better spacing */
    .search-box input {
        padding: 0.75rem 0.75rem 0.75rem 2.75rem;
        font-size: 0.9rem;
    }
    
    .search-box i {
        left: 0.85rem;
        font-size: 0.95rem;
    }
    
    .filter-btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
        text-align: center;
    }
    
    /* Tailor section padding */
    .tailors-section {
        padding: 3rem 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a,
    .footer-contact span {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}
/* ============================================
   MODAL STYLES (Login & Register)
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.modal-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

/* Tab Navigation */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab:hover {
    color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

/* Input with Icon */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-group .form-input {
    padding-left: 3rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Form Button */
.form-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error/Success Messages */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.form-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.form-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Switch Modal Link */
.modal-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.modal-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.modal-switch a:hover {
    text-decoration: underline;
}


/* ============================================
   ENHANCED TAILOR CARD DESIGN
   
    Modern, Clean, and User-Friendly
   ============================================ */

.tailor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.tailor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Card Header with Image and Verified Badge */
.tailor-card-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.tailor-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.tailor-card-info {
    flex: 1;
}

.tailor-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tailor-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

/* Shop Name Overlay on Card Image */


.shop-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px 10px 10px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}


.verified-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tailor-owner {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* Rating Section */
.tailor-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rating-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.experience-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Card Body */
.tailor-card-body {
    padding: 1.5rem;
    flex: 1;
}

.tailor-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.tailor-detail-item i {
    color: var(--text-light);
    width: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.tailor-detail-item span {
    color: var(--text-dark);
    line-height: 1.5;
}

.price-range-display {
    color: var(--primary-color);
    font-weight: 700;
}

/* Services Section */
.tailor-services-section {
    margin-top: 1rem;
}

.services-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.tailor-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: #e8eaf6;
    color: #5c6bc0;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #c5cae9;
}

/* Card Footer - Action Buttons */
.tailor-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    display: flex;
    gap: 0.75rem;
}

.tailor-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-call {
    background: #10b981;
    color: var(--white);
}

.btn-call:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-location {
    background: #3b82f6;
    color: var(--white);
}

.btn-location:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

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

.btn-order:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tailor-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tailor-card-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tailor-card-footer {
        flex-direction: column;
    }
    
    .tailor-action-btn {
        width: 100%;
    }
}

/* ============================================
   VERIFIED BADGE - NEW ADDITION
   ============================================ */
.verified-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.verified-badge-inline i {
    font-size: 0.8rem;
}


/* Make header clickable with hover effect */
.clickable-header {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
/* ================================================
   HYBRID COMPACT LAYOUT - EXACT AS REQUESTED
   ================================================ */

.tailor-card-compact {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
    padding: 15px;
}

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

/* TOP SECTION: Image + Title/Rating */
.tailor-header-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tailor-image-left {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.tailor-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tailor-avatar-left {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.tailor-title-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.title-verified-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.shop-name-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
}

.verified-badge-small {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.owner-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.rating-exp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-num {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.9rem;
}

.review-count {
    color: #718096;
    font-size: 0.8rem;
}

.exp-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* MIDDLE SECTION: Details */
.tailor-details-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
}

.detail-line i {
    color: #667eea;
    width: 14px;
    font-size: 0.85rem;
}

.services-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.services-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.service-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* BOTTOM SECTION: Action Buttons */
.tailor-actions-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-call-action {
    background: #48bb78;
    color: white;
}

.btn-location-action {
    background: #4299e1;
    color: white;
}

.btn-order-action {
    background: #667eea;
    color: white;
}

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

/* ============================================
   OTP MODAL MOBILE RESPONSIVE STYLES
   ============================================ */

/* OTP Input Styling */
#otpCode {
    font-size: 1.5rem !important;
    letter-spacing: 0.5rem !important;
    text-align: center !important;
    font-weight: bold !important;
    padding: 1rem !important;
}

/* Timer and Message Styling */
#otpTimer {
    font-weight: 700;
    color: #667eea;
}

/* Resend Button */
#resendOtpBtn {
    transition: all 0.3s ease;
}

#resendOtpBtn:hover:not(:disabled) {
    transform: scale(1.05);
}

#resendOtpBtn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
    
    .modal-header p {
        font-size: 0.875rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 30px;
        height: 30px;
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    /* OTP Input Mobile */
    #otpCode {
        font-size: 1.25rem !important;
        letter-spacing: 0.3rem !important;
        padding: 0.875rem !important;
    }
    
    /* Form Inputs Mobile */
    .form-input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Auth Modal Tabs */
    .modal-tabs {
        gap: 0.5rem;
    }
    
    .modal-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Form Groups */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Password Reset Overlay Mobile */
    #resetPasswordOverlay > div {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    #resetPasswordOverlay h2 {
        font-size: 1.5rem;
    }
    
    #resetPasswordOverlay input {
        font-size: 1rem;
    }
    
    #resetPasswordOverlay button {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Small Mobile Devices (max 480px) */
@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1.25rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-header p {
        font-size: 0.8rem;
    }
    
    .modal-body {
        padding: 1.25rem 1rem;
    }
    
    #otpCode {
        font-size: 1.1rem !important;
        letter-spacing: 0.25rem !important;
        padding: 0.75rem !important;
    }
    
    .form-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Adjust spacing for small screens */
    #otpEmail {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    /* Timer text */
    small {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-container {
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Focus States for Better Mobile UX */
.form-input:focus,
#otpCode:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    .form-button,
    .modal-tab,
    #resendOtpBtn,
    .modal-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-input,
    #otpCode {
        min-height: 44px;
    }
}

/* ============================================
   DYNAMIC MEASUREMENT FIELDS STYLES
   ============================================ */

/* Measurement Options Radio Buttons */
.measurement-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.measurement-options label:hover {
    background-color: var(--light-bg);
}

.measurement-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Measurement Message Box */
.measurement-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2d5016;
}

.measurement-message i {
    font-size: 1.1rem;
}

/* Measurement Grid Layout */
.measurement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.measurement-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.measurement-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.measurement-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.measurement-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 209, 249, 0.1);
}

.measurement-input::placeholder {
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Custom Measurement Fields Container */
.custom-measurement-fields {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .measurement-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .measurement-options label {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .measurement-label {
        font-size: 0.875rem;
    }
    
    .measurement-input {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 480px) {
    .measurement-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .measurement-options {
        margin-bottom: 0.75rem !important;
    }
    
    .measurement-options label {
        font-size: 0.85rem;
        padding: 0.35rem;
    }
    
    .measurement-options input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .measurement-message {
        font-size: 0.8rem;
        padding: 0.6rem !important;
    }
    
    .measurement-message i {
        font-size: 1rem;
    }
    
    .measurement-field-group {
        gap: 0.3rem;
    }
    
    .measurement-label {
        font-size: 0.85rem;
    }
    
    .measurement-input {
        padding: 0.6rem;
        font-size: 0.875rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .measurement-input::placeholder {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .measurement-options label {
        min-height: 44px;
        padding: 0.6rem;
    }
    
    .measurement-input {
        min-height: 48px;
    }
}

/* ============================================
   MEASUREMENT VALIDATION STYLES
   ============================================ */

/* Error message for missing default measurement */
.measurement-error {
    animation: shakeError 0.5s ease-in-out;
}

.measurement-error a {
    font-weight: 600;
}

.measurement-error a:hover {
    text-decoration: underline !important;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Disabled radio button style */
input[type="radio"]:disabled + label,
input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

label:has(input[type="radio"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive - Measurement Validation */
@media (max-width: 768px) {
    .measurement-error,
    .measurement-message {
        padding: 0.65rem !important;
        font-size: 0.9rem;
    }

    .measurement-error strong {
        font-size: 0.95rem;
    }

    .measurement-error small,
    .measurement-message small {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .measurement-error,
    .measurement-message {
        padding: 0.6rem !important;
        font-size: 0.85rem;
    }

    .measurement-error strong {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.25rem;
    }

    .measurement-error small,
    .measurement-message small {
        font-size: 0.8rem;
        line-height: 1.5;
        display: block;
        margin-top: 0.25rem;
    }

    .measurement-error br {
        display: none;
    }

    .measurement-error a,
    .measurement-message a {
        word-break: break-word;
    }

    /* Touch-friendly radio buttons on mobile */
    .measurement-options label {
        padding: 0.65rem 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .measurement-options input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 0.5rem;
    }
}
