/* Base Styles */
body {
    background: linear-gradient(360deg, #e5e7e7 0%, #88b6d2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Layout Components */
.main-container {
    padding: 20px 0;
    overflow: visible;
}

.header-section {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-top: 60px;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.header-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Search Components */
.controls-section {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: right;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 450px;
    min-width: 300px;
    max-width: 100%;
}

.search-input-group .input-group-text {
    background: white;
    border: none;
    padding: 12px 15px;
    border-radius: 0;
}

.search-input-group .search-box {
    background: white;
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    outline: none;
}

.search-input-group .search-box:focus {
    box-shadow: none;
    outline: none;
}

.search-input-group:focus-within {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.clear-search-btn {
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #6c757d;
    cursor: pointer;
}

.clear-search-btn:hover {
    color: #dc3545;
}

.search-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn {
    background: #3d8cd3;
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 0 25px 25px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Visitor Counter & Login */
.visitor-counter-top {
    background: #3d8cd3;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 15px;
    display: inline-block;
}

.visitor-stats-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.85rem;
}

.visitor-stats-compact .stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.visitor-stats-compact .stat-label {
    opacity: 0.9;
}

.login-btn-styled {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-btn-styled:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.login-btn-styled i {
    font-size: 0.9rem;
}

/* Category Components */
.category-section {
    margin-bottom: 20px;
}

.category-header {
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-header-bg-em {
    background: #6dabe3;
}

.category-header-bg-br {
    background: #5179a3d6;
}

.category-header-bg-misc {
    background: #83d3e1;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    color: white;
}

.category-header:focus {
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.3);
    outline: none;
    color: white;
}

.category-count {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: 15px;
}

.collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* Product Components */
.products-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 20px;
    margin-top: -5px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.product-icon {
    font-size: 3rem;
    color: #4e73df;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.firms-count {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-firms-btn {
    background: transparent;
    border: 2px solid #4e73df;
    color: #4e73df;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-firms-btn:hover {
    background: #4e73df;
    color: white;
    transform: scale(1.05);
}

.admin-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.admin-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.floating-admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #e74a3b, #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.floating-admin-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: white;
}

/* Slider Components */
.slider-section {
    margin-bottom: 20px;
}

.slider-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.slider-wrapper {
    position: relative;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-height: 200px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    width: 100%;
}

.slide-image {
    flex: 0 0 200px;
    text-align: center;
}

.slide-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, #4e73df, #36b9cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.slide-text {
    flex: 1;
    color: #2c3e50;
}

.slide-text h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.slide-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 0;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-nav-btn:hover {
    background: rgba(255,255,255,0.9);
    color: #4e73df;
    border-color: #4e73df;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.slider-nav-btn.prev {
    left: 15px;
}

.slider-nav-btn.next {
    right: 15px;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 35px;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    border-color: #4e73df;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.slide-img {
    width: 100%;
    max-width: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.slide-img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header & Typography */
    .header-section h1 {
        font-size: 2rem;
    }

    /* Layout Components */
    .controls-section {
        padding: 15px;
    }

    .stats-item {
        margin: 0 15px;
    }

    .category-header {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .product-card {
        padding: 20px;
    }

    /* Slider Mobile Styles */
    .slide {
        padding: 15px 10px;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .slide-image {
        flex: none;
    }

    .slide-img {
        height: 120px;
        max-width: 150px;
    }

    .slide-icon {
        font-size: 4rem;
    }

    .slide-text h4 {
        font-size: 1.8rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-nav-btn.prev {
        left: 10px;
    }

    .slider-nav-btn.next {
        right: 10px;
    }

    .slider-controls {
        gap: 10px;
        padding: 8px 15px;
    }

    /* Contact Card Mobile */
    .contact-card {
        right: 10px;
        max-width: 250px;
    }

    .contact-card.expanded {
        width: 250px;
    }
}

/* Summary Stats Table Styling */
.summary-stat .table {
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.summary-stat .table th,
.summary-stat .table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.summary-stat .table th:first-child,
.summary-stat .table td:first-child {
    border-left: none;
}

.summary-stat .table th:last-child,
.summary-stat .table td:last-child {
    border-right: none;
}

.summary-stat .table thead th {
    border-top: none;
    background: rgba(255, 255, 255, 0.1);
    color: black;
    font-weight: 600;
}

.summary-stat .table tbody tr:last-child td {
    border-bottom: none;
}

/* Corner radius fixes */
.summary-stat .table thead th:first-child {
    border-top-left-radius: 6px;
}

.summary-stat .table thead th:last-child {
    border-top-right-radius: 6px;
}

.summary-stat .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.summary-stat .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

/* Hover effects for table cells with links - exclude first column */
.summary-stat .table td:not(:first-child) a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.25rem 0.3rem;
    margin: -0.25rem -0.3rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}

.summary-stat .table td:not(:first-child):hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.summary-stat .table td:not(:first-child):hover a {
    color: #ffeb3b;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Left column (row headers) - no hover effects */
.summary-stat .table td:first-child {
    cursor: default;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.highlight {
    background-color: #ffeb3b;
    color: #333;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* Contact Card Component */
.contact-card {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: #3d8cd3;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 300px;
}

.contact-card.collapsed {
    width: 60px;
    height: 60px;
}

.contact-card.expanded {
    width: 280px;
    min-height: 320px;
}

.contact-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 15px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.contact-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.contact-content {
    padding: 20px;
    color: white;
    display: none;
}

.contact-card.expanded .contact-content {
    display: block;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-3px);
}

.contact-item i {
    font-size: 1.1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ffeb3b;
    text-decoration: underline;
}

/* Summary Cards & Stats Components */
.stats-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.stats-link:hover {
    transform: translateY(-2px);
    color: #0d6efd;
}
.card-circles-container {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.card-icon-circle {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    transition: all 0.3s ease;
}

/* Make images inside circles responsive */
.card-icon-circle img {
    width: 60% !important;
    height: 60% !important;
    max-width: 30px;
    max-height: 30px;
    object-fit: fill;
}

/* Circle colors for summary cards */
.card-circles-container .card-icon-circle:nth-child(1) {
    background-color: #58a7fb;
}

.card-circles-container .card-icon-circle:nth-child(2) {
    background-color: #76ff96;
}

.card-circles-container .card-icon-circle:nth-child(3) {
    background-color: #f9ce4e;
}

.card-circles-container .card-icon-circle:nth-child(4) {
    background-color: #ff5e6e;
}

.card-circles-container .card-icon-circle:nth-child(5) {
    background-color: #9459ff;
}

.summary-card:hover .card-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Ensure Bootstrap row doesn't clip circles */
.row {
    overflow: visible !important;
}

/* Ensure container doesn't clip content */
.container {
    overflow: visible !important;
}
.card-body-content {
    padding-top: 40px; /* Adjust padding to account for the overlapping icon */
    text-align: center;
    color: white;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.card-body-bgcolor-em {
    background: #6dabe3;
}

.card-body-bgcolor-br {
    background: #5179a3d6;
}

.card-body-bgcolor-misc {
    background: #83d3e1;
}

.color-area {
    height: 40px; /* Height of the colored areas */
    width: 100%; /* Full width bar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem !important;
    padding: 0 15px;
}

/* Clickable area styles */
.clickable-area {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-area:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.clickable-area:active {
    transform: scale(0.98);
}

/* Summary card styles */
.summary-card {
    transition: all 0.3s ease;
    margin-top: 35px; /* Add top margin for circle space */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: visible; /* Allow circles to show outside card */
    max-width: 360px;
}

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


/* Hover effects for different colored areas */
.bg-success.clickable-area:hover {
    background: #1e7e34 !important;
}

.bg-warning.clickable-area:hover {
    background: #d39e00 !important;
}

.bg-danger.clickable-area:hover {
    background: #bd2130 !important;
}

/* Mobile responsiveness for summary cards */
@media (max-width: 768px) {
    .summary-card {
        margin-bottom: 25px !important;
        margin-top: 30px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        max-width: calc(100% - 30px) !important;
        overflow: visible !important;
    }

    .card-body-content {
        padding: 25px 15px 15px 15px;
    }

    .card-title {
        font-size: 1.8rem !important;
    }


    .card-circles-container {
        top: -25px;
        gap: 8px;
    }
    
    .card-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .card-icon-circle img {
        max-width: 24px !important;
        max-height: 24px !important;
    }

    /* Search container mobile improvements */
    .search-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .search-input-group {
        width: 100%;
        min-width: auto;
        border-radius: 25px;
    }

    .search-input-group .search-box {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .search-btn {
        width: 100%;
        border-radius: 25px;
        margin-top: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .summary-card {
        margin-bottom: 30px !important;
        margin-top: 25px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        max-width: calc(100% - 20px) !important;
        overflow: visible !important;
    }

    .card-body-content {
        padding: 20px 10px 10px 10px;
    }

    .card-title {
        font-size: 1.5rem !important;
    }


    .card-circles-container {
        top: -20px;
        gap: 6px;
    }
    
    .card-icon-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        border-width: 2px;
        border: 2px solid white;
    }
    
    .card-icon-circle img {
        max-width: 20px !important;
        max-height: 20px !important;
    }

    /* Ensure container has enough padding for small mobile circles */
    .container {
        padding-top: 30px !important;
    }

    .header-section {
        padding-top: 80px;
    }

    .header-section h1 {
        font-size: 1.5rem;
    }

    .main-container {
        padding: 10px 0;
    }
}

/* Styles moved from inline styles in index.php */

/* Header positioning styles */
.visitor-counter-position {
    position: absolute;
    top: 10px;
    left: 0;
}

.login-position {
    position: absolute;
    top: 10px;
    right: 0;
}

/* Header background and text styles */
.header-background {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.header-title {
    color: black;
}

.header-subtitle {
    color: black;
    font-weight: bolder;
}

/* Container and layout styles */
.main-stats-container {
    margin-bottom: 20px;
    margin-top: 0 !important;
    overflow: visible;
}

.stats-row {
    overflow: visible;
}

/* Summary card text styles */
.summary-card-text {
    color: black;
    font-size: 1.2rem;
}

.summary-card-title {
    margin-bottom: 0 !important;
}

/* Color area border radius */
.color-area-bottom {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Product icon styles */
.product-icon-custom {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Search indicator and no results styles */
.search-indicator {
    display: none;
}

.no-results-icon {
    opacity: 0.5;
}

.unified-search-icon {
    opacity: 0.3;
}

/* Cursor styles */
.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-move {
    cursor: move;
}

/* Firm card enhanced styles */
.firm-card-enhanced {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    overflow: hidden;
}

.firm-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: #4e73df !important;
}

.firm-card-enhanced:hover .card-title {
    color: #4e73df !important;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-item i {
    width: 16px;
    flex-shrink: 0;
}

.firms-container {
    max-height: 60vh;
    overflow-y: auto;
}

.firms-list-container {
    max-height: 60vh;
    overflow-y: auto;
}

.view-options .btn {
    transition: all 0.2s ease;
}

.firm-stats .badge {
    padding: 8px 12px;
}

.firm-card-wrapper[draggable="true"] {
    cursor: move;
}

.firm-card-wrapper[draggable="true"]:hover {
    transform: scale(1.02);
}

.firm-card-wrapper.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Product Brand Badge Styles */
.product-brands-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.product-brand-badge {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    background: linear-gradient(1deg, #217c26, #1ad517) !important;
    color: white !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.product-brand-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Mobile responsiveness for product brand badges */
@media (max-width: 768px) {
    .product-brand-badge {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
        margin: 1px !important;
    }
    
    .product-brands-container {
        gap: 2px;
        margin-top: 2px;
    }
}

.dragging {
    opacity: 0.5;
}

.drag-handle {
    padding: 4px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
}

.drag-handle:hover {
    background: rgba(0,0,0,0.2);
}

.display-order-badge {
    font-size: 0.7rem;
}

#orderInstructions {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

/* Slide image error handling */
.slide-img-hidden {
    display: none;
}

.slide-icon-visible {
    display: block;
}