/**
 * CMS Panel Theme Override
 * Dark Theme Integration for Metronic
 * Version: 2.0 - RED, SHARP, BLACK inputs, Modern file/video uploads
 */

/* ================================
   1. ROOT VARIABLES & COLORS
   ================================ */
:root[data-theme="dark"] {
    /* Background Colors */
    --bs-body-bg: #0b0c0f;
    --bs-body-bg-rgb: 11, 12, 15;

    /* Card & Surface Colors - cms.panel EXACT */
    --bs-card-bg: #141414;
    --bs-card-bg-rgb: 20, 20, 20;

    /* Input & Form Colors - BLACK background (#000000) */
    --bs-input-bg: #000000;
    --bs-input-bg-rgb: 0, 0, 0;

    /* Border Colors */
    --bs-border-color: rgba(255, 255, 255, 0.06);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.06);

    /* Text Colors */
    --bs-body-color: #e6e8ee;
    --bs-body-color-rgb: 230, 232, 238;
    --bs-heading-color: #ffffff;
    --bs-muted-color: #a6a9b6;

    /* Accent Color - cms.panel EXACT RED */
    --bs-primary: #e50a14;
    --bs-primary-rgb: 229, 10, 20;
    --bs-danger: #e50a14;
    --bs-danger-rgb: 229, 10, 20;

    /* Border Radius - SHARP DESIGN (0px) */
    --bs-border-radius: 0px;
    --bs-border-radius-sm: 0px;
    --bs-border-radius-lg: 0px;

    /* Shadows */
    --bs-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --bs-box-shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.25);
    --bs-box-shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.45);
}

/* Font import removed - using Metronic's default Inter font */

/* ================================
   3. GLOBAL STYLES
   ================================ */
body {
    background-color: #0b0c0f !important;
    color: #e6e8ee !important;
}

/* GLOBAL SHARP DESIGN - Remove all border radius */
*,
*::before,
*::after,
.card,
.btn,
.form-control,
.form-select,
.modal-content,
.dropdown-menu,
.badge,
.alert,
.pagination .page-link,
.progress,
.progress-bar {
    border-radius: 0 !important;
}

/* Icon font rules removed - Metronic's default icon fonts will apply naturally */

/* Fix for dark text in dark theme */
.text-dark,
.text-gray-800,
.text-gray-900 {
    color: #e6e8ee !important;
}

.text-muted {
    color: #a6a9b6 !important;
}

