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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Custom Platform Icons */
.platform-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 2px;
}

/* Custom Edit Icon */
.edit-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url('/static/icons/edit_icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.edit-icon:hover {
    opacity: 1;
}

.ruppee-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-image: url('/static/icons/ruppee_icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-right: 2px;
}

.ruppee-icon:hover {
    opacity: 1;
}

.platform-icon.whatsapp {
    background-image: url('/static/icons/whatsapp.png');
}

.platform-icon.voice {
    background-image: url('/static/icons/voice.png');
}

.platform-icon.meta {
    background-image: url('/static/icons/meta.png');
}

.platform-icon.google {
    background-image: url('/static/icons/google_ads.png');
}

.platform-icon.google-ads {
    background-image: url('/static/icons/google_ads.png');
}

/* Larger icons for headers and prominent displays */
.platform-icon.large {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

/* Medium icons for cards and tables */
.platform-icon.medium {
    width: 24px;
    height: 24px;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar Navigation */
.sidebar {
    width: 250px;
    background-color: #0f1721;
    border-right: 1px solid #374151;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #41465a;
    border-radius: 8px;
}

.nav-item.active {
    background-color: #41465a;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 15px;
    background-color: #6b7280;
    color: #ffffff;
    border: 2px solid #6b7280;
}

.nav-item.active .nav-number {
    background-color: #6b7280;
    color: #ffffff;
    border: 2px dotted #ffffff;
}

.nav-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.nav-item.active .nav-text {
    color: #ffffff;
    font-weight: 600;
}

.nav-item.completed .nav-number {
    background-color: #6b7280;
    color: #ffffff;
    border: 2px solid #6b7280;
}

.nav-item.completed .nav-number i {
    font-size: 12px;
}

/* Steps Label Styling */
.steps-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0px 8px 8px 8px;
    padding: 8px 16px;
}

/* Cross Icon Styling */
.nav-cross {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin-right: 2px;
    color: #ffffff;
    line-height: 1;
    margin-top: -2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-cross:hover {
    transform: scale(1.2);
}

/* Marketing Plan Text Styling */
.nav-item .nav-text strong {
    font-size: 14px;
}

/* Remove hover effect for Create Marketing Plan nav item */
.nav-item:has(.nav-cross):hover {
    background-color: transparent;
}

/* Cancel Confirmation Modal */
.cancel-modal-12-overlay {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.cancel-modal-12-content {
    background-color: #0f1721;
    color: white;
    padding: 0;
    border-radius: 8px;
    width: 60%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cancel-modal-12-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f1721;
}

.cancel-modal-12-header h2 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.cancel-modal-12-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.cancel-modal-12-body {
    padding: 20px;
    background-color: #0f1721;
}

.cancel-modal-12-body p {
    margin: 0;
    color: white;
    line-height: 1.5;
}

.cancel-modal-12-actions {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #0f1721;
}

.cancel-modal-12-btn-cancel {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.cancel-modal-12-btn-confirm {
    background-color: #d33002;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    background-color: #414659;
    overflow-y: auto;
}

.step-content {
    display: none;
    width: 100%;
}

.step-content.active {
    display: block;
}

/* Header Section */
.header-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

#step5 .header-row h1 {
    color: #ffffff;
}

/* Special styling for step 0 header */
#step0 .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

#step0 .header .header-text {
    flex: 1;
    min-width: 300px;
}

#step0 .header .header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

#step0 .header .header-text p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.header p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-align: right;
    margin-left: auto;
}

/* Project Selection Dropdown */
.project-selection {
    margin-bottom: 30px;
}

.project-selection label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .dropdown {
        padding: 8px 12px;
        font-size: 12px;
        max-width: 100%;
    }

    .dropdown.active {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }

    .dropdown-menu {
        min-width: 280px;
        max-width: 95vw;
        max-height: 50vh;
        top: calc(100% + 1px);
    }

    .search-container {
        padding: 6px 10px;
    }

    .search-input {
        padding: 5px 8px 5px 25px;
        font-size: 12px;
    }

    .search-icon {
        left: 16px;
        font-size: 10px;
    }

    .dropdown-option {
        padding: 8px 10px;
        font-size: 12px;
    }

    .projects-list {
        max-height: calc(50vh - 50px);
    }

    .project-selection label {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .dropdown {
        padding: 6px 10px;
        font-size: 11px;
        max-width: 100%;
    }

    .dropdown.active {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }

    .dropdown-menu {
        min-width: 260px;
        max-width: 98vw;
        max-height: 45vh;
        top: calc(100% + 1px);
    }

    .search-container {
        padding: 5px 8px;
    }

    .search-input {
        padding: 4px 6px 4px 22px;
        font-size: 11px;
    }

    .search-icon {
        left: 14px;
        font-size: 9px;
    }

    .dropdown-option {
        padding: 6px 8px;
        font-size: 11px;
    }

    .projects-list {
        max-height: calc(45vh - 45px);
    }
}

.dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: #1f2937;
    cursor: pointer;
    font-size: 13px;
    color: #ffffff;
    max-width: 400px;
    width: 100%;
    position: relative;
    transition: border-color 0.3s ease;
}

.dropdown.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown span {
    font-weight: 500;
}

.dropdown i {
    color: #6c757d;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 60vh;
    overflow: hidden;
    display: none;
    min-width: 300px;
    max-width: 90vw;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.search-container {
    position: relative;
    padding: 8px 12px;
    border-bottom: 1px solid #374151;
    background-color: #101721;
}

.search-input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1px solid #374151;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #1f2937;
    color: #ffffff;
}

.search-input:focus {
    border-color: #6161ff;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 11px;
}

.projects-list {
    max-height: calc(60vh - 60px);
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #374151;
    font-size: 13px;
    color: #ffffff;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #374151;
}

.dropdown-option:active {
    background-color: #292e3c;
}

