* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;

    background: var(--kt-body-bg);

    color: #ffffff;

    min-height: 100vh;

    direction: rtl;

    overflow-x: hidden;

}



/* Metronic-inspired dark palette tokens */

:root {

    --kt-body-bg: #0D0E12;

    --kt-nav-bg: #0B0C10;

    --kt-card-bg: #111217;

    --kt-muted-bg: #1B1B29;

    --kt-border: #2B2B40;

    --kt-text: #FFFFFF;

    --kt-text-muted: #A1A5B7;

    --kt-primary: #057FC8;

    --kt-primary-contrast: #FFFFFF;

    --kt-success: #17C653;

    --kt-warning: #F6C000;

    --kt-danger: #F1416C;

    --kt-info: #7239EA;

}





.topbar {

    position: sticky;

    top: 0;

    z-index: 100;

    background: var(--kt-nav-bg);

    border-bottom: 1px solid var(--kt-border);

    margin-bottom: 0;

    padding: 12px 0;

}



.topbar-content {

    max-width: 1600px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 0;

    width: 100%;

}



.brand-chip {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    background: rgba(114, 57, 234, 0.12);

    color: #CDB6FF;

    border: 1px solid rgba(114, 57, 234, 0.25);

}



.topbar-right {

    display: flex;

    align-items: center;

    gap: 12px;

}



.main-container {

    min-height: 100vh;

    padding: 0;

    position: relative;

}



.main-container::before {

    content: none;

}



.content {

    max-width: 1600px;

    margin: 0 auto;

    position: relative;

    z-index: 1;

    animation: fadeInUp 0.6s ease-out;

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.logo-container {

    text-align: center;

    margin-bottom: 24px;

}



.logo {

    height: 48px;

    width: auto;

    filter: brightness(1.1);

}



.header {

    text-align: center;

    margin-bottom: 40px;

}



.header h1 {

    font-size: 42px;

    font-weight: 700;

    color: var(--kt-text);

    margin-bottom: 12px;

    letter-spacing: -0.025em;

}



.header p {

    font-size: 16px;

    color: var(--kt-text-muted);

    font-weight: 400;

    line-height: 1.5;

}



.card {

    background: var(--kt-card-bg);

    border: 1px solid var(--kt-border);

    border-radius: 14px;

    padding: 24px;

    margin-bottom: 24px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.18);

    transition: all 0.3s ease;

}



.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }



.card-header {

    font-size: 20px;

    font-weight: 600;

    color: #ffffff;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    gap: 12px;

}



.card-header i {

    color: var(--kt-primary);

    font-size: 18px;

}



.toolbar {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    align-items: center;

}



.toolbar .spacer {

    flex: 1;

}



.search-input {

    width: 260px;

    max-width: 100%;

    background: var(--kt-muted-bg);

    border: 1px solid var(--kt-border);

    color: #E1E3EA;

    padding: 10px 14px;

    border-radius: 12px;

    font-size: 14px;

}



.search-input::placeholder { color: #7E8299; }



.btn-ghost {

    background: rgba(148, 163, 184, 0.08);

    color: #cbd5e1;

    box-shadow: none;

}



.btn {

    background: var(--kt-primary);

    color: var(--kt-primary-contrast);

    padding: 12px 24px;

    border: none;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    font-family: inherit;

    box-shadow: 0 6px 16px rgba(0, 158, 247, 0.25);

    position: relative;

    overflow: hidden;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    z-index: 1;

}



.btn::before { display: none; }



.btn:hover:not(:disabled) {

    transform: translateY(-1px);

    filter: brightness(0.95);

    box-shadow: 0 8px 22px rgba(0, 158, 247, 0.3);

    color: #ffffff;

}



.brand-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 16px;

}



.stats {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 32px;

}



.stat-card {

    background: var(--kt-card-bg);

    border-radius: 16px;

    border: 1px solid var(--kt-border);

    padding: 24px;

    text-align: center;

}







.stat-number {

    font-size: 36px;

    font-weight: 700;

    color: #ffffff;

    margin-bottom: 8px;

    letter-spacing: -0.025em;

}



.stat-label {

    color: #94a3b8;

    font-size: 14px;

    font-weight: 500;

}



.status-badge {

    display: inline-block;

    padding: 8px 16px;

    border-radius: 20px;

    font-weight: 600;

    font-size: 14px;

}



.status-active {

    background: rgba(34, 197, 94, 0.2);

    color: #22c55e;

    border: 1px solid rgba(34, 197, 94, 0.3);

}



.status-inactive {

    background: rgba(239, 68, 68, 0.2);

    color: #ef4444;

    border: 1px solid rgba(239, 68, 68, 0.3);

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    color: #f1f5f9;

    margin-bottom: 8px;

}



