/* ==================================================
   TOOLBAR BASE STYLES
================================================== */
.toolbar-extension {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    margin-left: 20.15%; /* Start from the end of subnav (20% width) */
    padding: 8px;
    background-color: #d5d5d5;
    border-top: 1px solid #dee2e6;
    width: 80%; /* Only take up the remaining 80% width */
    box-sizing: border-box;
}

/* ==================================================
   STICKY TOOLBAR STYLES
================================================== */
.toolbar-sticky {
    position: fixed;
    top: 0; /* Position at the very top where header once was */
    width: 100%;
    height: 70px; /* Match the height of the original header */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Subtle gradient background */
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    z-index: 1000; /* Same z-index as header had */
}

.toolbar-sticky .campaign-name-prompt {
    height: 100%;
    margin: 0;
    padding: 0;
}

.toolbar-sticky .campaign-form {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
}

.toolbar-sticky .two-column-layout {
    height: 100%;
    margin: 0;
}

.campaign-name-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 0;
    width: 100%;
}

#campaignName {
    flex: 0 0 140px;
    height: 100%;
    font-size: 12px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px 10px;
}

.campaign-form {
    background-color: #fff;
    padding: 0;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #dee2e6;
}

/* ==================================================
   TOOLBAR LAYOUT
================================================== */
.three-column-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 6%; /* Better margins like the header had */
    background-color: #f8f9fa;
}

.two-column-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 6%;
    background-color: #f8f9fa;
}

/* Two-Column Layout */
.one-column-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

/* ==================================================
   TWO COLUMN LAYOUT STYLES
================================================== */
.column-toolbar-left,
.column-toolbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    height: 100%;
    padding: 10px 0;
    gap: 12px;
    background-color: #f8f9fa;
}

.column-toolbar-left {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-right: 20px;
    min-width: 0;
    overflow: hidden;
}

.column-toolbar-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    padding-left: 20px;
    overflow: visible;
    flex-wrap: nowrap;
    min-width: fit-content;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-right: 20px;
}

.toolbar-logo {
    height: 25px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.8); /* Slightly dim the logo to match toolbar aesthetic */
}

/* ==================================================
   THREE COLUMN LAYOUT STYLES (keeping for backward compatibility)
================================================== */
.column-toolbar-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    height: 100%;
    padding: 10px 0;
    gap: 12px;
    background-color: #f8f9fa;
}

.column-toolbar-center {
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

/* ==================================================
   LEGACY COLUMN STYLES (for backward compatibility)
================================================== */
.column-toolbar-1, .column-toolbar-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    height: 100%;
    padding: 10px 0;
    gap: 12px;
    background-color: #f8f9fa;
}

.toolbar-sticky .column-toolbar-1,
.toolbar-sticky .column-toolbar-2 {
    height: 100%;
    padding: 10px 0;
    background-color: transparent;
}

.toolbar-sticky .column-toolbar-left,
.toolbar-sticky .column-toolbar-center,
.toolbar-sticky .column-toolbar-right {
    height: 100%;
    padding: 10px 0;
    background-color: transparent;
}

.column-toolbar-1 {
    flex: none; 
    width: 50%; 
    padding-left: 6%;
    justify-content: flex-start;
}

.column-toolbar-2 {
    flex: none; 
    width: 50%; 
    padding-right: 6%;
    justify-content: flex-end;
}

.column-toolbar-3 {
    padding-left: 0;
    justify-content: center;
}

/* .column-toolbar-1 { flex: none; width: 25%; }  */
.column-toolbar-1 { flex: none; width: 50%; }
.column-toolbar-2 { flex: none; width: 50%; }
.column-toolbar-3 { flex: none; width: 10%; } /* Remaining space */

.toolbar-text {
    width: 40%;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    margin: 0;
    padding: 0 2% 0 2%;
}