/* Project Summary Section */
.project-summary-section {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-header h3 {
    margin: 0;
}

.btn-reload-data {
    width: auto;
    height: auto;
    background-color: transparent;
    color: #9333ea;
    border: none;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.3s ease;
    padding: 0;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.btn-reload-data:hover {
    color: #7c3aed;
}

.btn-reload-data:active {
    color: #6d28d9;
}

.btn-reload-data i {
    font-size: 14px;
}

.project-summary-section h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.summary-loading {
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.summary-loading i {
    margin-right: 8px;
    color: #007bff;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item label {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.summary-item span {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    margin-bottom: 0;
}

.summary-info {
    text-align: center;
    padding: 20px;
    color: #ffffff;
    background: transparent;
    border: none;
}

.summary-info i {
    margin-right: 8px;
    color: #666;
}

.summary-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #1f2937;
    border-radius: 4px;
    border: 1px solid #374151;
}

.summary-error i {
    margin-right: 8px;
}

/* Project Details */
.project-details {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-item {
    padding: 8px 0;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

/* Upload CP Data Section */
.upload-cp-data-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-upload-cp {
    display: inline-flex !important; /* Force display with !important */
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    color: white;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-upload-cp:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-upload-cp svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.upload-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    flex: 1;
}

.upload-info i {
    color: #ffffff;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Launch Section */
.launch-section {
    margin-bottom: 30px;
}

.question {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    background-color: #ffffff;
}

.radio-item input[type="radio"]:checked+.radio-custom {
    border-color: #6161ff;
    background-color: #6161ff;
}

.radio-item input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* Date Inputs */
.date-inputs {
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.date-inputs .input-group {
    flex: 0 1 50%;
    min-width: 0;
    max-width: 220px;
}

.input-group {
    flex: 1;
    margin-bottom: 0;
    max-width: 220px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.date-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #374151;
    border-radius: 8px;
    background-color: #1f2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.date-input input,
.flatpickr-input {
    flex: 1;
    padding: 18px 50px 18px 20px; 
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #ffffff;
    background-color: transparent;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

/* Hide the native date picker icon */
.date-input input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

/* Calendar icon styling - make it clickable */
.date-input .fa-calendar {
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.date-input .fa-calendar:hover {
    color: #ffffff;
}

.date-input input[type="date"]::-webkit-inner-spin-button,
.date-input input[type="date"]::-webkit-outer-spin-button {
    display: none;
}

/* Dark mode styling for date picker calendar */
.date-input input[type="date"]::-webkit-calendar-picker {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
}

/* Firefox date picker styling */
.date-input input[type="date"]::-moz-calendar-picker {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
}

/* Custom date picker popup styling */
.date-input input[type="date"]::-webkit-datetime-edit {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.date-input input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.date-input input[type="date"]::-webkit-datetime-edit-text {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.date-input input[type="date"]::-webkit-datetime-edit-month-field,
.date-input input[type="date"]::-webkit-datetime-edit-day-field,
.date-input input[type="date"]::-webkit-datetime-edit-year-field {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

/* Calendar popup styling */
.date-input input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.8);
}

/* Additional dark mode overrides for better compatibility */
.date-input input[type="date"] {
    color-scheme: dark;
}

/* Global dark mode for date picker calendars */
input[type="date"]::-webkit-calendar-picker {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.8);
}

/* Ensure the calendar popup itself is dark */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) brightness(1);
}

/* Dark mode for the actual calendar popup */
input[type="date"]::-webkit-calendar-picker-indicator:focus {
    filter: invert(1) brightness(1);
}

/* Additional styling for next month dates in native date picker */
input[type="date"]::-webkit-calendar-picker td[data-next-month] {
    color: #9ca3af !important;
    background-color: #1f2937 !important;
}

input[type="date"]::-webkit-calendar-picker td[data-prev-month] {
    color: #6b7280 !important;
    background-color: #111827 !important;
}

/* Ensure all non-current month dates have consistent styling */
input[type="date"]::-webkit-calendar-picker td:not([data-current-month]) {
    color: #6b7280 !important;
    background-color: #111827 !important;
}

/* Force dark mode for all calendar elements */
input[type="date"]::-webkit-calendar-picker * {
    color-scheme: dark !important;
}

/* Specific styling for calendar navigation and month/year display */
input[type="date"]::-webkit-calendar-picker .calendar-header {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker .calendar-nav {
    background-color: #374151 !important;
    color: #ffffff !important;
}

/* Ensure next/previous month arrows are visible */
input[type="date"]::-webkit-calendar-picker .calendar-nav button {
    background-color: #374151 !important;
    color: #ffffff !important;
    border: 1px solid #6b7280 !important;
}

.date-input input:focus,
.flatpickr-input:focus {
    outline: none;
    border: none;
}

.date-input:focus-within {
    border-color: #6161ff;
    box-shadow: 0 0 0 2px rgba(97, 97, 255, 0.25);
}

.date-input input::placeholder {
    color: #6c757d;
}

.date-input:hover i {
    color: #6161ff;
}

.date-input input[data-selected] {
    background-color: #1f2937;
}

.date-input input[data-selected]+i {
    color: #6161ff;
}

.date-input i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    color: #6c7280;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
    line-height: 1;
}

.date-input:hover i {
    color: #6161ff;
}

/* Flatpickr calendar styling for dark theme */
.flatpickr-calendar {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-months {
    background: #0f1721 !important;
    color: #ffffff !important;
    overflow: visible !important;
    border-radius: 8px 8px 0 0 !important;
}

.flatpickr-calendar .flatpickr-month {
    color: #ffffff !important;
    overflow: visible !important;
}

.flatpickr-calendar .flatpickr-current-month {
    overflow: visible !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #414658 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg,
.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
    fill: #414658 !important;
    stroke: #414658 !important;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover,
.flatpickr-months .flatpickr-prev-month:focus-visible,
.flatpickr-months .flatpickr-next-month:focus-visible {
    color: #F7F7F9 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg path,
.flatpickr-months .flatpickr-next-month:hover svg path,
.flatpickr-months .flatpickr-prev-month:focus-visible svg path,
.flatpickr-months .flatpickr-next-month:focus-visible svg path {
    fill: #F7F7F9 !important;
    stroke: #F7F7F9 !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none !important;
}

.flatpickr-calendar.static {
    top: auto !important;
}

.flatpickr-calendar .flatpickr-innerContainer {
    margin-top: 0 !important;
    top: 0 !important;
     overflow: hidden !important; 
}





/* Ensure month and year dropdowns are visible and show all options */
.flatpickr-monthDropdown-months {
    display: inline-block !important;
    background: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    min-width: 120px !important;
    font-size: 14px !important;
    z-index: 1001 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    min-height: 28px !important;
}

.flatpickr-monthDropdown-months:hover {
    border-color: #6161ff !important;
}

.flatpickr-monthDropdown-months:focus {
    outline: none !important;
    border-color: #6161ff !important;
    box-shadow: 0 0 0 2px rgba(97, 97, 255, 0.25) !important;
}

.flatpickr-monthDropdown-months option {
    background: #1f2937 !important;
    color: #ffffff !important;
    padding: 8px !important;
    display: block !important;
}

.flatpickr-current-year {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #1f2937 !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' stroke='%23ffffff' stroke-width='0.5' d='M8 12L2 4h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 14px 14px !important;
    color: #ffffff !important;
    border: 1px solid #374151 !important;
    padding: 4px 28px 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    min-width: 80px !important;
    font-size: 14px !important;
    z-index: 1001 !important;
    position: relative !important;
    margin-left: 8px !important;
}

/* Hide native dropdown arrow for all browsers */
.flatpickr-current-year::-ms-expand {
    display: none !important;
}

.flatpickr-current-year:hover {
    border-color: #6161ff !important;
}

.flatpickr-current-year:focus {
    outline: none !important;
    border-color: #6161ff !important;
    box-shadow: 0 0 0 2px rgba(97, 97, 255, 0.25) !important;
}

.flatpickr-current-year option {
    background: #1f2937 !important;
    color: #ffffff !important;
    padding: 8px !important;
    display: block !important;
}

.flatpickr-calendar .flatpickr-weekdays {
    background: #0f1721 !important;
}
.flatpickr-calendar .flatpickr-weekday {
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day {
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day:hover {
    background: #374151 !important;
    border-color: #374151 !important;
}

.flatpickr-calendar .flatpickr-day.selected {
    background: #6161ff !important;
    border-color: #6161ff !important;
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day.flatpickr-disabled {
    color: #6b7280 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.flatpickr-calendar .flatpickr-day:not(.flatpickr-disabled) {
    pointer-events: auto !important;
}

/* Ensure year dropdown is always visible in flatpickr month header */
.flatpickr-month select.flatpickr-current-year,
.flatpickr-months select.flatpickr-current-year,
.flatpickr-month .flatpickr-current-year,
.flatpickr-months .flatpickr-current-year {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #1f2937 !important;
    padding-right: 28px !important;
    position: relative !important;
}

/* White arrow for all year dropdown selectors - using background image */
.flatpickr-month select.flatpickr-current-year,
.flatpickr-months select.flatpickr-current-year,
.flatpickr-month .flatpickr-current-year,
.flatpickr-months .flatpickr-current-year,
select.flatpickr-current-year {
    background-color: #1f2937 !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
    padding-right: 28px !important;
}

/* Hide native arrows for all year dropdown selectors */
.flatpickr-month select.flatpickr-current-year::-ms-expand,
.flatpickr-months select.flatpickr-current-year::-ms-expand,
.flatpickr-month .flatpickr-current-year::-ms-expand,
.flatpickr-months .flatpickr-current-year::-ms-expand {
    display: none !important;
}

.flatpickr-calendar .flatpickr-day:not(.flatpickr-disabled) {
    cursor: pointer !important;
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day:not(.flatpickr-disabled):hover {
    background: #374151 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay {
    color: #6b7280 !important;
}

.flatpickr-calendar .flatpickr-day.today {
    border-color: #6161ff !important;
    font-weight: 600 !important;
}

.flatpickr-calendar .flatpickr-day.today:not(.flatpickr-disabled) {
    color: #ffffff !important;
}

.flatpickr-calendar .flatpickr-time {
    border-top: 1px solid #374151 !important;
}

.flatpickr-calendar .flatpickr-time input {
    color: #ffffff !important;
    background: #1f2937 !important;
}

/* Flatpickr time input arrow buttons - white arrows */
.numInputWrapper span.arrowDown,
.numInputWrapper span.arrowUp {
    color: #ffffff !important;
    border: none !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* Down arrow - border-top creates the triangle */
.numInputWrapper span.arrowDown:after {
    border-top-color: #ffffff !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* Up arrow - border-bottom creates the triangle */
.numInputWrapper span.arrowUp:after {
    border-bottom-color: #ffffff !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
}

.numInputWrapper span.arrowDown svg,
.numInputWrapper span.arrowUp svg,
.numInputWrapper span.arrowDown svg path,
.numInputWrapper span.arrowUp svg path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.numInputWrapper span.arrowDown:hover,
.numInputWrapper span.arrowUp:hover {
    color: #6161ff !important;
    background: transparent !important;
}

.numInputWrapper span.arrowDown:hover:after {
    border-top-color: #6161ff !important;
}

.numInputWrapper span.arrowUp:hover:after {
    border-bottom-color: #6161ff !important;
}

.numInputWrapper span.arrowDown:hover svg,
.numInputWrapper span.arrowUp:hover svg,
.numInputWrapper span.arrowDown:hover svg path,
.numInputWrapper span.arrowUp:hover svg path {
    fill: #6161ff !important;
    stroke: #6161ff !important;
    color: #6161ff !important;
}




/* Target Inputs */
.target-inputs {
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-row:last-child {
    margin-bottom: 0;
}

.input-row .input-group {
    flex: 1;
}

/* Full width fields - make them fill complete width */
.input-row .input-group.full-width-field:only-child {
    flex: 1 1 100%;
}

/* Matching width fields - Overall Bookings Target, CP Launch Bookings Target, Total Campaign duration */
.input-row .input-group.full-width-field.matching-width-field:only-child {
    flex: 0 0 50%;
}

.input-row .input-group.full-width-field.matching-width-field:not(:only-child) {
    flex: 0 0 50%;
}

.input-row .input-group.full-width-field:not(:only-child) {
    flex: 1 1 0;
    min-width: 0;
}

.input-row .input-group.single-field {
    flex: 0 0 50%;
}

.input-row .input-group.right-align {
    margin-left: auto;
    flex: 0 0 50%;
}

.input-row .input-group.half-width {
    flex: 0 0 calc(50% - 10px);
}

.target-inputs input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
}

.target-inputs input:focus {
    outline: none;
    border-color: #6161ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.1);
}

.target-inputs input::placeholder {
    color: #6c757d;
}

.input-with-calculated {
    position: relative;
    display: flex;
    align-items: center;
}

.calculated-value-inline {
    position: absolute;
    right: 12px;
    font-size: 14px;
    color: #9da2af;
    font-weight: 500;
    pointer-events: none;
    z-index: 2;
    background: transparent;
}

/* Override Step 2 specific styling for calculated values */
#step2 .calculated-value-inline {
    color: #9da2af !important;
}

.input-with-calculated input {
    padding-right: 140px;
    background-color: #ffffff;
}

/* Remove up/down arrows from number inputs */
.input-with-calculated input[type="number"]::-webkit-inner-spin-button,
.input-with-calculated input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-calculated input[type="number"] {
    -moz-appearance: textfield;
}

.input-with-calculated input:focus {
    outline: none;
    border-color: #6161ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.1);
}

/* Metrics Table */
.metrics-table {
    margin-bottom: 30px;
}

.metrics-table h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.metrics-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.metrics-table th {
    background-color: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    border-bottom: 1px solid #e9ecef;
}

.metrics-table th:nth-child(2),
.metrics-table th:nth-child(3),
.metrics-table th:nth-child(4) {
    text-align: center;
}

.metrics-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #f8f9fa;
}

.metrics-table td:nth-child(2),
.metrics-table td:nth-child(3),
.metrics-table td:nth-child(4) {
    text-align: center;
}

.metrics-table tr:last-child td {
    border-bottom: none;
}

.user-input {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}

/* Predict Button */
.predict-btn {
    margin-bottom: 30px;
}

/* Assumptions */
.assumptions {
    margin-bottom: 30px;
}

.assumptions h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.assumptions ul {
    list-style: none;
    padding: 0;
}

.assumptions li {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.assumptions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6c757d;
}

/* Target Summary */
.target-summary {
    margin-bottom: 30px;
}

.target-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-row span {
    font-size: 14px;
    color: #333333;
}

/* CP Table */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a2e3c;
    color: #ffffff;

    border-radius: 8px;
    overflow: hidden;
    max-height: 1400px;
}

.cp-table th {
    background-color: #0f1721;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #535865;
    border-right: 1px solid #535865;
}

.cp-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #ffffff;
    border-bottom: 1px solid #535865;
    border-right: 1px solid #535865;
}

.cp-table td.campaign-name,
.cp-table td.campaign-sub-type {
    max-width: 200px;
    /* adjust as needed */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
}

.cp-table th,
.cp-table td {
    white-space: nowrap;
    padding: 12px 10px;
}

.cp-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-primary {
    background-color: #6161ff;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #1f2937;
    color: #ffffff;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-secondary i {
    font-size: 12px;
}

/* Section Headers with Action Buttons */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.btn-edit-media,
.btn-edit-calling {
    background-color: #6160ff;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-edit-media:hover,
.btn-edit-calling:hover {
    background-color: #4f4fd8;
}

.btn-edit-media i,
.btn-edit-calling i {
    font-size: 10px;
}

.section-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.section-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.section-content-row .section-description {
    margin-bottom: 0;
    flex: 1;
}

/* Step 3: Media Plan Styles */
.science-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

.science-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.science-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    resize: vertical;
    font-family: inherit;
}

.science-section textarea::placeholder {
    color: #6c757d;
}

/* Readonly textarea styling for Science Used */
.science-section textarea[readonly] {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    border-color: #374151 !important;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-y: auto;
    min-height: 120px;
}

.science-section textarea[readonly]:focus {
    outline: none !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

.budget-intent-section {
    margin-bottom: 30px;
}

.budget-intent-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.budget-options {
    display: flex;
    gap: 15px;
}

.budget-option {
    padding: 10px 20px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.budget-option.active {
    background-color: #6161ff;
    color: #ffffff;
    border-color: #6161ff;
}

.budget-option:hover:not(.active) {
    background-color: #374151;
}

.channel-media-plan {
    margin-bottom: 30px;
}

.channel-media-plan label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.channel-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a2e3c;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.channel-table th {
    background-color: #0f1721;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #535865;
    border-right: 1px solid #535865;
}

.channel-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #ffffff;
    border-bottom: 1px solid #535865;
    border-right: 1px solid #535865;
}

.channel-table tr:last-child td {
    border-bottom: none;
}

.change-agent {
    color: #6161ff;
    text-decoration: underline;
    font-size: 12px;
    margin-left: 8px;
}

.change-agent:hover {
    color: #0056b3;
}

.budget-summary {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.budget-row:last-child {
    margin-bottom: 0;
}

.budget-label {
    font-size: 14px;
    color: #333333;
}

.budget-row:first-child .budget-label {
    font-weight: 600;
}

.budget-value {
    font-size: 16px;
    color: #333333;
    font-weight: 600;
}

/* Approved budget value styling */
.budget-row:last-child .budget-value {
    color: #4bb953 !important;
}

/* Step 3 specific approved budget styling */
#step3 .budget-row:last-child .budget-value {
    color: #4bb953 !important;
}

.media-files-section {
    margin-bottom: 30px;
}

.media-files-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0;
}

.media-files-container {
    width: 100%;
    min-height: 180px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.media-files-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.media-files-list {
    display: flex;
    gap: 20px;
    min-width: max-content;
}

.media-file-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 200px;
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.media-file-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.media-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.media-file-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.media-file-icon {
    width: 40px;
    height: 40px;
    background-color: #6161ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    font-size: 18px;
}



.loading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    color: #6c757d;
    font-style: italic;
    width: 100%;
    font-size: 14px;
}

.media-file-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #dc3545;
    font-style: italic;
}

.voice-calling-section {
    margin-bottom: 30px;
}

.voice-agent-details {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.voice-header {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    text-align: left;
}

.info-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    margin-bottom: 7px;
    padding-left: 0;
}

.info-values-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    margin-bottom: 7px;
    padding-left: 0;
}

.voice-sample-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
}

.info-label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    flex: 1;
    text-align: left;
}

.info-value {
    color: #6c757d;
    font-size: 14px;
    flex: 1;
    text-align: left;
}

/* Style for loading text in info-value to match .loading class */
.info-value.loading-text {
    font-style: italic;
    font-size: 14px;
}

.voice-sample-container {
    flex: 2;
    display: flex;
    justify-content: flex-start;
}

.play-pause-btn {
    background-color: #ffffff;
    color: #6161ff;
    border: 2px solid #6161ff;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-pause-btn:hover {
    background-color: #6161ff;
    color: #ffffff;
}

.play-pause-btn.playing {
    background-color: #6161ff;
    color: #ffffff;
}

.content-types {
    margin-bottom: 30px;
}

.content-types label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.content-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.content-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-option:hover {
    /* Removed background color change on hover */
}

.content-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.content-option label {
    font-size: 14px;
    color: #333333;
    margin: 0;
    cursor: pointer;
}

.content-preview {
    margin-bottom: 30px;
}

.content-preview h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.preview-card {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #ffffff;
}

.preview-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.preview-card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .main-content {
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .input-row .input-group {
        flex: none;
        max-width: none;
    }
    
    .date-inputs .input-group {
        max-width: none;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .summary-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .budget-options {
        flex-direction: column;
        gap: 10px;
    }

    .content-options {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        grid-template-columns: 1fr;
    }

    .media-files-scroll {
        padding: 15px;
    }

    .media-files-list {
        gap: 15px;
    }

    .media-file-item {
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }

    .info-labels-row,
    .info-values-row,
    .voice-sample-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-label,
    .info-value {
        flex: none;
    }

    .voice-sample-container {
        flex: none;
        width: 100%;
    }

    .voice-sample-container audio {
        max-width: 100%;
    }

    .media-file-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .media-file-name {
        font-size: 11px;
    }

    .media-file-type {
        font-size: 9px;
    }

    .date-input input {
    }

    .date-input .fa-calendar {
        font-size: 13px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header h1 {
        font-size: 24px;
    }

    .project-name {
        font-size: 14px;
        text-align: right;
        margin-left: auto;
    }

}

/* Error highlighting styles */
.error-highlight {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-highlight:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Disabled button styles */
.btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-primary:disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Validation error messages */
.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Step validation indicator */
.step-validation {
    position: relative;
}

.step-validation::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
}

/* Mandatory field indicators */
.input-group label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Step 2 specific mandatory styling */
#step2 .input-group label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Step 2: Ensure 50-50 layout for input rows */
#step2 .input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#step2 .input-row .input-group {
    flex: 0 0 calc(50% - 10px) !important;
    min-width: 0 !important;
    max-width: none !important;
}

#step2 .input-row .input-group.full-width-field {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: none !important;
}

#step2 .input-row .input-group.full-width-field.matching-width-field {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: none !important;
}

#step2 .input-row .input-group:only-child {
    flex: 0 0 50% !important;
    max-width: none !important;
}

.step4-content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.brand-kit-container {
    flex: 2;
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.sample-preview-container {
    flex: 1;
    background: white;
    padding: 12px 24px 24px 24px;
    border-radius: 8px;
}

.sample-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
    margin-bottom: 0px;
}

.preview-card-sample {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
    margin: 0 auto 0 0;
    margin-top: 0px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: space-between;
}

.preview-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.preview-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.preview-subtitle {
    font-size: 14px;
    margin-bottom: 8px;
}

.preview-location {
    font-size: 14px;
    margin-bottom: 24px;
}

.preview-cta {
    margin-top: auto;
    margin-bottom: 24px;
}

.cta-button {
    background-color: #fc8181;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #f56565;
}

.preview-branding {
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
}

.branding-text {
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
    text-align: right;
}

.anarock-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.anarock-logo-img {
    height: 20px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Predict Audience button is now optional, so remove mandatory styling */

/* Enhanced Modal Styles for Placid Integration */
.edit-modal,
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Brand Kit Styles */
.brand-kit-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.color-swatches {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #0f1721;
}

.preview-image-container {
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.preview-image-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.preview-image-container img:hover {
    transform: scale(1.02);
}

/* Loading state for preview */
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
}

.preview-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6161ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preview-loading p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Enhanced edit modal styles */
.edit-modal .modal-body textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.edit-modal .modal-body textarea:focus {
    outline: none;
    border-color: #6161ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.1);
}

/* Preview actions styling */
.preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.preview-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.preview-actions .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Content type specific styling */
.preview-card[data-content-type="Social Media Post"] {
    border-left: 4px solid #007bff;
}

.preview-card[data-content-type="Email Template"] {
    border-left: 4px solid #28a745;
}

.preview-card[data-content-type="WhatsApp Messages"] {
    border-left: 4px solid #25d366;
}

.preview-card[data-content-type="Calling Scripts"] {
    border-left: 4px solid #ffc107;
}

/* Template selection modal styles */
.template-selection {
    margin-bottom: 20px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.template-option {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.template-option:hover {
    border-color: #6161ff;
    box-shadow: 0 4px 15px rgba(97, 97, 255, 0.15);
    transform: translateY(-2px);
}

.template-option:active {
    transform: translateY(0);
}

.template-preview {
    margin-bottom: 15px;
    text-align: center;
}

.template-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.template-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
}

.template-info p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Responsive template grid */
@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .template-option {
        padding: 12px;
    }

    .template-preview img {
        height: 120px;
    }
}

/* Enhanced edit modal styles */
.edit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.edit-section {
    padding-right: 20px;
    border-right: 1px solid #e5e5e5;
}

.template-section {
    padding-left: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus {
    outline: none;
    border-color: #6161ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.1);
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
}

.templates-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.templates-grid-small .template-option {
    padding: 10px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.templates-grid-small .template-option:hover {
    border-color: #6161ff;
    box-shadow: 0 2px 8px rgba(97, 97, 255, 0.15);
}

.templates-grid-small .template-option.active {
    border-color: #6161ff;
    background-color: #f7f7ff;
    box-shadow: 0 2px 8px rgba(97, 97, 255, 0.2);
}

.templates-grid-small .template-preview {
    margin-bottom: 8px;
    text-align: center;
}

.templates-grid-small .template-preview img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.templates-grid-small .template-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
    text-align: center;
}

.templates-grid-small .template-info p {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* Responsive design for enhanced edit modal */
@media (max-width: 768px) {
    .edit-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .edit-section {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 20px;
    }

    .template-section {
        padding-left: 0;
        padding-top: 20px;
    }

    .templates-grid-small {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* Brand Kit Styles */
.color-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}



.plus-icon {
    color: white;
    font-size: 24px;
    font-weight: 400;
    user-select: none;
}



.color-label {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.branding-section {
    margin-top: 16px;
}

/* Brand Logo Upload Section */
.brand-logo-section {
    margin-top: 24px;
    margin-bottom: 24px;
}


.branding-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.brand-kit-container .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-kit-container .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 0;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    padding-left: 6px;
}

.brand-kit-container .radio-option:hover {
    /* Removed background color change on hover */
}

.brand-kit-container .radio-input {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.brand-kit-container .radio-input.checked {
    border-color: #3182ce;
    background-color: #3182ce;
}

.brand-kit-container .radio-input.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.brand-kit-container .radio-label {
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    user-select: none;
}

.color-picker-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .step4-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .brand-kit-container {
        padding: 16px;
    }

    .sample-preview-container {
        padding: 16px;
    }

    .brand-kit-title,
    .sample-preview-title {
        font-size: 14px;
    }

    .color-swatches {
        justify-content: center;
        gap: 16px;
    }

    .color-circle {
        width: 60px;
        height: 60px;
    }

    .preview-card-sample {
        min-height: 400px;
        padding: 16px;
    }

    .preview-title {
        font-size: 16px;
    }

    .preview-header {
        font-size: 14px;
    }

    .anarock-logo-img {
        height: 16px;
        max-width: 100px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.lottie-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-text h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .loading-content {
        padding: 30px 20px;
        max-width: 350px;
    }

    .lottie-container {
        width: 150px;
        height: 150px;
    }

    .loading-text h3 {
        font-size: 20px;
    }

    .loading-text p {
        font-size: 14px;
    }
}

.fallback-spinner {
    text-align: center;
}

.fallback-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.fallback-spinner p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Campaign Calendar Styles */
.campaign-list-section {
    margin-bottom: 30px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.campaign-list-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.view-toggle-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #2a2e3c;
    background-color: #2a2e3c;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-toggle-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e0;
}

.view-toggle-btn.active {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.view-toggle-btn i {
    font-size: 16px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #2a2e3c;
    background-color: #2a2e3c;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

.download-btn:hover {
    background-color: #2a2e3c;
    border-color: #2a2e3c;
    color: #ffffff;
}

/* Tabular View Styles */
.tabular-view {
    background-color: #2a2e3c;
    border-radius: 12px;
    border: 1px solid #535865;
    overflow: hidden;
    max-height: 70vh;
    overflow: auto;
    overscroll-behavior: contain;
}

.table-container {
    overflow-x: auto;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.campaign-table {
    min-width: 1200px;
    /* Ensure table has minimum width for better readability */
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #ffffff;
}

.campaign-table th {
    background-color: #f8fafc;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.campaign-table th:hover {
    background-color: #f1f5f9;
}

.campaign-table th i {
    margin-left: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.campaign-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.campaign-table tr:hover {
    background-color: #f9fafb;
}

.campaign-table tr:last-child td {
    border-bottom: none;
}

/* Column width constraints for better readability */
.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) {
    width: 80px;
    min-width: 80px;
}

.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2),
.campaign-table th:nth-child(3),
.campaign-table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
}

.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) {
    width: 80px;
    min-width: 80px;
}

.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) {
    width: 120px;
    min-width: 120px;
}

.campaign-table th:nth-child(6),
.campaign-table td:nth-child(6) {
    width: 200px;
    min-width: 200px;
}

.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7),
.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
    width: 150px;
    min-width: 150px;
}

.campaign-table th:nth-child(9),
.campaign-table td:nth-child(9) {
    width: 180px;
    min-width: 180px;
}

.campaign-table th:nth-child(10),
.campaign-table td:nth-child(10) {
    width: 100px;
    min-width: 100px;
}

.campaign-table th:nth-child(11),
.campaign-table td:nth-child(11) {
    width: 120px;
    min-width: 120px;
}

.campaign-table th:nth-child(12),
.campaign-table td:nth-child(12) {
    width: 140px;
    min-width: 140px;
}

/* Channel column styling - plain text */
.campaign-table td:nth-child(5) {
    font-weight: 500;
    color: #374151;
}

.view-approve-btn {
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.view-approve-btn:hover {
    color: #4f46e5;
}

.status-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-toggle-btn:hover {
    background-color: #f3f4f6;
}

.status-toggle-btn i {
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.status-toggle-btn.completed i {
    color: #6366f1;
}

.status-toggle-btn:not(.completed):hover i {
    color: #6b7280;
}

/* Calendar View Styles */
.calendar-view {
    background-color: #292e3d;
    border-radius: 12px;
    border: 1px solid #393d4e;
    padding: 20px;
    height: auto;
    overflow: visible;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #0f1721;
}

.calendar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.calendar-nav-prev,
.calendar-nav-next {
    background: #2a2e3c;
    border: 1px solid #0f1721;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calendar-nav-prev:hover,
.calendar-nav-next:hover {
    background-color: #2a2e3c;
    border-color: #0f1721;
    color: #ffffff;
}

#calendarContainer,
.calendar-grid {
    position: relative;
    overflow: hidden;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #2a2e3c;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.calendar-day-header {
    background-color: #2a2e3c;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #0f1721;
    border-right: 1px solid #0f1721;
}

.day-number {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.day-name {
    display: block;
    font-size: 12px;
    color: #ffffff;
    margin-top: 2px;
}

.calendar-content {
    display: block;
    /* or flex; or grid + 1 column */
    /* Optional if you like the grid utilities */
    /* display:grid;
       grid-template-columns:1fr;  */

    grid-auto-rows: minmax(100px, auto);
    /* keep our row rule */
    gap: 1px;
    background-color: #2a2e3c;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

#calendarContainer,
.calendar-grid,
.calendar-content {
    position: relative;
    overflow: visible;
    height: auto;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    min-height: 100px;
}

.calendar-cell {
    position: relative;
    /* anchor for the tooltip */
    background-color: #2a2e3c;
    padding: 8px;
    border-right: 1px solid #0f1721;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell.empty {
    background-color: #2a2e3c;
}


.calendar-cell.campaign-cell {
    /* occupy the exact grid track width (incl. padding/borders) */
    box-sizing: border-box;
    width: 100%;
    /* keep inside the span */
    padding: 4px;
    /* previous value retained */

    /* make card stretch perfectly */
    align-items: stretch;
    justify-content: stretch;
    position: relative;
}

.calendar-cell:last-child {
    border-right: none;
}

.calendar-cell:nth-child(7n) {
    border-right: none;
}

.calendar-row:last-child .calendar-cell {
    border-bottom: none;
}

.campaign-card {
    background-color: #f8fafc;
    border-left: 4px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;

    cursor: pointer;
    transition: all .2s ease;

    /* sizing & layout */
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* keeps borders inside span */

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.campaign-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.campaign-card.whatsapp {
    background-color: #dcfce7;
    border-left-color: #25d366;
}

.campaign-card.meta {
    background-color: #dbeafe;
    border-left-color: #1877f2;
}

.campaign-card.google {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
}

.campaign-card.genie-calling {
    background-color: #e0e7ff;
    border-left-color: #6366f1;
}







.campaign-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.campaign-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    flex: 1;
    margin-right: 4px;
    padding-left: 4px;
}

.campaign-card-header i {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

.campaign-card-details {
    margin-bottom: 6px;
}

.campaign-time {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campaign-cost {
    font-size: 10px;
    font-weight: 600;
    color: #059669;
}

/* Campaign actions removed - edit button now inline with date */

.campaign-card .view-approve-btn {
    font-size: 10px;
    padding: 4px 8px;
    color: #6366f1;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.campaign-card .view-approve-btn:hover {
    color: #4f46e5;
}

.campaign-card .status-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-card .status-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.campaign-card .status-toggle-btn i {
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.campaign-card .status-toggle-btn.completed i {
    color: #6366f1;
}

.campaign-card .status-toggle-btn:not(.completed):hover i {
    color: #6b7280;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #0f1721;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ffffff;
}

.legend-item i,
.legend-item .platform-icon {
    font-size: 14px;
    margin-right: 8px;
}

.legend-item .platform-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.legend-item i.fa-whatsapp {
    color: #25d366;
}

.legend-item i.fa-facebook {
    color: #1877f2;
}

.legend-item i.fa-google {
    color: #4285f4;
}

.legend-item i.fa-phone {
    color: #6366f1;
}

.legend-item i.fa-check-circle {
    color: #6366f1;
}

.legend-item i.fa-clock {
    color: #f59e0b;
}

.legend-item i.fa-circle {
    color: #9ca3af;
}

/* Cost Calculation Section */
.cost-calculation-section {
    background-color: #414659;
    padding: 20px;
    margin-bottom: 72px;
}

.cost-calculation-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 1px solid #ffffff;
}

.cost-calculation-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cost-calculation-section li {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.cost-calculation-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.cost-calculation-section li:last-child {
    margin-bottom: 0;
}

/* Campaign Details Modal */
.campaign-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Edit Date/Time Modal */
.edit-datetime-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.edit-datetime-modal .modal-content {
    background-color: #2a2e3c;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.edit-datetime-modal .modal-content .modal-header {
    background: #2a2e3c !important;
    padding: 20px 24px 0;
    border-bottom: 1px solid #0f1721;
    margin-bottom: 20px;
}

.edit-datetime-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.edit-datetime-modal .modal-body {
    padding: 0 24px 24px;
}

.datetime-form {
    margin-bottom: 20px;
}

.datetime-form .form-group {
    margin-bottom: 16px;
}

.datetime-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.datetime-form .date-input {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.datetime-form .date-input input {
    width: 100%;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 14px;
    color: #ffffff;
    background-color: #2a2e3c;
    transition: border-color 0.2s ease;
}

.datetime-form .date-input input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.datetime-form .date-input input::placeholder {
    color: #ffffff;
}

.datetime-form .date-input i {
    position: absolute;
    color: #ffffff;
    pointer-events: none;
}

.datetime-form .date-input .calendar-icon {
    pointer-events: auto !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.datetime-form .date-input .calendar-icon:hover {
    color: #6366f1;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input select {
    padding: 8px 12px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 14px;
    color: #ffffff;
    background-color: #2a2e3c;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.time-input select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.time-input select:hover {
    border-color: #6366f1;
}

/* Enhanced time picker styling */
.time-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-input select {
    min-width: 60px;
    text-align: center;
}

.time-separator {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.am-pm-buttons {
    display: flex;
    gap: 4px;
}

.am-pm-btn {
    padding: 8px 12px;
    border: 1px solid #ffffff;
    background-color: #2a2e3c;
    color: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.am-pm-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.am-pm-btn.active {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

/* Edit datetime button styles */
.edit-datetime-btn {
    font-size: 14px;
    padding: 4px 8px;
    color: #6366f1;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.edit-text {
    margin-right: 4px;
}

.edit-datetime-btn:hover {
    color: #4f46e5;
}

.edit-action-btn {
    display: flex;
    align-items: center;
}

.campaign-card .edit-datetime-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-card .edit-datetime-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.campaign-info-card {
    /* visual */
    background-color: #1f1f1f;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);

    /* 🔧 fix: float outside normal flow so it never
               pushes the row height                */
    position: absolute;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    left: 50%;

    width: 260px;
    max-width: 260px;

    z-index: 50;
    pointer-events: none;
    /* keeps hover on the parent */
    display: none;
}

/* If not enough room below, flip above */
.campaign-info-card.tooltip-flip-up {
    top: auto;
    bottom: calc(100% + 8px);
    /* above the card */
    transform: translateX(-50%);
}

.calendar-cell.campaign-cell:hover .campaign-info-card {
    display: block;
}

.campaign-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    border-radius: 10px;
    background-color: #2b2b2b;
    padding: 10px;
}

.campaign-label {
    font-size: 10px;
    color: #bbb;
    margin-bottom: 4px;
}

.campaign-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.campaign-icon {
    margin-left: 8px;
    align-self: flex-start;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}



.campaign-details-modal .modal-content {
    background-color: #2a2e3c;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.campaign-details-modal .modal-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid #0f1721;
    margin-bottom: 20px;
}

.campaign-details-modal .modal-body {
    padding: 0 24px 24px;
}

/* Campaign identity bar used in edit date/time modals */
.modal-campaign-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #e7f7ec;
    /* soft green like screenshot */
    border: 1px solid #c9eed5;
    margin-bottom: 16px;
}

.modal-campaign-identity .badge-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    /* deep green label */
    opacity: 0.85;
    margin-bottom: 4px;
}

.modal-campaign-identity .name-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.modal-campaign-identity .identity-type {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.modal-campaign-identity .identity-type .platform-icon {
    width: 18px;
    height: 18px;
}

.modal-campaign-identity.whatsapp {
    background-color: #dcfce7;
}

.modal-campaign-identity.meta {
    background-color: #dbeafe;
}

.modal-campaign-identity.google {
    background-color: #fef3c7;
}

.modal-campaign-identity.genie-calling {
    background-color: #e0e7ff;
}



.campaign-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.detail-value {
    color: #6b7280;
    font-size: 14px;
    text-align: right;
}

.detail-value.status-active {
    color: #6366f1;
}

.detail-value.status-approved {
    color: #6366f1;
}

.detail-value.status-draft {
    color: #6b7280;
}

#bottomActionBar {
    position: fixed;
    left: 250px;
    /* matches sidebar width */
    right: 0;
    bottom: 0;
    background: #414659;
    border-top: 1px solid #66707f;
    padding: 12px 24px;
    z-index: 999;
    display: none;
}

#step5 #bottomActionBar {
    display: flex;
}

/* Three-slot layout */
.bottom-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    width: 100%;
}

.bar-left {
    flex: 0 0 auto;
}

.bar-right {
    margin-left: auto;
}

.bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    color: #ffffff;
}

.bar-center .approval-count {
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

#step5 #bottomActionBar .btn-secondary,
#step5 .modal-actions .btn-secondary {
    background-color: #414659 !important;
    border: none;
    color: #ffffff;
}

/* Optional: small-screen tweaks */
@media (max-width: 720px) {
    #bottomActionBar {
        left: 0;
        padding: 10px 12px;
    }

    .bar-center .approval-count {
        font-size: 14px;
    }
}

.approval-count {
    font-weight: 600;
    color: #333333;
}

.calendar-card .calendar-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    #bottomActionBar {
        left: 0;
    }

    .view-toggle-container {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .view-toggle-btn,
    .download-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .download-btn {
        margin-left: 0;
        flex-basis: 100%;
    }

    .campaign-table {
        font-size: 12px;
    }

    .campaign-table th,
    .campaign-table td {
        padding: 12px 8px;
    }

    .calendar-row {
        min-height: 80px;
    }

    .calendar-cell {
        padding: 6px;
    }

    .campaign-card {
        padding: 6px;
    }

    .campaign-name {
        font-size: 10px;
    }

    .campaign-time,
    .campaign-cost {
        font-size: 9px;
    }

    .campaign-actions {
        margin-top: 4px;
    }

    .campaign-card .edit-datetime-btn {
        font-size: 9px;
    }

    .campaign-card .status-toggle-btn i {
        font-size: 10px;
    }

    .calendar-legend {
        gap: 12px;
    }

    .legend-item {
        font-size: 11px;
    }

    .campaign-details-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    .edit-datetime-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    .time-input {
        flex-direction: column;
        gap: 12px;
    }

    .time-input select {
        min-width: 80px;
        width: 100%;
    }

    .am-pm-buttons {
        justify-content: center;
        width: 100%;
    }

    .am-pm-btn {
        flex: 1;
        max-width: 80px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {

    .view-toggle-btn,
    .download-btn {
        flex-basis: calc(50% - 4px);
        min-width: auto;
    }

    .download-btn {
        flex-basis: 100%;
    }

    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-content {
        grid-template-rows: repeat(auto-fit, minmax(80px, auto));
    }

    .calendar-row {
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-day-header {
        padding: 8px 4px;
    }

    .day-number {
        font-size: 14px;
    }

    .day-name {
        font-size: 10px;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 8px;
    }
}

/* Step 0: Marketing Plans List Styles */
#step0 {
    background-color: #414557;
    color: #ffffff;
}

#step0 .main-content {
    background-color: #414557;
}

/* Override body and container for step 0 only */
body.step0-active {
    background-color: #414557;
    color: #ffffff;
}

body.step0-active .container {
    background-color: #414557;
}

/* Force dark theme for step 0 page */
body:has(#step0.active) {
    background-color: #414557 !important;
    color: #ffffff !important;
}

body:has(#step0.active) .container {
    background-color: #414557 !important;
}

body:has(#step0.active) .main-content {
    background-color: #414557 !important;
}

/* Remove any potential borders from step 0 */
#step0,
#step0 .main-content,
#step0 .container,
#step0 .step-content {
    border: none !important;
    outline: none !important;
}

/* Step 2: Target - White text styling */
#step2 {
    color: #ffffff;
}

/* Force dark theme for step 2 page */
body:has(#step2.active) {
    background-color: #414557 !important;
    color: #ffffff !important;
}

body:has(#step2.active) .container {
    background-color: #414557 !important;
}

body:has(#step2.active) .main-content {
    background-color: #414557 !important;
}

/* Step 3: Media Plan - White text styling */
#step3 {
    color: #ffffff;
}

/* Force dark theme for step 3 page */
body:has(#step3.active) {
    background-color: #414557 !important;
    color: #ffffff !important;
}

body:has(#step3.active) .container {
    background-color: #414557 !important;
}

body:has(#step3.active) .main-content {
    background-color: #414557 !important;
}

#step3 h1,
#step3 h2,
#step3 h3,
#step3 h4,
#step3 p,
#step3 label,
#step3 span,
#step3 td,
#step3 th,
#step3 li {
    color: #ffffff !important;
}

#step3 .assumptions h4 {
    color: #ffffff !important;
}

#step3 .assumptions ul li {
    color: #ffffff !important;
}

#step3 .project-name {
    color: #ffffff !important;
}

#step2 h1,
#step2 h2,
#step2 h3,
#step2 h4,
#step2 p,
#step2 label,
#step2 span,
#step2 td,
#step2 th,
#step2 li {
    color: #ffffff !important;
}

#step2 input,
#step2 select,
#step2 textarea {
    background-color: #414557 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

#step2 input::placeholder,
#step2 select::placeholder,
#step2 textarea::placeholder {
    color: #9ca3af !important;
}

#step2 .cp-table {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
}

#step2 .metrics-table {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

#step2 .metrics-table table {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    overflow: hidden;
}


#step2 .metrics-table table {
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

#step2 .metrics-table th,
#step2 .cp-table th {
    background-color: #101721 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #374151 !important;
}

#step2 .metrics-table tr,
#step2 .cp-table tr {
    background-color: #292e3c !important;
}

#step2 .metrics-table td,
#step2 .cp-table td {
    color: #ffffff !important;
    border-bottom: 1px solid #374151 !important;
}