/* DD (Drag Drop) Content Fix - ENHANCED */
.dd-content,
.dd3-content,
.dd3-content a,
.dd-content *,
.dd3-content *,
.dd-item,
.dd-item *,
.dd-list,
.dd-list *,
dd,
dd *,
dl,
dl dd,
dl dd * {
    color: #ffffff !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.dd3-content .text-dark,
.dd-content .text-dark {
    color: #ffffff !important;
}

/* Force black text on dd elements */
.nestable .dd-item .dd-content,
.nestable .dd3-item .dd3-content {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.nestable .dd-item .dd-content *,
.nestable .dd3-item .dd3-content * {
    color: #000000 !important;
}

/* ================================
   4. SIDEBAR STYLES
   ================================ */
.app-sidebar {
    background-color: #141414 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar-logo {
    background-color: #141414 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sidebar Menu Items */
.app-sidebar .menu .menu-item .menu-link {
    color: #a6a9b6;
    border-radius: 10px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.app-sidebar .menu .menu-item .menu-link:hover {
    background-color: rgba(229, 10, 20, 0.1);
    color: #e50a14;
}

.app-sidebar .menu .menu-item .menu-link.active {
    background-color: #e50a14;
    color: #ffffff;
    position: relative;
}

.app-sidebar .menu .menu-item .menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #ffffff;
    border-radius: 0 4px 4px 0;
}

/* Sidebar Sub Menu */
.app-sidebar .menu .menu-sub {
    background-color: transparent;
}

.app-sidebar .menu .menu-sub .menu-item .menu-link {
    padding-left: 3.5rem;
    color: #8a8d98;
}

.app-sidebar .menu .menu-sub .menu-item .menu-link:hover,
.app-sidebar .menu .menu-sub .menu-item .menu-link.active {
    color: #e50a14;
    background-color: rgba(229, 10, 20, 0.08);
}

/* Menu Heading */
.app-sidebar .menu .menu-content .menu-heading {
    color: #6c6f7f;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ================================
   5. HEADER STYLES
   ================================ */
.app-header {
    background-color: #141414 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.app-header .app-navbar {
    background-color: transparent;
}

/* Header Dropdowns */
.app-header .menu-sub {
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

/* ================================
   6. CARD STYLES
   ================================ */
.card {
    background-color: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
    color: #e6e8ee;
}

.card-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0;
}

/* Card Flush (No Border) */
.card-flush {
    box-shadow: none;
    border: none;
}

/* Card Stretch */
.card-stretch {
    height: calc(100% - 1.5rem);
}

.card-height {
    min-height: 120px;
}

/* ================================
   6. TABLE STYLES (cms.panel EXACT)
   ================================ */
.table {
    color: #e6e8ee;
    border-color: rgba(255, 255, 255, 0.06);
}

.table thead th {
    background-color: rgba(229, 10, 20, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

.table tbody tr {
    border-color: rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(229, 10, 20, 0.03);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e6e8ee;
}

/* Table Links */
.table a {
    color: #e6e8ee;
    text-decoration: none;
}

.table a:hover {
    color: #e50a14;
}

/* DataTables Override */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #e50a14 !important;
    outline: none;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #a6a9b6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e6e8ee !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(229, 10, 20, 0.1) !important;
    border-color: transparent !important;
    color: #e50a14 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e50a14 !important;
    border-color: #e50a14 !important;
    color: #ffffff !important;
}

/* ================================
   7. FORM CONTROLS (cms.panel EXACT)
   ================================ */
.form-control,
.form-select,
textarea.form-control {
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: #000000 !important;
    border-color: #e50a14 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 10, 20, 0.15) !important;
    outline: none;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input::placeholder,
select::placeholder {
    color: #e5e7eb !important;
    opacity: 1 !important;
    font-weight: 500;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #1a1a1a !important;
    color: #6c757d !important;
    opacity: 0.6;
}

.form-label {
    color: #e6e8ee !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Required field asterisk */
.form-label .text-danger,
.form-label small {
    color: #e50a14 !important;
}

/* Input Group */
.input-group-text {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a6a9b6;
}

/* Select Dropdown */
.form-select option {
    background-color: #000000;
    color: #ffffff;
}

/* Textarea specific - ELEGANT STYLING */
textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
    padding: 1rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease;
}

textarea.form-control:focus {
    border-color: #e50a14 !important;
    box-shadow: 0 0 0 0.25rem rgba(229, 10, 20, 0.2) !important;
}

/* Form validation states */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e50a14 !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745 !important;
}

.invalid-feedback {
    color: #e50a14;
}

.valid-feedback {
    color: #28a745;
}

/* ================================
   8. BUTTONS (cms.panel EXACT)
   ================================ */
.btn-primary {
    background-color: #e50a14 !important;
    border-color: #e50a14 !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c00913 !important;
    border-color: #c00913 !important;
    box-shadow: 0 5px 15px rgba(229, 10, 20, 0.3) !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: #e50a14 !important;
    border-color: #e50a14 !important;
}

.btn-danger:hover {
    background-color: #c00913 !important;
    border-color: #c00913 !important;
}

.btn-light {
    background-color: #2a2b35;
    border-color: #2a2b35;
    color: #e6e8ee;
}

.btn-light:hover {
    background-color: #35363f;
    border-color: #35363f;
    color: #ffffff;
}

.btn-secondary {
    background-color: #3a3b43;
    border-color: #3a3b43;
    color: #e6e8ee;
}

.btn-secondary:hover {
    background-color: #45464f;
    border-color: #45464f;
    color: #ffffff;
}

/* ================================
   9. DROPDOWN MENUS
   ================================ */
.dropdown-menu {
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

.dropdown-item {
    color: #e6e8ee;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(229, 10, 20, 0.1);
    color: #e50a14;
}

.dropdown-item.active {
    background-color: #e50a14;
    color: #ffffff;
}

/* ================================
   10. MODAL
   ================================ */
.modal-content {
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: transparent;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: transparent;
}

.modal-title {
    color: #ffffff;
}

.modal-body {
    color: #e6e8ee;
}

/* Close button */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ================================
   11. BADGES & PILLS
   ================================ */
.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.badge.badge-primary,
.badge-primary {
    background-color: #e50a14 !important;
    color: #ffffff !important;
}

.badge.badge-light-primary {
    background-color: rgba(229, 10, 20, 0.1) !important;
    color: #e50a14 !important;
}

.badge.badge-danger {
    background-color: #e50a14 !important;
    color: #ffffff !important;
}

/* ================================
   12. PAGINATION
   ================================ */
.pagination .page-link {
    background-color: #141414;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e6e8ee;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: rgba(229, 10, 20, 0.1);
    border-color: #e50a14;
    color: #e50a14;
}

.pagination .page-item.active .page-link {
    background-color: #e50a14;
    border-color: #e50a14;
    color: #ffffff;
}

/* ================================
   13. PROGRESS BARS
   ================================ */
.progress {
    background-color: #1a1a1a;
    border-radius: 8px;
}

.progress-bar {
    background-color: #e50a14;
    border-radius: 8px;
}

/* ================================
   14. ALERTS
   ================================ */
.alert {
    border-radius: 10px;
    border: 1px solid;
}

.alert-primary {
    background-color: rgba(229, 10, 20, 0.1);
    border-color: rgba(229, 10, 20, 0.2);
    color: #e50a14;
}

.alert-danger {
    background-color: rgba(229, 10, 20, 0.1);
    border-color: rgba(229, 10, 20, 0.2);
    color: #e50a14;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* ================================
   15. CHARTS (ApexCharts)
   ================================ */
.apexcharts-canvas {
    background: transparent !important;
}

.apexcharts-text {
    fill: #a6a9b6 !important;
}

.apexcharts-legend-text {
    color: #e6e8ee !important;
}

.apexcharts-gridline {
    stroke: rgba(255, 255, 255, 0.06);
}

.apexcharts-tooltip {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    color: #e6e8ee !important;
}

.apexcharts-tooltip-title {
    background: #1a1a1a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* ================================
   16. SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1b21;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #35363f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e50a14;
}

/* ================================
   17. CUSTOM DASHBOARD COMPONENTS
   ================================ */

/* KPI Cards */
.iq-icon-box-top {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.iq-icon-box-top svg {
    width: 24px;
    height: 24px;
}

/* Stat Cards */
.card-block h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.iq-cart-text p {
    color: #a6a9b6;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image Border Radius */
.img-border-radius {
    border-radius: 8px;
}

/* Avatar Sizes */
.avatar-40 {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.avatar-50 {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* ================================
   18. RESPONSIVE DESIGN
   ================================ */
@media (max-width: 991px) {
    .app-sidebar {
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ================================
   19. FOOTER
   ================================ */
.app-footer {
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #a6a9b6;
}

/* ================================
   20. UTILITY CLASSES (cms.panel EXACT)
   ================================ */
.text-muted {
    color: #a6a9b6 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-primary {
    color: #e50a14 !important;
}

.bg-primary {
    background-color: #e50a14 !important;
}

.bg-body {
    background-color: #141414 !important;
}

.bg-dark {
    background-color: #141414 !important;
}

.border {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Icon improvements */
i,
.fa,
.fas,
.far,
.fab {
    color: inherit;
}

.text-danger {
    color: #e50a14 !important;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Smooth Transitions */
* {
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

a,
button,
.btn {
    transition-duration: 0.3s;
}

/* ================================
   21. METRONIC BLUE COLOR OVERRIDES
   Force replace #009ef7 with #e50a14
   ================================ */

/* Override all Metronic primary colors */
:root {
    --bs-primary: #e50a14 !important;
    --bs-primary-rgb: 229, 10, 20 !important;
    --bs-primary-active: #c00913 !important;
    --bs-primary-light: rgba(229, 10, 20, 0.1) !important;
    --bs-primary-inverse: #ffffff !important;
}

/* Force primary color on all elements */
.bg-primary,
.badge-primary,
.btn-primary,
.text-primary,
[class*="bg-primary"],
[class*="badge-primary"],
[class*="text-primary"] {
    background-color: #e50a14 !important;
    color: #ffffff !important;
    border-color: #e50a14 !important;
}

.text-primary,
[class*="text-primary"] {
    background-color: transparent !important;
    color: #e50a14 !important;
}

/* Override link colors */
.link-primary,
a.text-primary,
a[class*="text-primary"] {
    color: #e50a14 !important;
}

.link-primary:hover,
a.text-primary:hover {
    color: #c00913 !important;
}

/* Override border colors */
.border-primary,
[class*="border-primary"] {
    border-color: #e50a14 !important;
}

/* Override SVG and icon fills */
.svg-icon-primary,
[class*="svg-icon-primary"] {
    color: #e50a14 !important;
    fill: #e50a14 !important;
}

/* Override active states */
.active,
.show,
.menu-link.active,
.nav-link.active {
    color: #e50a14 !important;
}

.active>.menu-link,
.show>.menu-link {
    background-color: #e50a14 !important;
    color: #ffffff !important;
}

/* Override all possible blue references */
*[style*="#009ef7"] {
    color: #e50a14 !important;
    background-color: #e50a14 !important;
    border-color: #e50a14 !important;
}

/* Chart and graph colors */
.apexcharts-series[seriesName] {
    fill: #e50a14 !important;
}

.apexcharts-bar-area,
.apexcharts-pie-slice,
.apexcharts-series-area {
    fill: #e50a14 !important;
}

/* Focus and active states */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #e50a14 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 10, 20, 0.15) !important;
}

/* Button hover states */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #c00913 !important;
    border-color: #c00913 !important;
    color: #ffffff !important;
}

/* ================================
   22. TINYMCE EDITOR STYLING
   Clean and elegant editor
   ================================ */

/* TinyMCE Container */
.tox.tox-tinymce {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
}

/* TinyMCE Toolbar */
.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background-color: #0f0f0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* TinyMCE Buttons */
.tox .tox-tbtn {
    color: #d1d5db !important;
    border-radius: 0 !important;
}

.tox .tox-tbtn:hover {
    background-color: rgba(229, 10, 20, 0.15) !important;
    color: #e50a14 !important;
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
    background-color: #e50a14 !important;
    color: #ffffff !important;
}

/* TinyMCE Editor Body - Better visibility */
.tox .tox-edit-area__iframe,
.mce-content-body {
    background-color: #1a1a1a !important;
}

/* TinyMCE Placeholder in iframe */
[data-mce-placeholder]::before,
.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
    color: #e5e7eb !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

/* TinyMCE Statusbar */
.tox .tox-statusbar {
    background-color: #0f0f0f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #9ca3af !important;
}

/* TinyMCE Icons */
.tox .tox-icon svg {
    fill: #d1d5db !important;
}

.tox .tox-tbtn:hover .tox-icon svg {
    fill: #e50a14 !important;
}

/* ================================
   23. FONTAWESOME ICON SUPPORT
   For gallery and other FA icons
   ================================ */

/* Ensure FontAwesome icons display correctly */
.fa,
.fas,
.far,
.fal,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'FontAwesome' !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Button icons visibility */
.btn i.fa,
.btn i.fas,
.btn .fa,
.btn .fas {
    color: inherit !important;
    font-size: inherit;
    vertical-align: middle;
}

/* ================================
   24. VIDEO UPLOAD AREA STYLING
   Elegant tab and input design
   ================================ */

/* Video upload tabs */
.nav-tabs .nav-link {
    background-color: #1a1a1a !important;
    color: #9ca3af !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin-right: 4px !important;
}

.nav-tabs .nav-link:hover {
    background-color: #252525 !important;
    color: #e5e7eb !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-tabs .nav-link.active {
    background-color: #e50a14 !important;
    color: #ffffff !important;
    border-color: #e50a14 !important;
    box-shadow: 0 4px 12px rgba(229, 10, 20, 0.3) !important;
}

/* Tab content area */
.tab-content {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    padding: 2rem !important;
    border-radius: 0 0 0 0 !important;
}

/* Video upload input groups */
.tab-content .input-group {
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.tab-content .input-group .form-control {
    background-color: #000000 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
}

.tab-content .input-group .form-control:focus {
    background-color: #000000 !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Video upload button */
.tab-content .input-group .btn {
    background-color: #e50a14 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 1rem 1.75rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.tab-content .input-group .btn:hover {
    background-color: #c00913 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(229, 10, 20, 0.4) !important;
}

/* Video upload labels */
.tab-content label,
.tab-content .required {
    color: #e5e7eb !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
}

/* ================================
   25. FILE UPLOAD STYLING
   Modern drag & drop design
   ================================ */

/* File input container */
.tab-content .form-control[type="file"],
input[type="file"].form-control {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%) !important;
    border: 2px dashed rgba(229, 10, 20, 0.3) !important;
    border-radius: 0 !important;
    color: #e5e7eb !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tab-content .form-control[type="file"]:hover,
input[type="file"].form-control:hover {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%) !important;
    border-color: rgba(229, 10, 20, 0.6) !important;
    box-shadow: 0 0 20px rgba(229, 10, 20, 0.15) !important;
    transform: translateY(-2px) !important;
}

.tab-content .form-control[type="file"]:focus,
input[type="file"].form-control:focus {
    border-color: #e50a14 !important;
    box-shadow: 0 0 30px rgba(229, 10, 20, 0.3) !important;
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%) !important;
}

/* File input wrapper enhancement */
.tab-content .form-control[type="file"]::file-selector-button,
input[type="file"].form-control::file-selector-button {
    background-color: #e50a14 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-right: 1.5rem !important;
}

.tab-content .form-control[type="file"]::file-selector-button:hover,
input[type="file"].form-control::file-selector-button:hover {
    background-color: #c00913 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(229, 10, 20, 0.4) !important;
}

/* File upload group styling */
.tab-content .mb-10,
.form-group {
    margin-bottom: 1.5rem !important;
}

/* Enhanced file input for video upload tabs */
.tab-pane .form-control[type="file"] {
    background: #0f0f0f !important;
    border: 2px dashed rgba(229, 10, 20, 0.4) !important;
    padding: 3rem 2rem !important;
}

.tab-pane .form-control[type="file"]::before {
    content: '📁 Dosya Seçmek için Tıklayın veya Sürükleyin' !important;
    display: block !important;
    color: #9ca3af !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
}

.tab-pane .form-control[type="file"]:hover::before {
    color: #e50a14 !important;
}


.btn.btn-light-danger {
    background-color: #161428 !important;
    border-bottom: 1px solid #2f2b4a !important;
    /* border-top: 1px solid #2f2b4a !important; */
}