/* Variables de color - Modern Dashboard Style */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;

    /* Backgrounds */
    --bg-body: #f3f4f6;
    --bg-white: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #334155;

    /* Text */
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #f9fafb;

    /* Decoration */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sizes */
    --header-height: 70px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;

    /* Default (Light) */
    --card-bg: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
}

.theme-dark {
    --bg-body: #0f172a;
    /* Slate 900 */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --bg-white: #1e293b;
    /* Slate 800 */
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    --card-bg: #2a2a40;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* Base Utilities */
.border-l-danger { border-left: 4px solid var(--danger) !important; }
.border-l-primary { border-left: 4px solid var(--primary) !important; }
.fs-sm { font-size: 0.85rem; }
.fs-md { font-size: 1rem; }
.fs-lg { font-size: 1.1rem; }
.fs-xl { font-size: 1.25rem; }

.theme-light {
    --bg-body: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-sidebar: #1f2937;
    /* Keep sidebar dark-ish or match light theme? Usually headers/sidebars stay dark or have specific styling */
    --card-bg: #ffffff;
    --bg-secondary: #ffffff;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
}

body.theme-light .crm-card,
body.theme-light .theme-card,
body.theme-light .kpi-card,
body.theme-light .chart-card,
body.theme-light .promo-card,
body.theme-light .insights-rating-section {
    background: #ffffff !important;
}

html {
    scroll-behavior: smooth;
    font-family: 'Nunito', sans-serif;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    position: fixed;
    height: 100vh;
    max-height: 100vh;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    margin-top: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

/* Logo States */
.logo-full {
    display: block;
    height: 38px;
    width: auto;
}

.logo-mini {
    display: none;
    height: 32px;
    width: auto;
}

.sidebar.collapsed .logo-full {
    display: none;
}

.sidebar.collapsed .logo-mini {
    display: block;
    margin: 0 auto 0 1.5vw;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 1rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
    margin-right: 10px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sidebar-toggle:hover {
    opacity: 1;
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.nav-link span {
    margin-left: 1rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.nav-link:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-light);
    background-color: var(--bg-sidebar-hover);
    border-left-color: var(--primary);
}

.sidebar-subnav {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.subnav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.subnav-link i {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.subnav-link span {
    margin-left: 0.75rem;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar.collapsed .sidebar-subnav {
    display: none;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Styles */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar.collapsed+.main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Sticky Header */
.top-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo-mini {
    display: none;
    height: 32px;
    width: auto;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.header-search {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.2s;
}

.header-search input:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

.user-menu .avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
    object-fit: cover;
}

.user-menu .avatar:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-demo {
    box-sizing: border-box;
    background-color: var(--primary);
    color: white;
    border: 1.5px solid transparent;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    line-height: 1.5;
}

.btn-demo:hover {
    background-color: var(--primary-dark);
}

/* Shared Module Header */
.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.module-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shared Header Back Button */
.crm-back-btn {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    color: #818cf8;
}

.crm-back-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.6);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.main-content {
    flex: 1;
    padding: 2rem 2rem 2rem 3rem;
    overflow-x: hidden;
}

/* Section Common */
.section-container {
    margin-bottom: 4rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Home / Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

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

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

.service-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.service-card ul li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.industry-card:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.industry-card span {
    font-weight: 600;
    color: var(--text-main);
}

/* Map Section */
.map-container {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
}

.map-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 1.25rem;
    }

    .module-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: none;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .sidebar.collapsed {
        width: 260px;
        /* Disable collapse on mobile, just open/close */
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .sidebar.collapsed+.main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        margin-right: 1rem;
        z-index: 60;
    }

    .sidebar-toggle {
        display: none !important;
        /* Hide internal toggle on mobile */
    }

    .header-logo-mini {
        display: block;
    }

    .header-actions .user-menu {
        display: none;
    }

    .header-search {
        display: none;
        /* Hide search on small screens for cleaner UI */
    }
}

/* No Sidebar nor Header Layout */
.dashboard-container.no-sidebar .sidebar,
.dashboard-container.no-header .top-header {
    display: none;
}

.dashboard-container.no-sidebar .main-wrapper {
    margin-left: 0;
    width: 100%;
}

.dashboard-container.no-sidebar .mobile-toggle {
    display: none;
}

/* Improved Header Toggle Icons */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    transform: scale(1.1);
}

body.theme-dark .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.theme-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
        /* Ensure flex display on mobile */
    }
}

/* Sidebar Sub-navigation Refinements */
.sidebar-subnav {
    list-style: none;
    padding: 0;
    margin: 8px 0 8px 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.subnav-link i {
    width: 16px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.subnav-link:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.03);
}

.subnav-link.active {
    color: var(--text-light);
    background-color: var(--bg-sidebar-hover);
    border-left: 2px solid var(--primary);
    margin-left: -1px;
}
/* Refined Image/File Preview & Upload Card */
.gf-file-upload-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.gf-file-upload-card:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.gf-file-upload-card.has-preview {
    border-style: solid;
    background: #0f172a;
}

.gf-file-drop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gf-file-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition);
    z-index: 10;
    pointer-events: none;
}

.gf-file-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.gf-file-hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Hover effect when there is a preview */
.has-preview .gf-file-drop-content {
    opacity: 0;
    transform: translateY(10px);
    color: white !important;
}

.has-preview:hover .gf-file-drop-content {
    opacity: 1;
    transform: translateY(0);
}

.has-preview .gf-file-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.has-preview .gf-file-hint {
    color: rgba(255, 255, 255, 0.9);
}

.gf-file-preview-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.gf-file-preview-container img,
.gf-file-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gf-file-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7); /* Darker for better contrast */
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 5;
}

.gf-file-upload-card:hover .gf-file-preview-overlay {
    opacity: 1;
}

/* Django Widget Overrides (The Magic) */
.gf-django-file-widget {
    position: absolute;
    inset: 0;
    z-index: 20;
    font-size: 0;
    color: transparent;
    pointer-events: none; /* Let clicks pass through to the label below */
}

.gf-django-file-widget input[type="file"] {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    pointer-events: auto;
}

/* Clear checkbox styling */
.gf-django-file-widget input[type="checkbox"] {
    display: block !important;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    opacity: 0 !important;
    z-index: 31;
    cursor: pointer;
    pointer-events: auto;
}

/* Specific selector for clear label to accommodate different Django versions/field names */
.gf-django-file-widget label[for*="-clear"] {
    display: flex !important;
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    z-index: 30;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.gf-django-file-widget label[for*="-clear"]:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.gf-django-file-widget label[for*="-clear"]::before {
    content: '\f2ed';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* State when checked for clearing */
.gf-django-file-widget input[type="checkbox"]:checked + label[for*="-clear"] {
    background: #64748b;
    color: rgba(255, 255, 255, 0.8) !important;
}

.gf-django-file-widget input[type="checkbox"]:checked + label[for*="-clear"]::after {
    content: ' (Selected)';
    margin-left: 2px;
}