#step2 .metrics-table tr:hover,
#step2 .cp-table tr:hover {
    background-color: #374151 !important;
}

#step2 .assumptions {
    color: #ffffff !important;
}

#step2 .assumptions ul li {
    color: #ffffff !important;
}

#step2 .user-input {
    color: #6362ff !important;
    font-weight: 600;
}

#step2 .project-name {
    color: #ffffff !important;
}

#step2 .btn-secondary {
    background-color: #414557 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* Step 4: Brand Kit - White text styling */
#step4 {
    color: #ffffff;
}

#step4 h1,
#step4 h2,
#step4 h3,
#step4 h4,
#step4 p,
#step4 label,
#step4 span,
#step4 td,
#step4 th,
#step4 li {
    color: #ffffff !important;
}

#step4 input,
#step4 select,
#step4 textarea {
    background-color: #414557 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

#step4 input::placeholder,
#step4 select::placeholder,
#step4 textarea::placeholder {
    color: #9ca3af !important;
}

#step4 .brand-kit-container,
#step4 .sample-preview-container {
    background-color: #414557 !important;
    border: 1px solid #374151 !important;
}

#step4 .preview-card-sample {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e5e5e5 !important;
}

#step4 .color-circle {
    border: none !important;
}

#step4 .color-circle.primary {
    border: 3px solid #478489 !important;
}

