/* Frontend Styles for Dynamic Tab Content Manager */

/* Main Container */
.dtcm-frontend-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* max-width: 1200px; */
    margin: 0 auto;
    /* background: #000; */
    border-radius: 40px;
    /* overflow: hidden; */
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    /* --current-tab-color: #0073aa; */
    /* --current-tab-color-dark: #005a87; */
}

/* Tab Navigation Header */
.dtcm-tab-navigation {
    /* background: #000; */
    padding: 20px;
}

.dtcm-tab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.dtcm-tab-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dtcm-tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, var(--tab-color, #0073aa), var(--tab-color-dark, #005a87)); */
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.dtcm-tab-item:hover::before {
    opacity: 0.15;
}

.dtcm-tab-item.dtcm-active::before {
    opacity: 0.2; 
    background: var(--current-tab-color, var(--tab-color, #0073aa)) !important;
}

.dtcm-tab-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.dtcm-tab-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: var(--tab-color, #0073aa) !important;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.dtcm-tab-thumbnail {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.dtcm-tab-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tab Icons with Dynamic Colors - Priority over color schemes */
.dtcm-tab-item[data-tab-color="#ff6b35"] .dtcm-tab-icon {
    background: #ff6b35 !important;
}

.dtcm-tab-item[data-tab-color="#8e44ad"] .dtcm-tab-icon {
    background: #8e44ad !important;
}

.dtcm-tab-item[data-tab-color="#27ae60"] .dtcm-tab-icon {
    background: #27ae60 !important;
}

.dtcm-tab-item[data-tab-color="#e74c3c"] .dtcm-tab-icon {
    background: #e74c3c !important;
}

.dtcm-tab-item[data-tab-color="#f39c12"] .dtcm-tab-icon {
    background: #f39c12 !important;
}

.dtcm-tab-item[data-tab-color="#3498db"] .dtcm-tab-icon {
    background: #3498db !important;
}

.dtcm-tab-item[data-tab-color="#9b59b6"] .dtcm-tab-icon {
    background: #9b59b6 !important;
}

.dtcm-tab-item[data-tab-color="#1abc9c"] .dtcm-tab-icon {
    background: #1abc9c !important;
}

/* Remove old fixed color schemes - they should not override dynamic colors */
.dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: var(--tab-color, #0073aa) !important;
}

.dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: var(--tab-color, #0073aa) !important;
}

.dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: var(--tab-color, #0073aa) !important;
}

.dtcm-tab-content-preview {
    width: 100%;
    text-align: left;
}

.dtcm-tab-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.dtcm-tab-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Main Content Area */
.dtcm-main-content {
    border-radius: 40px;
    position: relative;
    padding-bottom: 80px; /* Space for pagination */
    /* background: linear-gradient(135deg, #e6e6fa, #f0f8ff);
    padding: 40px;
    min-height: 400px; */
}

.dtcm-content-panel {
    display: none;
    position: relative;
}

.dtcm-content-panel.dtcm-active {
    display: block;
}

/* Content Slider */
.dtcm-content-slider {
    /* position: relative; */
}

.dtcm-slide {
    display: none;
}

.dtcm-slide.dtcm-active {
    display: block;
}

.dtcm-slide-content {
    /* background: #fff; */
    border-radius: 40px;
    padding: 40px;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
    /* position: relative; */
    z-index: 1;
}

/* Content Item Layout */
.dtcm-content-item {
    background: var(--current-tab-color, var(--tab-color, #0073aa)) !important;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    color: #000 !important;
    transition: background 0.3s ease;
}

.dtcm-item-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Text Content Column */
.dtcm-item-text {
    padding-right: 20px;
}

.dtcm-item-title {
    font-size: 28px;
    font-weight: 700;
    color: #000 !important;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.dtcm-item-description {
    font-size: 16px;
    color: #000 !important;
    line-height: 1.6;
    margin-bottom: 30px;
}

.dtcm-cta-button {
    display: inline-block;
    color: #000 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.dtcm-cta-button::after {
    content: "→";
    opacity: .5;
    margin-left: 0.14em;
    font-size: 1.2em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.dtcm-cta-button:hover::after {
    transform: translateX(10px);
    opacity: 1;    
}

/* Image Content Column */
.dtcm-item-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dtcm-item-thumbnail {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dtcm-item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.dtcm-item-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
}

/* Slider Controls - Updated to match design */
.dtcm-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    background: #fff;
    border-radius: 50px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    gap: 20px;
    max-width: 300px;
    width: auto;
    z-index: 10;
}

.dtcm-prev-slide,
.dtcm-next-slide {
    background: none;
    border: none;
    box-shadow: none !important;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.dtcm-prev-slide:hover,
.dtcm-next-slide:hover {
    background: #f8f9fa;
    color: var(--current-tab-color, var(--tab-color, #0073aa));
    transform: scale(1.1);
}

.dtcm-arrow {
    font-weight: bold;
    font-size: 36px;
}

.dtcm-slider-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dtcm-pagination-dot {
    background: none !important;
    border: none;
    font-size: 34px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.dtcm-pagination-dot:hover {
    background: none !important;
    color: var(--current-tab-color, var(--tab-color, #0073aa));
    box-shadow: none !important;
}

.dtcm-pagination-dot.dtcm-active {
    background: none !important;
    color: #000;
    font-weight: 700;
    box-shadow: none !important;
}

/* Empty State */
.dtcm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.dtcm-empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.dtcm-empty-state h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #495057;
}

.dtcm-empty-state p {
    font-size: 16px;
    margin: 0;
    color: #6c757d;
}

/* Color Schemes - Solid Colors Only */
.dtcm-color-scheme-modern-blue .dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: #3498db !important;
}

.dtcm-color-scheme-modern-blue .dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: #e74c3c !important;
}

.dtcm-color-scheme-modern-blue .dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: #2ecc71 !important;
}

.dtcm-color-scheme-elegant-dark .dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: #2c3e50 !important;
}

.dtcm-color-scheme-elegant-dark .dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: #95a5a6 !important;
}

.dtcm-color-scheme-elegant-dark .dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: #34495e !important;
}

.dtcm-color-scheme-warm-orange .dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: #e67e22 !important;
}

.dtcm-color-scheme-warm-orange .dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: #f39c12 !important;
}

.dtcm-color-scheme-warm-orange .dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: #e74c3c !important;
}

.dtcm-color-scheme-fresh-green .dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: #27ae60 !important;
}

.dtcm-color-scheme-fresh-green .dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: #2ecc71 !important;
}