.form-control {

    width: 100%;

    max-width: 100%;

    background: rgba(15, 23, 42, 0.6);

    border: 1px solid rgba(148, 163, 184, 0.2);

    color: #ffffff;

    padding: 12px 16px;

    border-radius: 12px;

    font-size: 14px;

    transition: all 0.3s ease;

    font-family: inherit;

    box-sizing: border-box;

    min-height: 44px;

    resize: none;

}



.form-control.phone-input {

    direction: ltr;

    text-align: left;

    font-family: 'Courier New', monospace;

}



.form-control:focus {

    outline: none;

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);

    background: rgba(15, 23, 42, 0.8);

}



.form-control::placeholder {

    color: #64748b;

}



.input-group {

    display: flex;

    gap: 12px;

    align-items: center;

}



.input-group .form-control {

    flex: 1;

}



.btn {

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: #ffffff;

    padding: 12px 24px;

    border: none;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    font-family: inherit;

    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);

    position: relative;

    overflow: hidden;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    z-index: 1;

}



.btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: -1;

}



.btn:hover:not(:disabled) {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);

    color: #ffffff;

}



.btn:hover:not(:disabled)::before {

    opacity: 1;

}



.btn:disabled {

    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);

    color: #9ca3af;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;

}



.btn-success {

    background: linear-gradient(135deg, #10b981 0%, #059669 100%);

    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);

}



.btn-success::before {

    background: linear-gradient(135deg, #059669 0%, #047857 100%);

}



.btn-success:hover:not(:disabled) {

    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);

    color: #ffffff;

}



.btn-danger {

    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);

}



.btn-danger::before {

    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);

}



.btn-danger:hover:not(:disabled) {

    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);

    color: #ffffff;

}



.btn-warning {

    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);

}



.btn-warning::before {

    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);

}



.btn-warning:hover:not(:disabled) {

    box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.4);

    color: #ffffff;

}



.btn-sm {

    padding: 8px 16px;

    font-size: 12px;

}



.table-container { 
    background: var(--kt-card-bg); 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid var(--kt-border); 
    padding: 0;
}



.table {

    width: 100%;

    border-collapse: collapse;

    margin: 0;

}



.table th { 
    background: var(--kt-muted-bg); 
    color: var(--kt-text); 
    padding: 16px; 
    text-align: right; 
    font-weight: 600; 
    font-size: 14px; 
    border-bottom: 1px solid var(--kt-border); 
}