#step4 .color-circle.secondary {
    border: 3px solid #93a4a4 !important;
}

#step4 .color-circle.accent {
    border: 3px solid #ce5d60 !important;
}

#step4 .color-circle.primary {
    background-color: #292d3b !important;
}

#step4 .color-circle.secondary {
    background-color: #292d3b !important;
}

#step4 .color-circle.accent {
    background-color: #292d3b !important;
}

#step4 .color-circle.primary .plus-icon {
    color: #478489 !important;
    font-weight: 600 !important;
}

#step4 .color-circle.secondary .plus-icon {
    color: #93a4a4 !important;
    font-weight: 600 !important;
}

#step4 .color-circle.accent .plus-icon {
    color: #ce5d60 !important;
    font-weight: 600 !important;
}

#step4 .color-label {
    color: #ffffff !important;
}

#step4 .branding-title {
    color: #ffffff !important;
}

.branding-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.logo-info-icon i {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.logo-info-icon:hover i {
    color: #ffffff;
}

.logo-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background-color: #374151;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #374151 transparent transparent transparent;
}

.logo-info-icon:hover .logo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Brand Logo Section - New Design */
.brand-logo-section {
    margin-bottom: 30px;
}

.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap */
    margin-top: 15px;
}

.logo-preview-area {
    width: 120px !important; /* Increased from 80px */
    height: 120px !important; /* Increased from 80px */
    border: 2px dashed #ffffff !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #6b7280 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important; /* Prevent shrinking */
}