.dtcm-color-scheme-fresh-green .dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: #16a085 !important;
}

.dtcm-color-scheme-royal-purple .dtcm-tab-item:nth-child(1) .dtcm-tab-icon {
    background: #9b59b6 !important;
}

.dtcm-color-scheme-royal-purple .dtcm-tab-item:nth-child(2) .dtcm-tab-icon {
    background: #8e44ad !important;
}

.dtcm-color-scheme-royal-purple .dtcm-tab-item:nth-child(3) .dtcm-tab-icon {
    background: #a569bd !important;
}

/* Tab Color Variables */
.dtcm-tab-item[data-tab-color="#ff6b35"] {
    --tab-color: #ff6b35;
    --tab-color-dark: #e55a2b;
}

.dtcm-tab-item[data-tab-color="#8e44ad"] {
    --tab-color: #8e44ad;
    --tab-color-dark: #7d3c98;
}

.dtcm-tab-item[data-tab-color="#27ae60"] {
    --tab-color: #27ae60;
    --tab-color-dark: #229954;
}

.dtcm-tab-item[data-tab-color="#e74c3c"] {
    --tab-color: #e74c3c;
    --tab-color-dark: #c0392b;
}

.dtcm-tab-item[data-tab-color="#f39c12"] {
    --tab-color: #f39c12;
    --tab-color-dark: #d68910;
}