.table td { padding: 16px; border-bottom: 1px solid rgba(43,43,64,0.6); color: #E1E3EA; }



.table tr:hover { background: #1F1F2E; }



.phone-display { font-family: 'Courier New', monospace; font-weight: bold; color: var(--kt-primary); font-size: 16px; direction: ltr; text-align: left; }



.badge { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; background: rgba(0,158,247,0.12); color: #9CCBFE; border: 1px solid rgba(0,158,247,0.3); }



.file-input {

    display: none;

}



.file-button { width: 100%; background: var(--kt-muted-bg); border: 2px dashed var(--kt-border); color: #9CCBFE; padding: 16px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; text-align: center; position: relative; overflow: hidden; }



.file-button::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);

    transform: translateX(-100%);

    transition: transform 0.6s ease;

}



.file-button:hover { border-color: rgba(0,158,247,0.5); background: rgba(0,158,247,0.1); transform: translateY(-2px); }



.file-button:hover::before {

    transform: translateX(100%);

}



.file-info {

    margin-top: 12px;

    padding: 12px 16px;

    background: rgba(34, 197, 94, 0.1);

    border: 1px solid rgba(34, 197, 94, 0.3);

    border-radius: 8px;

    color: #22c55e;

    font-size: 13px;

    display: none;

    animation: slideIn 0.3s ease;

}



@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateY(-10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.alert {

    padding: 16px 20px;

    border-radius: 12px;

    margin-bottom: 24px;

    font-size: 14px;

    font-weight: 500;

    animation: slideIn 0.3s ease;

}



.alert-success { background: rgba(23,198,83,0.12); border: 1px solid rgba(23,198,83,0.25); color: #5CE38D; }

.alert-error { background: rgba(241,65,108,0.12); border: 1px solid rgba(241,65,108,0.25); color: #FF8FA8; }



.grid {

    display: grid;

    gap: 16px;

}



.grid-2 {

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

}



.grid-3 {

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

}



.empty-state {

    text-align: center;

    padding: 60px 20px;

    color: #64748b;

}



.empty-state i {

    font-size: 48px;

    margin-bottom: 16px;

    color: #475569;

}



.empty-state h3 {

    font-size: 20px;

    margin-bottom: 8px;

    color: #94a3b8;

}



.btn-group {

    display: flex;

    gap: 8px;

}



.pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 600;

    background: rgba(59, 130, 246, 0.15);

    color: #93c5fd;

    border: 1px solid rgba(59, 130, 246, 0.3);

}



/* Brand Buttons */

.brand-button {

    position: relative;

    overflow: hidden;

}



.brand-button::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);

    transform: translateX(-100%);

    transition: transform 0.6s ease;

    z-index: 0;

}



.brand-button:hover:not(.active) {

    border-color: rgba(139, 92, 246, 0.4) !important;

    background: rgba(139, 92, 246, 0.05) !important;

    color: #a855f7 !important;

    transform: translateY(-2px);

    box-shadow: 0 8px 25px 0 rgba(139, 92, 246, 0.2) !important;

}



.brand-button:hover::before {

    transform: translateX(100%);

}



.brand-button.active {

    animation: brandPulse 2s infinite;

}



@keyframes brandPulse {

    0% { box-shadow: 0 8px 25px 0 rgba(139, 92, 246, 0.3); }

    50% { box-shadow: 0 12px 35px 0 rgba(139, 92, 246, 0.4); }

    100% { box-shadow: 0 8px 25px 0 rgba(139, 92, 246, 0.3); }

}



/* Footer styles */

.footer {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    width: 100%;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #94a3b8;
    font-size: 14px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    text-align: right;
    flex: 0 0 auto;
}

.copyright {
    text-align: right;
    direction: rtl;
}

.footer-credit {
    line-height: 1.4;
    text-align: right;
    direction: rtl;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}



/* Toast animations */

@keyframes slideInUp {

    from { transform: translateY(100px); opacity: 0; }

    to { transform: translateY(0); opacity: 1; }

}



@keyframes slideOutDown {

    from { transform: translateY(0); opacity: 1; }

    to { transform: translateY(100px); opacity: 0; }

}



@keyframes slideOutUp {

    from { transform: translateY(0); opacity: 1; }

    to { transform: translateY(-30px); opacity: 0; }

}



/* Mobile responsiveness */

@media (max-width: 768px) {

    .main-container {

    padding: 0;

    }



    .header h1 {

        font-size: 32px;

    }



    .card {

        padding: 20px;

    }



    .table-container {

        overflow-x: auto;

    }



    .input-group {

        flex-direction: column;

    }



    .btn-group {

        flex-direction: column;

    }



    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }

}
/* Campaign Dock (iOS Style) - Ported from styles_modern.css */
.campaign-dock {
    display: flex;
    justify-content: flex-start; /* Align to start for scrolling */
    align-items: flex-end;
    gap: 16px;
    padding: 30px 20px 20px 20px; /* Reduced padding to minimum safe for hover */
    flex-wrap: nowrap; /* No wrapping */
    overflow-x: auto; /* Allow scrolling */
    perspective: 1000px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scroll-behavior: auto; /* Custom JS scrolling handles smoothness */
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.campaign-dock::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.campaign-card {
    width: 220px;
    min-width: 220px !important; /* Fixed width */
    flex: 0 0 auto; /* Don't shrink */
    border-radius: 8px !important; /* Small rounded corners */
    background: var(--kt-card-bg);
    border: 1px solid var(--kt-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform-origin: center bottom;
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--kt-text);
}

.campaign-card:hover {
    transform: scale(1.02) translateY(-5px) !important;
    z-index: 10;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3) !important;
    border-color: var(--kt-primary) !important;
}

.campaign-card-active {
    border-color: var(--kt-primary) !important;
    box-shadow: 0 0 15px rgba(0, 158, 247, 0.3) !important;
}

.campaign-card-image {
    height: auto;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--kt-border);
}

.campaign-card-content {
    padding: 16px;
}

.campaign-card-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--kt-text);
    margin-bottom: 0;
}

/* Campaign Dock Wrapper */
.campaign-dock-wrapper {
    position: relative;
    padding: 0 20px;
    margin-bottom: 30px;
}

.dock-arrow {
    position: absolute;
    top: 45%; /* Slightly above center to account for scrollbar/padding */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--kt-card-bg);
    border: 1px solid var(--kt-border);
    color: var(--kt-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.campaign-dock-wrapper:hover .dock-arrow {
    opacity: 1;
    pointer-events: auto;
}

.dock-arrow:hover {
    background: var(--kt-primary);
    color: white;
    border-color: var(--kt-primary);
    transform: translateY(-50%) scale(1.1);
}

.dock-arrow-left {
    left: 0;
}

.dock-arrow-right {
    right: 0;
}

.dock-scroll-track {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
}

.dock-scroll-bar {
    height: 100%;
    background: var(--kt-primary);
    border-radius: 2px;
    width: 20%;
    position: absolute;
    /* In RTL, right: 0 is the start */
    right: 0; 
    transition: right 0.1s ease-out;
}

/* Sidebar Layout */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 70px;
}