.logo-preview-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.logo-preview-corner-icon {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    font-size: 16px !important;
    color: #60a5fa !important;
    opacity: 0.8 !important;
    z-index: 10 !important;
}

.logo-preview-center-icon {
    width: 70px !important;
    height: 50px !important;
    background-color: #6b7280 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.logo-preview-center-icon i {
    font-size: 28px !important;
    color: #ffffff !important;
}

.logo-preview-text {
    font-size: 12px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.logo-preview-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.logo-upload-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-upload-button-container {
    cursor: pointer;
    position: relative;
    max-width: 180px; 
    z-index: 5; 
    pointer-events: auto; 
}

.upload-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #374151;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 160px;
    text-align: center;
    color: #ffffff;
}

.upload-box:hover {
    background-color: #4b5563;
    border-color: #9ca3af;
    color: #ffffff;
}

.upload-box i {
    font-size: 24px;
}

.upload-box span {
    font-size: 14px;
    font-weight: 500;
}

.uploaded-status {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    font-style: italic;
    white-space: nowrap;
}

.btn-upload-logo {
    background-color: #374151;
    color: white;
    border: 1px solid #4b5563;
    padding: 10px 16px; /* Reduced padding */
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px; /* Reduced from 14px */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 10; /* Ensure button is clickable */
    pointer-events: auto; /* Ensure button can be clicked */
}