.dtcm-tab-item[data-tab-color="#3498db"] {
    --tab-color: #3498db;
    --tab-color-dark: #2980b9;
}

.dtcm-tab-item[data-tab-color="#9b59b6"] {
    --tab-color: #9b59b6;
    --tab-color-dark: #8e44ad;
}

.dtcm-tab-item[data-tab-color="#1abc9c"] {
    --tab-color: #1abc9c;
    --tab-color-dark: #16a085;
}

/* Content Panel Color Variables */
.dtcm-content-panel[data-tab-color="#ff6b35"] {
    --tab-color: #ff6b35;
    --tab-color-dark: #e55a2b;
}

.dtcm-content-panel[data-tab-color="#8e44ad"] {
    --tab-color: #8e44ad;
    --tab-color-dark: #7d3c98;
}

.dtcm-content-panel[data-tab-color="#27ae60"] {
    --tab-color: #27ae60;
    --tab-color-dark: #229954;
}

.dtcm-content-panel[data-tab-color="#e74c3c"] {
    --tab-color: #e74c3c;
    --tab-color-dark: #c0392b;
}

.dtcm-content-panel[data-tab-color="#f39c12"] {
    --tab-color: #f39c12;
    --tab-color-dark: #d68910;
}

.dtcm-content-panel[data-tab-color="#3498db"] {
    --tab-color: #3498db;
    --tab-color-dark: #2980b9;
}

.dtcm-content-panel[data-tab-color="#9b59b6"] {
    --tab-color: #9b59b6;
    --tab-color-dark: #8e44ad;
}

.dtcm-content-panel[data-tab-color="#1abc9c"] {
    --tab-color: #1abc9c;
    --tab-color-dark: #16a085;
}

/* Dynamic Color Variables */
.dtcm-frontend-container {
    --current-tab-color: #0073aa;
    --current-tab-color-dark: #005a87;
}


.dtcm-content-panel.dtcm-active .dtcm-pagination-dot.dtcm-active {
    color: #000 !important;
}

/* Active Tab Color Priority */
.dtcm-tab-item.dtcm-active[data-tab-color="#ff6b35"] .dtcm-tab-icon {
    background: #ff6b35 !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#8e44ad"] .dtcm-tab-icon {
    background: #8e44ad !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#27ae60"] .dtcm-tab-icon {
    background: #27ae60 !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#e74c3c"] .dtcm-tab-icon {
    background: #e74c3c !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#f39c12"] .dtcm-tab-icon {
    background: #f39c12 !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#3498db"] .dtcm-tab-icon {
    background: #3498db !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#9b59b6"] .dtcm-tab-icon {
    background: #9b59b6 !important;
}

.dtcm-tab-item.dtcm-active[data-tab-color="#1abc9c"] .dtcm-tab-icon {
    background: #1abc9c !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dtcm-tab-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dtcm-main-content {
        padding: 20px;
    }
    
    .dtcm-slide-content {
        padding: 20px;
    }
    
    .dtcm-item-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dtcm-item-text {
        padding-right: 0;
        order: 2;
    }
    
    .dtcm-item-image {
        order: 1;
    }
    
    .dtcm-item-title {
        font-size: 24px;
    }
    
    .dtcm-slider-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .dtcm-slider-pagination {
        order: 1;
    }
    
    .dtcm-prev-slide,
    .dtcm-next-slide {
        order: 2;
    }
}

@media (max-width: 480px) {
    .dtcm-tab-header {
        flex-direction: column;
        text-align: left;
        gap: 10px;
    }
    
    .dtcm-tab-icon,
    .dtcm-tab-thumbnail {
        width: 100%;
        height: 80px;
        font-size: 32px;
    }
    
    .dtcm-tab-title {
        font-size: 16px;
    }
    
    .dtcm-tab-description {
        font-size: 13px;
    }
    
    .dtcm-item-title {
        font-size: 20px;
    }
    
    .dtcm-item-description {
        font-size: 14px;
    }
} 