/* Step header styling */
.column-toolbar-left h5,
.column-toolbar-right h5 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-toolbar-left h5 .animated-icon,
.column-toolbar-right h5 .animated-icon {
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.column-toolbar-left h5 .animated-icon:hover,
.column-toolbar-right h5 .animated-icon:hover {
    color: #4ea5f2;
}

.column-toolbar-1-email {
    padding: 0;
}

/* Left Column - Toolbar Adjustments */
.form-row-left {
    justify-content: left;
    display: flex;
    align-items: center;
    gap: 6%;
    flex-wrap: nowrap;
    height: 38px;
}

.form-row-left input[type="text"] {
    width: 140px;
    height: 100%;
    padding: 5px 10px;
    font-size: 12px;
    box-sizing: border-box;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* ==================================================
   TOOLBAR CONTROLS
================================================== */
.form-row-right {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    height: 32px;
}

.form-row-right button {
    height: 32px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: white !important;
    border: 1px solid #dee2e6;
    color: #4ea5f2 !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-weight: 500;
}

.form-row-right button:hover {
    background-color: white !important;
    border-color: #4ea5f2;
    color: #4ea5f2 !important;
    box-shadow: 0 2px 4px rgba(78, 165, 242, 0.1);
    transform: translateY(-1px);
}

.form-row-right button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-row-right button i {
    font-size: 14px;
    color: #4ea5f2 !important;
}

.uniform-select-right {
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    width: 100px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.uniform-select-right:hover {
    border-color: #4ea5f2;
    box-shadow: 0 2px 4px rgba(78, 165, 242, 0.1);
}

.uniform-select-right:focus {
    outline: none;
    border-color: #4ea5f2;
    box-shadow: 0 0 0 3px rgba(78, 165, 242, 0.1);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
}

.control-row button {
    height: 32px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: white !important;
    border: 1px solid #dee2e6;
    color: #4ea5f2 !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.control-row button:hover {
    background-color: white !important;
    border-color: #4ea5f2;
    color: #4ea5f2 !important;
    box-shadow: 0 2px 4px rgba(78, 165, 242, 0.1);
    transform: translateY(-1px);
}

.control-row button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.control-row button i {
    font-size: 14px;
    color: #4ea5f2 !important;
}

/* ==================================================
   SAVING BANNER
================================================== */
#saving-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    margin-left: 12px;
    transition: all 0.3s ease;
}

#saving-banner:hover {
    box-shadow: none;
}

#banner-message {
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: -0.01em;
}

#banner-message::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ea5f2;
    animation: pulse 1.5s infinite;
}

.progress-bar {
    width: 100px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #4ea5f2, #6bb7f5);
    border-radius: 4px;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { 
        transform: translateX(-30%);
        width: 30%;
    }
    50% {
        width: 60%;
    }
    100% { 
        transform: translateX(100%);
        width: 30%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(78, 165, 242, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(78, 165, 242, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(78, 165, 242, 0);
    }
}


/* ==================================================
   RESPONSIVE BREAKPOINTS
================================================== */

@media screen and (max-width: 480px) {
    .toolbar-sticky {
        display: none; /* Hides the sticky toolbar on mobile */
    }
    .webpage-wrapper {
        margin-top: 0; /* Remove margin on mobile when toolbar is hidden */
    }
}

@media screen and (max-width: 768px) {
    .three-column-layout {
        padding: 0 4%; /* Reduce margins on smaller screens */
    }
    
    .column-toolbar-left,
    .column-toolbar-center,
    .column-toolbar-right {
        padding: 10px 10px; /* Reduce column padding on smaller screens */
    }
    
    .toolbar-logo {
        height: 32px; /* Slightly smaller logo on smaller screens */
    }
}

/* @media screen and (min-width: 1400px) {
    .column-toolbar-1 {
        padding-left: 8%;
    }
    .column-toolbar-2 {
        padding-right: 8%;
    }
}

@media screen and (max-width: 1399px) {
    .column-toolbar-1 {
        padding-left: 6%;
    }
    .column-toolbar-2 {
        padding-right: 6%;
    }
}

@media screen and (max-width: 1199px) {
    .column-toolbar-1 {
        padding-left: 4%;
    }
    .column-toolbar-2 {
        padding-right: 4%;
    }
}

@media screen and (max-width: 991px) {
    .column-toolbar-1 h5,
    .column-toolbar-2 h5 {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 767px) {
    .toolbar-extension {
        padding: 5px;
    }
    .column-toolbar-1 h5,
    .column-toolbar-2 h5 {
        display: none;
    }
    .column-toolbar-1 {
        padding-left: 20px;
    }
}

@media screen and (max-width: 575px) {
    .toolbar-sticky {
        display: none;
    }
    .column-toolbar-1,
    .column-toolbar-2 {
        gap: 6px;
    }
}

@media screen and (max-width: 374px) {
    .form-row-right {
        gap: 4px;
    }
    .control-row {
        gap: 4px;
    }
} */

/* ==================================================
   PURPLE AI BUTTON STYLES
================================================== */
.column-toolbar-right .btn-purple {
    background-color: #8b5cf6;
    color: white;
    border: none;
    font-size: 0.75em;
    font-weight: 600;
    height: 32px;
    min-width: auto;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    overflow: visible;
}

.column-toolbar-right .btn-purple:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    color: #fff;
}

.column-toolbar-right .btn-purple:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(139, 92, 246, 0.2);
}

.column-toolbar-right .btn-purple i {
    margin: 0;
    font-size: 13px;
    flex-shrink: 0;
}