.btn-upload-logo:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-upload-logo:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-upload-logo i {
    font-size: 14px; /* Reduced from 16px */
}

/* Dark theme adjustments for step4 */
#step4 .logo-preview-area {
    background-color: #ffffff;
    border-color: #ffffff;
}

#step4 .logo-preview-placeholder {
    color: #ffffff;
}

#step4 .logo-preview-corner-icon {
    color: #60a5fa;
}

#step4 .logo-preview-center-icon {
    background-color: #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#step4 .logo-preview-center-icon i {
    color: #ffffff;
}

#step4 .logo-preview-text {
    color: #ffffff;
}

/* Force override for logo preview design */
#logoPreviewArea {
    background-color: #ffffff !important;
    border: 2px dashed #ffffff !important;
    width: 120px !important;
    height: 120px !important;
}

#logoPreviewPlaceholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

#logoPreviewPlaceholder .logo-preview-corner-icon {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    font-size: 16px !important;
    color: #60a5fa !important;
    opacity: 0.8 !important;
    z-index: 10 !important;
}

#logoPreviewPlaceholder .logo-preview-center-icon {
    width: 80px !important;
    height: 60px !important;
    background-color: #6b7280 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

#logoPreviewPlaceholder .logo-preview-center-icon i {
    font-size: 32px !important;
    color: #ffffff !important;
}

