/* Minimal styles for Dantų Klinikos - Closer to default browser styling */
/* Updated: Fixed promotional offers icon/text sizing - Force button new line - Cache bust: <?php echo time(); ?> */

/* Basic color scheme - more subtle */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

/* Navigation - minimal styling */
.navbar-brand {
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Logo styling - responsive */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
}

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

/* Dashboard header - ensure white text on blue background */
.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link {
    color: white !important;
}

.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand {
    color: white !important;
}

.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link i {
    color: white !important;
}

/* Fallback rules for navbar-dark */
.navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .navbar-brand {
    color: white !important;
}

.navbar-dark .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .navbar-nav .nav-link i {
    color: white !important;
}

/* Most specific rules for dashboard header */
nav.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link {
    color: white !important;
}

nav.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

nav.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand {
    color: white !important;
}

nav.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

nav.navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link i {
    color: white !important;
}

/* Target specific dashboard header elements */
.navbar-dark.bg-primary .navbar-brand.fw-bold {
    color: white !important;
}

.navbar-dark.bg-primary .navbar-brand.fw-bold:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark.bg-primary .navbar-brand.fw-bold i {
    color: white !important;
}

/* Force white text for all elements in dark navbar with primary background */
.navbar-dark.bg-primary * {
    color: white !important;
}

.navbar-dark.bg-primary .nav-link.active {
    color: white !important;
    font-weight: 600;
}

/* ULTRA SPECIFIC OVERRIDE - should work no matter what */
html body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link,
html body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand,
html body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link i,
html body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand i {
    color: white !important;
}

/* Even more specific for dashboard pages */
body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link {
    color: white !important;
}

body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand {
    color: white !important;
}

body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-nav .nav-link i {
    color: white !important;
}

body .navbar.navbar-expand-lg.navbar-dark.bg-primary .navbar-brand i {
    color: white !important;
}