.sidebar {
    position: fixed;
    top: 74px; /* Height of topbar + border */
    right: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--kt-nav-bg);
    border-left: 1px solid var(--kt-border);
    z-index: 99;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

/* Collapsed state removed */


.sidebar-header {
    padding: 0 16px;
    height: 60px;
    border-bottom: 1px solid var(--kt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    white-space: nowrap;
}



.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px; /* Added spacing */
    color: var(--kt-text);
    overflow: hidden;
}



.sidebar-actions {
    display: flex;
    align-items: center;
}

/* Sidebar Campaign Filter */
.sidebar-filter {
    padding: 12px 16px;
    border-bottom: 1px solid var(--kt-border);
    flex-shrink: 0;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-icon {
    position: absolute;
    right: 12px;
    color: var(--kt-text-muted);
    font-size: 14px;
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid var(--kt-border);
    border-radius: 8px;
    background: var(--kt-input-bg);
    color: var(--kt-text);
    font-size: 14px;
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input::placeholder {
    color: var(--kt-text-muted);
}

.filter-input:focus {
    outline: none;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.15);
}

.filter-clear {
    position: absolute;
    left: 8px;
    background: none;
    border: none;
    color: var(--kt-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    transition: color 0.2s ease;
}

.filter-clear:hover {
    color: var(--kt-text);
}

.campaign-list-item.filter-hidden {
    display: none !important;
}

.no-filter-results {
    text-align: center;
    padding: 20px;
    color: var(--kt-text-muted);
    font-size: 14px;
}

.no-filter-results i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--kt-border) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: var(--kt-border);
    border-radius: 4px;
}



/* Campaign List */
.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campaign-list-item {
    display: flex;
    flex-direction: column; /* Vertical layout */
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--kt-text-muted);
    position: relative;
    opacity: 0.5;
    filter: grayscale(100%);
}

.campaign-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--kt-text);
    opacity: 1;
    filter: grayscale(0%);
}

.campaign-list-item.active {
    background: rgba(0, 158, 247, 0.1);
    color: var(--kt-primary);
    opacity: 1;
    filter: grayscale(0%);
}

.campaign-list-item.active .campaign-item-title {
    color: var(--kt-primary);
}

.campaign-list-item:hover .campaign-item-title {
    color: var(--kt-text);
}

.campaign-item-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.campaign-item-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.campaign-item-image .no-image {
    color: var(--kt-text-muted);
    font-size: 1.5rem;
}



.campaign-item-info {
    width: 100%;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s;
}



.campaign-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.campaign-item-subtitle {
    font-size: 0.8rem;
    color: var(--kt-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    transition: all 0.2s;
    border-radius: 0 !important;
    width: 100%;
    margin: 0;
    border: none;
}



.campaign-add-btn .btn-text {
    white-space: nowrap;
}



.sidebar.collapsed:not(:hover) .campaign-add-btn i {
    margin: 0;
    font-size: 1.1rem;
}

/* Content Area - Remove margin to allow sidebar overlay */
.main-container {
    transition: margin-right 0.3s ease;
    margin-right: 0 !important; /* Overlay mode */
    width: auto !important;
    max-width: none !important;
    padding-right: 20px; /* Basic padding */
}

/* Add padding to content to prevent hiding behind collapsed sidebar if desired, 
   but user asked for "absolute" behavior. 
   Let's add padding equal to collapsed width so icons are always visible without covering content,
   but expanded sidebar covers content. */
.main-container {
    padding-right: calc(var(--sidebar-collapsed-width) + 20px) !important;
}

body.sidebar-collapsed .main-container {
    padding-right: calc(var(--sidebar-collapsed-width) + 20px) !important;
}

.content {
    flex: 1;
    min-width: 0;
    margin: 0 auto !important;
    max-width: 1600px !important;
    padding: 30px 0 0 0;
}

/* Mobile Sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    backdrop-filter: blur(2px);
}

.sidebar-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--kt-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: -300px; /* Hide off-screen */
        width: 280px !important; /* Always full width on mobile */
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        border: none;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(-300px); /* Move left into view */
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-container {
        margin-right: 0 !important;
    }
    
    body.sidebar-collapsed .main-container {
        margin-right: 0 !important;
    }
    
    .sidebar.collapsed .sidebar-header,
    .sidebar.collapsed .campaign-list-item {
        justify-content: flex-start;
    }
    
    .sidebar.collapsed .campaign-item-info,
    .sidebar.collapsed .sidebar-title span {
        display: block;
    }
}

.main-container.has-sidebar {
    padding-right: var(--sidebar-width) !important;
}

.topbar.has-sidebar {
    padding-right: var(--sidebar-width) !important;
}

.sidebar-footer {
    margin-top: auto;
    background: var(--kt-nav-bg);
}