#logoPreviewPlaceholder .logo-preview-text {
    font-size: 13px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

div#logoPreviewArea.logo-preview-area {
    background-color: #6b7280 !important;
    border: 2px dashed #ffffff !important; 
    width: 120px !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

div#logoPreviewPlaceholder.logo-preview-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    gap: 8px !important;
}

div#logoPreviewPlaceholder::before {
    content: '\f03e' !important; 
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    color: #9ca3af !important;
    display: block !important;
}

div#logoPreviewPlaceholder .logo-preview-text {
    font-size: 12px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}
#logoPreviewPlaceholder .logo-preview-corner-icon,
#logoPreviewPlaceholder .logo-preview-center-icon {
    display: none !important;
}

#step4 .btn-upload-logo {
    background-color: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

#step4 .btn-upload-logo:hover {
    background-color: #4b5563;
    border-color: #6b7280;
}

/* Optional: Add hover effect to the entire container */
.logo-upload-button-container:hover .btn-upload-logo {
    background-color: #4b5563;
    border-color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#step4 .radio-label {
    color: #ffffff !important;
}

#step4 .radio-input {
    border: 2px solid #ffffff !important;
}

#step4 .radio-input.checked {
    border-color: #6362ff !important;
    background-color: #6362ff !important;
}

#step4 .btn-edit-media,
#step4 .btn-edit-calling,
#step4 .btn-secondary {
    background-color: #414557 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

#step4 .btn-primary {
    background-color: #6362ff !important;
    color: #ffffff !important;
    border: 1px solid #6362ff !important;
}

#step4 .media-files-section,
#step4 .voice-calling-section {
    background-color: #414557 !important;
}

#step4 .media-files-container,
#step4 .voice-agent-details {
    background-color: #414557 !important;
    border: none !important;
}

#step4 .media-file-item {
    border: none !important;
    background-color: #292e3c !important;
    position: relative !important;
    min-width: 280px !important;
    max-width: 280px !important;
    min-height: 200px !important;
    max-height: 200px !important;
}

#step4 .media-file-item img,
#step4 .media-file-item video {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - 16px) !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

#step4 .media-file-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

#step4 .media-file-name {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    max-width: 200px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Make description text white in step 4 sections */
#step4 .media-files-section p,
#step4 .voice-calling-section p,
#step4 .brand-kit-container p,
#step4 .media-files-section .description,
#step4 .voice-calling-section .description,
#step4 .brand-kit-container .description,
#step4 .media-files-section .subtitle,
#step4 .voice-calling-section .subtitle,
#step4 .brand-kit-container .subtitle,
#step4 .section-description {
    color: #ffffff !important;
}