/* Hero Section - improved styling */
.hero-section {
    background: #142d41;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-section h1 {
    color: #ffffff;
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.hero-section .lead {
    color: #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
}

/* Cards - minimal styling */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Buttons - simpler styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

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

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

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

/* Hero section search button - custom color */
.hero-section .btn-primary {
    background-color: #4eb792;
    border-color: #4eb792;
}

.hero-section .btn-primary:hover {
    background-color: #3da372;
    border-color: #3da372;
}

/* Rating Stars - keep simple */
.rating {
    color: #38B79D;
}

.rating .fas,
.rating .far {
    font-size: 0.9rem;
    margin-right: 1px;
    color: #38B79D;
}

/* Clinic Cards - minimal styling (legacy - kept for backward compatibility) */
.clinic-card {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: box-shadow 0.2s ease;
    display: none; /* Hidden by default, mobile cards take precedence */
}

.clinic-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.clinic-card .card-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

/* Show mobile cards by default, hide on larger screens if needed */
.mobile-clinic-card {
    display: block;
}

/* Premium Badge - simpler */
.premium-badge {
    background: #ffc107;
    color: #333;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics Cards - minimal */
.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms - minimal focus styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Map - basic styling */
#map {
    height: 400px;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Utility Classes - minimal */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

/* Remove heavy animations and effects */
.card:hover {
    transform: none;
}

.btn:hover {
    transform: none;
}

/* Responsive Design - improved for hero section and logo */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .navbar-logo {
        height: 38px;
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 36px;
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        font-weight: 500;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-logo {
        height: 48px;
        max-width: 200px;
    }
    
    /* Search form mobile alignment - match desktop left alignment */
    .search-card {
        text-align: left !important;
    }
    
    .search-card .form-label {
        text-align: left !important;
    }
    
    .search-card .d-flex.justify-content-between {
        text-align: left !important;
    }
    
    .search-card .d-flex.flex-wrap {
        justify-content: flex-start !important;
    }
    
    .search-card .input-group {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
        font-weight: 500;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .navbar-logo {
        height: 44px;
        max-width: 180px;
    }
    
    /* Ensure search form elements are left-aligned on small mobile - match desktop */
    .search-card {
        text-align: left !important;
    }
    
    .search-card .form-label {
        text-align: left !important;
    }
    
    .search-card .d-flex.justify-content-between {
        text-align: left !important;
    }
    
    .search-card .d-flex.flex-wrap {
        justify-content: flex-start !important;
    }
    
    .search-card .input-group {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Social Media Icons - minimal */
.social-links a {
    color: var(--text-color);
    transition: color 0.2s ease;
    font-size: 1.1rem;
    padding: 0.25rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Remove complex animations */
.fade-in,
.slide-in-left,
.slide-in-right {
    animation: none;
}

/* Custom Dropdown - Location Selector */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: white;
    color: #495057;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.1);
}

.custom-dropdown-toggle:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.custom-dropdown-toggle.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.custom-dropdown-toggle i {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.custom-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 0.25rem;
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-menu .city-search-sticky {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-bottom: 1px solid #eef1f4;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    color: #495057;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item.current-location {
    background-color: #e3f2fd;
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown-item.current-location:hover {
    background-color: #bbdefb;
}

.dropdown-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
}

/* Mobile responsiveness for custom dropdown */
@media (max-width: 576px) {
    .custom-dropdown-toggle {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .custom-dropdown-menu {
        max-height: 250px;
    }
}

/* Mobile responsiveness for location button */
@media (max-width: 576px) {
    #currentLocationBtn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Mobile Clinic Card Styles - exactly matching the image design */
.mobile-clinic-card {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
    border: 1px solid #f0f0f0 !important;
    transition: box-shadow 0.2s ease !important;
    width: 100% !important;
    display: block !important;
}

.premium-badge-mobile {
    display: none !important;
}

.clinic-content {
    padding: 20px !important;
}

/* Free cards get more top padding */
.mobile-clinic-card:not(.has-premium) .clinic-content {
    padding-top: 32px !important;
}

.mobile-clinic-card:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Premium cards always have elevated appearance */
.mobile-clinic-card.has-premium {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

.clinic-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.clinic-icon {
    width: 40px !important;
    height: 40px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.clinic-icon i {
    color: #6c757d !important;
    font-size: 18px !important;
}

.clinic-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.clinic-main-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.clinic-name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
}

.clinic-rating {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.clinic-rating .stars {
    display: flex !important;
    gap: 2px !important;
}

.clinic-rating .stars i {
    color: #38B79D !important;
    font-size: 14px !important;
}

/* Ensure all star icons use the new color */
.rating,
.rating .fas,
.rating .far,
.stars i,
.clinic-rating i,
i.fa-star,
i.fa-star-half-alt {
    color: #38B79D !important;
}

.rating-number {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.social-icons {
    display: flex !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

.social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: #666 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.social-icons a:hover {
    color: #333 !important;
}

.clinic-location {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    color: #666 !important;
    font-size: 14px !important;
}

.clinic-location i {
    color: #38B79D !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.clinic-distance {
    color: #38B79D !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.clinic-distance i {
    margin-right: 4px !important;
    font-size: 12px !important;
}

.clinic-description {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
}

.clinic-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.btn-view {
    background: #38B79D !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.2s ease !important;
}

.btn-view:hover {
    background: #2D9875 !important;
    color: white !important;
    text-decoration: none !important;
}

 .btn-call,
 .phone-button {
     background: #2c3e50 !important;
     color: white !important;
     border: none;
     padding: 10px 16px;
     border-radius: 6px;
     font-size: 14px;
     font-weight: 500;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     cursor: pointer;
 }

 .btn-call:hover,
 .phone-button:hover,
 button.btn-call:hover,
 button.phone-button:hover {
     background: #2c3e50 !important;
     background-color: #2c3e50 !important;
     color: white !important;
 }

.btn-contact {
    background: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
}

.btn-contact:hover {
    background: #dee2e6 !important;
    color: #495057 !important;
    border-color: #ced4da !important;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .clinic-actions {
        flex-wrap: wrap;
    }
    
    .btn-view,
    .btn-call {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .clinic-name {
        font-size: 15px;
    }
    
    .clinic-content {
        padding: 24px;
    }
    
    .mobile-clinic-card:not(.has-premium) .clinic-content {
        padding-top: 36px !important;
    }
}

/* Print Styles - keep basic */
@media print {
    .navbar,
    .btn,
    .card-footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Premium Description Section Styling - Simplified */
.premium-description-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background-color: #f8f9fa;
}

.premium-description-section .premium-description-text {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.premium-description-section .premium-description-edit textarea {
    border: 2px solid #007bff;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
}

.premium-description-section .premium-description-edit textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Disabled textarea styling */
textarea:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Character count styling */
#char-count-* {
    font-weight: 500;
}

/* Additional responsive adjustments for premium description */
@media (max-width: 768px) {
    .premium-description-section {
        padding: 8px;
    }
}

/* Promotional Offers Section Styling */
.promotional-offers-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background-color: #f8f9fa;
}

.promotional-offers-section .promotional-offers-text {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.promotional-offers-section .promotional-offers-text .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.promotional-offers-section .promotional-offers-text .btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.promotional-offers-section .promotional-offers-edit textarea {
    border: 2px solid #28a745;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
}

.promotional-offers-section .promotional-offers-edit textarea:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.promo-offer-item {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.promo-offer-item i {
    font-size: 0.9em;
}

/* Offer actions styling */
.offer-actions {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.offer-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

.offer-actions .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.offer-actions .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.offer-actions .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.offer-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Promotional offers form controls */
.promotional-offers-section .form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.promotional-offers-section input[type="color"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px;
}

.promotional-offers-section input[type="date"] {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Offer item styling */
.offer-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
}

/* User-friendly form layout */
.offer-form-row {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: none !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
}

/* Clean promotional offers styling - FINAL VERSION */
.custom-inline-input {
    display: flex !important;
    width: 100% !important;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
    min-width: 0 !important;
    max-width: none !important;
}

.icon-select-small {
    width: 40px !important;
    flex: 0 0 40px !important;
    padding: 0.375rem 0.25rem !important;
    border: none;
    border-right: 1px solid #ced4da;
    background-color: #f8f9fa;
    font-size: 0.8rem !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

.text-input-large {
    flex: 1 1 auto !important;
    padding: 0.5rem 0.75rem !important;
    border: none;
    font-size: 0.95rem !important;
    background-color: white;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.color-picker-small {
    width: 35px !important;
    flex: 0 0 35px !important;
    height: 38px;
    border: none;
    border-left: 1px solid #ced4da;
    background-color: #f8f9fa;
    cursor: pointer;
    min-width: 35px !important;
    max-width: 35px !important;
}

.custom-inline-input:focus-within {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

@media (max-width: 768px) {
    .icon-select-small {
        width: 35px !important;
        flex: 0 0 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
    }
    
    .color-picker-small {
        width: 32px !important;
        flex: 0 0 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }
}

.icon-select-small:focus {
    background-color: #e9ecef;
}

.text-input-large:focus {
    background-color: #fff;
}

.color-picker-small:focus {
    background-color: #e9ecef;
}

.custom-inline-input:focus-within {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group .icon-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group .text-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.offer-item select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-width: 120px;
}

.offer-item select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.offer-item .color-picker {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px;
    height: 38px;
    width: 60px;
    cursor: pointer;
}

.offer-item input[type="date"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    height: 38px;
    min-width: 140px;
}

.offer-item input[type="date"]:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.remove-btn {
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* Character count styling for promotional offers */
#promo-char-count-* {
    font-weight: 500;
}

/* Force promotional offers sizing - Override any conflicting styles */
.promotional-offers-section .custom-inline-input {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
}

.promotional-offers-section .custom-inline-input .icon-select-small {
    width: 40px !important;
    flex: 0 0 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0.375rem 0.25rem !important;
    font-size: 0.8rem !important;
}

.promotional-offers-section .custom-inline-input .text-input-large {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
}

.promotional-offers-section .custom-inline-input .color-picker-small {
    width: 35px !important;
    flex: 0 0 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
}

/* Additional specificity for dashboard */
.dashboard .promotional-offers-section .custom-inline-input,
body .promotional-offers-section .custom-inline-input {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
}

.dashboard .promotional-offers-section .custom-inline-input .icon-select-small,
body .promotional-offers-section .custom-inline-input .icon-select-small {
    width: 40px !important;
    flex: 0 0 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

.dashboard .promotional-offers-section .custom-inline-input .text-input-large,
body .promotional-offers-section .custom-inline-input .text-input-large {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Specific promotional offers form styling */
.promotional-offers-section .form-group {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
}

.promotional-offers-section .offer-form-row {
    width: 100% !important;
    max-width: none !important;
}

.promotional-offers-section .offer-form-row .form-group:first-child {
    flex: 1 1 auto !important;
    min-width: 200px !important;
}

/* Prevent mobile zoom on input focus */
@media screen and (max-width: 768px) {
    /* Ensure input fields have minimum font size to prevent zoom */
    .form-control,
    .form-control-sm,
    textarea,
    input[type="text"],
    input[type="date"],
    select {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Specific rules for dashboard inputs */
    .premium-description-section textarea,
    .promotional-offers-section textarea,
    .promotional-offers-section input[type="text"],
    .promotional-offers-section select,
    .promotional-offers-section input[type="date"] {
        font-size: 16px !important;
    }
    
    /* Prevent zoom on focus */
    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* Additional mobile zoom prevention */
@media screen and (max-width: 480px) {
    .form-control,
    .form-control-sm,
    textarea,
    input[type="text"],
    input[type="date"],
    select {
        font-size: 16px !important;
    }
    
    .premium-description-section textarea,
    .promotional-offers-section textarea,
    .promotional-offers-section input[type="text"],
    .promotional-offers-section select,
    .promotional-offers-section input[type="date"] {
        font-size: 16px !important;
    }
}

/* Mobile zoom prevention for promotional offers */
@media screen and (max-width: 768px) {
    .promotional-offers-section .text-input-large {
        font-size: 16px !important;
    }
    
    .promotional-offers-section .icon-select-small {
        font-size: 16px !important;
    }
    
    .promotional-offers-section .custom-inline-input input,
    .promotional-offers-section .custom-inline-input select {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 480px) {
    .promotional-offers-section .text-input-large {
        font-size: 16px !important;
    }
    
    .promotional-offers-section .icon-select-small {
        font-size: 16px !important;
    }
    
    .promotional-offers-section .custom-inline-input input,
    .promotional-offers-section .custom-inline-input select {
        font-size: 16px !important;
    }
}

/* Promotional offers add button styling - Force new line */
.promotional-offers-section .mt-3 {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.promotional-offers-section .mt-3 .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    font-weight: 500;
    display: inline-block !important;
    margin: 0 auto !important;
}

.promotional-offers-section .mt-3 .btn-outline-success:hover {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Ensure the button container is completely separate */
.promotional-offers-section .mt-3 {
    position: relative;
    z-index: 1;
}

/* Ensure promotional offers text container doesn't interfere */
.promotional-offers-section .promotional-offers-text {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
}

.promotional-offers-section .promotional-offers-text .form-group {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

/* Force clear separation between offers and add button */
.promotional-offers-section .promotional-offers-text:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    overflow: hidden;
}

/* Premium features preview styling */
.premium-features-preview {
    background: linear-gradient(135deg, #fff8e1 0%, #f3e5ab 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.premium-features-preview .feature-item {
    padding: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.premium-features-preview .feature-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.premium-features-preview .feature-item i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.premium-features-preview .feature-item small {
    font-size: 11px;
    font-weight: 500;
    color: #495057;
}

/* Additional responsive adjustments for promotional offers */
@media (max-width: 768px) {
    .promotional-offers-section {
        padding: 8px;
    }
    
    .promotional-offers-section .row {
        margin: 0;
    }
    
    .promotional-offers-section .col-md-4,
    .promotional-offers-section .col-md-2,
    .promotional-offers-section .col-md-3,
    .promotional-offers-section .col-md-1 {
        padding: 0;
        margin-bottom: 8px;
    }
    
    .promotional-offers-section .d-flex.gap-1 {
        gap: 4px !important;
    }
    
    .offer-form-row {
        flex-direction: column;
        gap: 8px;
    }
    
            .form-group {
                width: 100%;
            }
            
            .icon-select-small {
                width: 35px !important;
                min-width: 35px !important;
                max-width: 35px !important;
                flex: 0 0 35px !important;
                padding: 0.375rem 0.25rem !important;
            }
            
            .color-picker-small {
                width: 32px !important;
                min-width: 32px !important;
                max-width: 32px !important;
                flex: 0 0 32px !important;
            }
    
    .offer-item select {
        min-width: 100%;
    }
    
    .offer-item input[type="date"] {
        min-width: 100%;
    }
    
    .remove-btn {
        align-self: flex-start;
        margin-top: 0;
    }
}

/* Promotional Offers Display on Search Page */
.promotional-offers-display {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    padding: 0;
    display: block !important;
}

.promo-offer-display {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 8px;
    margin-bottom: 4px;
    white-space: normal;
    vertical-align: top;
    max-width: 100%;
    word-wrap: break-word;
}

.promo-offer-display i {
    font-size: 11px;
    opacity: 0.8;
    display: inline;
    margin-right: 4px;
}

.promo-offer-display:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}