/* Style for section description text */
#step4 .section-description {
    color: #ffffff !important;
    font-size: 14px !important;
    margin: 8px 0 16px 0 !important;
    opacity: 0.9 !important;
}

#step4 .loading {
    color: #ffffff !important;
    background-color: #414557 !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}

#step4 .info-value.loading-text {
    color: #ffffff !important;
    font-style: italic !important;
    font-size: 14px !important;
}

#step4 .project-name {
    color: #ffffff !important;
}

/* Force dark theme for step 4 page */
body:has(#step4.active) {
    background-color: #414557 !important;
    color: #ffffff !important;
}

body:has(#step4.active) .container {
    background-color: #414557 !important;
}

body:has(#step4.active) .main-content {
    background-color: #414557 !important;
}

.new-marketing-plan-btn {
    background: #6362ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 98, 255, 0.3);
    white-space: nowrap;
    align-self: flex-start;
}

.new-marketing-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 98, 255, 0.4);
}

.new-marketing-plan-btn i {
    font-size: 16px;
}

.marketing-plans-section {
    margin-top: 40px;
}

.marketing-plans-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.plans-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}



.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    font-size: 14px;
    background: #1f2937 !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
}

/* Override any form-group input styles that might affect search input */
.search-container .search-input,
.search-container input[type="text"] {
    border: none !important;
    outline: none !important;
    background: #1f2937 !important;
    color: #ffffff !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}



.search-input:active {
    outline: none !important;
    border: none !important;
}

.search-input::placeholder {
    color: #9ca3af;
}



.plans-controls {
    margin-bottom: 20px;
}



.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #8b5cf6;
}

.filters {
    display: flex;
    gap: 12px;
}

.filter-dropdown {
    padding: 10px 12px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 14px;
    background-color: #404557;
    color: #ffffff;
    cursor: pointer;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 32px;
    background-clip: padding-box;
}

@supports (-ms-ime-align: auto) {
    .filter-dropdown {
        box-shadow: inset 0 -1px 0 #ffffff;
    }
}


.filter-dropdown:hover {
    border-color: #8b5cf6;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* Date Range Picker Styles */
.date-range-picker {
    position: relative;
    min-width: 150px;
}

.date-range-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 14px;
    background: #404557;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.date-range-input:hover {
    border-color: #8b5cf6;
}

.date-range-input.active {
    border-color: #8b5cf6;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.date-range-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-range-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #404557;
    border: 1px solid #8b5cf6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    display: none;
    min-width: 320px;
}

.date-range-dropdown.active {
    display: block;
}

/* Calendar Container */
.calendar-container {
    padding: 16px;
    background: #374151;
    border-radius: 4px;
    margin: 4px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #374151;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Calendar Presets */
.calendar-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 12px;
    background: #1f2937;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preset-btn:hover {
    background: #374151;
    border-color: #6b7280;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.preset-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* Calendar Grid */
.calendar-grid {
    margin-bottom: 16px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    padding: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin: 1px;
}

.calendar-day:hover {
    background: #374151;
    border-color: #6b7280;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-day.disabled {
    background: #111827;
    color: #6b7280;
    border-color: #374151;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background: #111827;
    transform: none;
    box-shadow: none;
}

/* Style for next month dates (slightly different from previous month dates) */
.calendar-day.next-month {
    color: #9ca3af;
    background: #1f2937;
    border-color: #4b5563;
    cursor: not-allowed;
}

.calendar-day.next-month:hover {
    background: #1f2937;
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.calendar-day.selected {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.calendar-day.in-range {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

.calendar-day.range-start {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.calendar-day.range-end {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* Calendar Footer */
.calendar-footer {
    border-top: 1px solid #374151;
    padding-top: 12px;
}

.selected-range {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #1f2937;
    border-radius: 6px;
    border: 1px solid #4b5563;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.selected-range span {
    font-size: 13px;
    color: #e5e7eb;
    font-weight: 500;
}

.calendar-actions {
    display: flex;
    gap: 8px;
}

.apply-btn,
.clear-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.apply-btn {
    background: #8b5cf6;
    color: #ffffff;
}

.apply-btn:hover {
    background: #7c3aed;
}

.apply-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.clear-btn {
    background: #374151;
    color: #ffffff;
}

.clear-btn:hover {
    background: #4b5563;
}

.plans-table {
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #374151;
}

.plans-table table {
    width: 100%;
    border-collapse: collapse;
}

.plans-table th {
    background: #0f1721;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #d1d5db;
    font-size: 14px;
    border-bottom: 1px solid #374151;
    border-right: 1px solid #374151;
}

.plans-table th:last-child {
    border-right: none;
}

.plans-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #374151;
    border-right: 1px solid #374151;
    font-size: 14px;
    color: #ffffff;
}

.plans-table td:last-child {
    border-right: none;
}

.plans-table tr {
    background: #292d3b;
}

.plans-table tr:hover {
    background: #374151;
}

.plan-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.plan-link:hover {
    color: #e5e7eb;
    text-decoration: underline;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.ongoing {
    background: #daf4e7;
    color: #109957;
}

.status-badge.stopped {
    background: #fdf3da;
    color: #f39608;
}

.status-badge.draft {
    background: #f7f7f8;
    color: #6b7280;
}

.status-badge.completed {
    background: #f0e6fc;
    color: #9354e3;
}

.status-badge.failed {
    background: #f9dfd9;
    color: #be2900;
}

.status-badge.scheduled {
    background: #e3f7f6;
    color: #5cc2c1;
}

.stop-icon {
    color: #6362ff;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.stop-icon:hover {
    color: #7c3aed;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #1f2937;
    color: #ffffff;
}

.page-number:hover {
    border-color: #6362ff;
    color: #6362ff;
}

.page-number.active {
    background: #6362ff;
    color: white;
    border-color: #6362ff;
}

/* Responsive styles for Step 0 */
@media (max-width: 768px) {
    .plans-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-container {
        max-width: none;
    }

    .filters {
        justify-content: space-between;
    }

    .filter-dropdown {
        flex: 1;
        min-width: auto;
    }

    .plans-table {
        overflow-x: auto;
    }

    .plans-table table {
        min-width: 600px;
    }
}

/* Additional dark theme styling for step 0 */
#step0 .plans-table td[colspan] {
    color: #9ca3af;
    font-style: italic;
}

#step0 .stop-icon-disabled {
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

#step0 .plans-table a {
    color: #ffffff;
}

#step0 .plans-table a:hover {
    color: #e5e7eb;
}

@media (max-width: 480px) {
    .new-marketing-plan-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .marketing-plans-section h2 {
        font-size: 20px;
    }

    .plans-table th,
    .plans-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .status-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

.campaign-calendar-section {
    display: none;
}

.campaign-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.campaign-loading .lottie-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.campaign-loading .loading-message {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

/* Step 3 Budget Loading Styles */
.step3-budget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 20px 0;
}

.step3-budget-loading .lottie-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step3-budget-loading .loading-message {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Loading States for Agent/Account */
.loading-text {
    color: #007bff;
    font-style: italic;
    font-size: 14px;
}

.loading-spinner {
    color: #007bff;
    font-size: 16px;
}

/* Channel table checkbox styling */
.channel-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Disabled checkbox styling */
.channel-table input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Approve column width */
.channel-table th:first-child,
.channel-table td:first-child {
    width: 80px;
    text-align: center;
}

/* Step 5 CP Table checkbox styling */
.cp-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
/* Step 1 specific date selection color overrides */
#step1 .date-input input:focus {
    border-color: #6161ff !important;
    box-shadow: 0 0 0 2px rgba(97, 97, 255, 0.25) !important;
    border-radius: 8px 0 0 8px !important;
}

#step1 .date-input:hover i {
    color: #6161ff !important;
}

#step1 .date-input input[data-selected] {
    background-color: #1f2937 !important;
    border-color: #6161ff !important;
    border-radius: 8px 0 0 8px !important;
}

#step1 .date-input input[data-selected]+i {
    color: #6161ff !important;
}

/* Step 1 Flatpickr today highlight */
#step1 .flatpickr-calendar .flatpickr-day.today {
    border-color: #6161ff !important;
}

/* Step 1 Flatpickr hover states */
#step1 .flatpickr-calendar .flatpickr-day:hover {
    background: rgba(97, 97, 255, 0.1) !important;
    border-color: #6161ff !important;
}
