/* TaxiWeb LLM Services - New Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YS Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F5F5;
    color: #000000;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

/* Column View Interface */
.column-view {
    display: flex;
    height: 100vh;
    background-color: #F5F5F5;
    padding: 58px 58px 0 58px;
    gap: 39px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.column {
    width: 329px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 58px);
}

.column.texts-column {
    width: 658px;
}

.column.creatives-column {
    width: fit-content;
    max-width: none;
}

.column.hidden {
    display: none;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}

.column-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.column-actions {
    display: flex;
}

/* Settings Button */
.settings-btn {
    width: 61px;
    height: 41px;
    background: transparent;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    text-decoration: none;
    color: #000000;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.settings-icon {
    width: 23px;
    height: 23px;
    stroke: #999999;
    stroke-width: 2;
}

/* Add Buttons */
.add-btn, .download-btn {
    width: 61px;
    height: 41px;
    background: transparent;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.add-btn.active, .download-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-btn:hover, .download-btn:hover {
    transform: translateY(-1px);
}

.add-btn.active:hover, .download-btn.active:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.plus-icon, .download-icon {
    width: 23px;
    height: 23px;
    stroke: #999999;
    stroke-width: 2;
}

.column-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
.column-content::-webkit-scrollbar {
    width: 6px;
}

.column-content::-webkit-scrollbar-track {
    background: transparent;
}

.column-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Project Loading */
.project-loading {
    background: white;
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 21px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.project-loading .spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #E0E0E0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.project-loading .loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

/* Form Cards */
.form-card, .selected-project-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 18px;
}

/* Product/Platform Tags */
.product-tags, .platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
    position: relative;
}

.product-tag, .platform-tag {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0.4;
}

.product-tag.active, .platform-tag.active {
    opacity: 1;
}

.product-tag:hover, .platform-tag:hover {
    opacity: 0.7;
}

/* Input Groups */
.input-group {
    margin-bottom: 18px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #F5F5F5;
    border: none;
    border-radius: 10px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    outline: none;
    transition: background-color 0.2s ease;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.form-input:focus {
    background: #EEEEEE;
}

/* Generate Buttons */
.generate-btn {
    background: #000000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 128px;
}

.generate-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.generate-btn:active {
    transform: translateY(0);
}

/* Project Items */
.project-item {
    background: transparent;
    border-radius: 30px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.project-info {
    flex: 1;
}

.project-product {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.project-name {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
}

.project-delete-btn {
    background: #E0E0E0;
    color: #666666;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'YS Text', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    opacity: 0.7;
}

.project-delete-btn:hover {
    background: #D0D0D0;
    opacity: 1;
}

.project-delete-btn:active {
    transform: translateY(1px);
}

.project-arrow {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    color: #000000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: rotate(-45deg);
}

.project-arrow::before {
    content: '⊿';
}

/* Text Items */
.text-item {
    background: transparent;
    border-radius: 30px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.text-content {
    flex: 1;
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.text-description {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 18px;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    width: 100%;
    font-family: 'YS Text', sans-serif;
    padding: 0;
    cursor: text;
    min-height: 44px;
}

.text-actions {
    display: flex;
    gap: 18px;
}

.text-action-btn {
    background: #E0E0E0;
    color: #111111;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-action-btn:hover {
    background: #D0D0D0;
}

.text-arrow {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    color: #000000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: rotate(-45deg);
}

.text-arrow::before {
    content: '⊿';
}

/* Creative Items */
.creative-item {
    background: transparent;
    border-radius: 30px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.creative-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.creative-content {
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.creative-format {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 18px;
}

.creative-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.creative-title {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-family: 'YS Text', sans-serif;
    padding: 0;
    cursor: text;
}

.creative-char-count {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.4);
    text-align: right;
    width: 30px;
    flex-shrink: 0;
}

.creative-description-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.creative-description {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-family: 'YS Text', sans-serif;
    padding: 0;
    cursor: text;
    min-height: 44px;
}

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

.text-actions {
    display: flex;
    gap: 18px;
}

.apply-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.apply-btn:hover {
    background: #059669;
}

.apply-btn.visible {
    display: flex;
}

.creative-action-btn {
    background: #E0E0E0;
    color: #111111;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.creative-action-btn:hover {
    background: #D0D0D0;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.9);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #E0E0E0;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    margin-top: 1rem;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-weight: 500;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    font-family: 'YS Text', sans-serif;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

.toast.warning {
    background-color: #f59e0b;
}

.toast.info {
    background-color: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(0, 0, 0, 0.4);
}

.empty-state-text {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-sections {
        gap: 200px;
    }
}

@media (max-width: 768px) {
    .nav-header {
        padding: 30px 20px 0 20px;
    }
    
    .content-area {
        padding: 0 20px;
        margin-top: 40px;
    }
    
    .nav-sections {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .section-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-column, .right-column {
        width: 100%;
        max-width: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .creative-title {
        font-size: 20px;
    }
    
    .creative-title-row, .creative-description-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .creative-char-count {
        text-align: left;
        width: auto;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.mb-0 {
    margin-bottom: 0 !important;
}

/* Focus States */
.form-input:focus,
.generate-btn:focus,
.text-action-btn:focus,
.creative-action-btn:focus,
.add-btn:focus,
.download-btn:focus {
    outline: none;
}

/* Selection States */
.project-item.selected {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.text-item.selected {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.creative-item.selected {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Creative Generation Styles - New Design Based on Example */
.Creative {
    width: fit-content;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    margin-bottom: 21px;
}

.Creativetext {
    align-self: stretch;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    display: inline-flex;
    background: transparent;
    transition: all 0.2s ease;
    margin-bottom: 21px;
}

.Creativetext:hover {
    background: rgba(255, 255, 255, 0.5);
}

.Columncontent {
    padding-top: 23px;
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    display: flex;
    align-self: stretch;
}

.Upper {
    align-self: stretch;
    justify-content: space-between;
    align-items: flex-end;
    display: inline-flex;
}

.Format {
    opacity: 0.40;
    color: black;
    font-size: 12px;
    font-family: 'YS Text', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.20px;
    word-wrap: break-word;
}

.AdPair {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    display: inline-flex;
}

.Headers {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    display: inline-flex;
}

.Head {
    justify-content: flex-end;
    align-items: flex-start;
    gap: 18px;
    display: inline-flex;
}

.Texts {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    display: inline-flex;
}

.Text {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    display: inline-flex;
}

.Creativetexttitle {
    color: black;
    font-size: 16px;
    font-family: 'YS Text', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    padding: 0;
    cursor: text;
    line-height: 1.3;
    min-height: 1.3em;
    overflow: hidden;
}

.Creativetexttitle:focus {
    outline: none;
}

.Count {
    width: 30px;
    opacity: 0.40;
    text-align: right;
    color: black;
    font-size: 12px;
    font-family: 'YS Text', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.20px;
    word-wrap: break-word;
    flex-shrink: 0;
}

.Count.invalid {
    color: #ef4444 !important;
    opacity: 1 !important;
    font-weight: 700;
}

.Creativetextdescription {
    color: black;
    font-size: 16px;
    font-family: 'YS Text', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    word-wrap: break-word;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    padding: 0;
    cursor: text;
    min-height: 22.40px;
    overflow: hidden;
}

.Creativetextdescription:focus {
    outline: none;
}

.Delete {
    padding-left: 9px;
    padding-right: 9px;
    padding-top: 5px;
    padding-bottom: 5px;
    background: #EBEBEB;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: flex;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.Delete:hover {
    background: #D0D0D0;
}

.Button {
    color: #717171;
    font-size: 12px;
    font-family: 'YS Text', sans-serif;
    font-weight: 400;
    letter-spacing: 0.60px;
    word-wrap: break-word;
}

/* Legacy styles for backward compatibility */
.platform-group {
    margin-bottom: 21px;
}

.platform-header {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    border: none;
}

.platform-creatives {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.apply-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.apply-btn.visible {
    display: flex;
}

.apply-btn:hover {
    background: #059669;
}

/* Modal Styles - Adapted to Main Design */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.modal-title {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #000000;
}

.format-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.format-selection-grid::-webkit-scrollbar {
    width: 6px;
}

.format-selection-grid::-webkit-scrollbar-track {
    background: transparent;
}

.format-selection-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.format-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #F5F5F5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.format-checkbox:hover {
    background: #EEEEEE;
}

.format-checkbox:has(input:checked) {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.format-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.format-checkbox-label {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.3;
    cursor: pointer;
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.modal-btn {
    background: #000000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 128px;
}

.modal-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background: #E0E0E0;
    color: #111111;
}

.modal-btn.secondary:hover {
    background: #D0D0D0;
}

/* Settings Page Styles */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'YS Text', sans-serif;
}

.settings-header {
    margin-bottom: 40px;
}

.settings-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.settings-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    font-family: 'YS Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.settings-tab:hover {
    color: #000000;
}

.settings-tab.active {
    color: #000000;
    border-bottom-color: #000000;
}

.tab-content {
    display: none;
}

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

.settings-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 30px;
}

.product-item, .prompt-item, .config-item {
    background: #F5F5F5;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.product-item:hover, .prompt-item:hover, .config-item:hover {
    background: #EEEEEE;
}

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

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

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

.edit-btn, .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.edit-btn:hover {
    background: #2563eb;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
}

.item-description {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    line-height: 1.4;
}

.item-platform {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.edit-form.active {
    display: block;
}

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

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

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    color: #000000;
    background: white;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-btn, .cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn {
    background: #10b981;
    color: white;
}

.save-btn:hover {
    background: #059669;
}

.cancel-btn {
    background: #6b7280;
    color: white;
}

.cancel-btn:hover {
    background: #4b5563;
}

.loading-state, .error-state {
    text-align: center;
    padding: 40px;
    color: rgba(0, 0, 0, 0.6);
}

.error-state {
    color: #ef4444;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* New Platform Management Styles */
.platform-selector {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 15px;
    background: #F5F5F5;
}

.platform-selector .platform-group {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.platform-selector .platform-header {
    background: #F8F9FA;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
}

.platform-selector .checkbox-label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

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

.platform-selector .platform-name {
    flex: 1;
}

.platform-selector .fields-count {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-selector .platform-fields {
    padding: 0;
    transition: all 0.3s ease;
    background: white;
}

.platform-selector .platform-fields.collapsed {
    max-height: 0;
    overflow: hidden;
}

.platform-selector .platform-fields.expanded {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 15px;
}

.platform-selector .field-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

.platform-selector .field-name {
    flex: 1;
}

.platform-selector .field-limit {
    color: rgba(0, 0, 0, 0.4);
    margin-left: 10px;
    font-size: 11px;
}

.platform-selector .required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 5px;
}

/* New Creative Platform Cards */
.creative-platform-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.creative-platform-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creative-platform-card .platform-header {
    background: #F8F9FA;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.creative-platform-card .platform-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.creative-platform-card .fields-count {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creative-platform-card .platform-fields {
    padding: 25px;
}

.field-creative {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #F5F5F5;
}

.field-creative.valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.field-creative.invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.field-creative .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.field-creative .field-name {
    font-weight: 500;
    color: #000000;
    font-size: 14px;
}

.field-creative .char-count {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-creative .char-count.valid {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.field-creative .char-count.invalid {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.field-creative .field-content {
    margin-bottom: 10px;
}

.field-creative .creative-text {
    width: 100%;
    height: calc(1.4em + 24px);
    min-height: calc(1.4em + 24px);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    transition: all 0.2s ease;
    background: white;
    color: #000000;
    overflow: hidden;
}

.field-creative .creative-text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.field-creative .validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* New Generation Form Styles */
.form-card .form-group {
    margin-bottom: 20px;
}

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

.form-card input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
}

.form-card input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
}

.form-card input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: none;
}

.form-card .range-value {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    text-align: right;
}

.form-card .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-card .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'YS Text', sans-serif;
    letter-spacing: 0.6px;
    min-width: 128px;
}

.form-card .btn-primary {
    background-color: #000000;
    color: white;
}

.form-card .btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

.form-card .btn-secondary {
    background-color: #E0E0E0;
    color: #111111;
}

.form-card .btn-secondary:hover {
    background-color: #D0D0D0;
    transform: translateY(-1px);
}

.form-card .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Notification Improvements */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.warning {
    background-color: #f59e0b;
    color: #000000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for New Platform Management */
@media (max-width: 768px) {
    .platform-selector {
        max-height: 250px;
    }
    
    .creative-platform-card .platform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .field-creative .field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .form-card .form-actions {
        flex-direction: column;
    }
    
    .form-card .btn {
        width: 100%;
    }
    
    .creative-platform-card .platform-fields {
        padding: 20px;
    }
    
    .field-creative {
        padding: 12px;
    }
}

/* New Creative Variations Styles */
.field-creative-group {
    margin-bottom: 25px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.field-creative-group .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.field-creative-group .field-name {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.field-creative-group .field-limit {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-variations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-variation {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.field-variation.valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
}

.field-variation.invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
}

.field-variation:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.variation-number {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.4);
}

.variation-content {
    margin-bottom: 5px;
}

.variation-content .creative-text {
    width: 100%;
    height: calc(1.4em + 20px);
    min-height: calc(1.4em + 20px);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    transition: all 0.2s ease;
    background: white;
    color: #000000;
    overflow: hidden;
}

.variation-content .creative-text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.field-variation .char-count {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-variation .char-count.valid {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.field-variation .char-count.invalid {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.field-variation .validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive Design for Variations */
@media (max-width: 768px) {
    .field-creative-group {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .field-creative-group .field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .field-variation {
        padding: 12px;
    }
    
    .variation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .variation-content .creative-text {
        min-height: 40px;
        padding: 8px;
        font-size: 13px;
    }
}

/* New Ad-based Creative Styles */
.creative-ad-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.creative-ad-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creative-ad-card .ad-header {
    background: #F8F9FA;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.creative-ad-card .ad-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.creative-ad-card .platform-name {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creative-ad-card .ad-fields {
    padding: 25px;
}

.creative-ad-card .ad-actions {
    padding: 0 25px 25px 25px;
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    margin-top: 20px;
}

.save-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 128px;
}

.save-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}

.save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.save-btn.saved {
    background: #28a745;
}

.save-btn.saved:hover {
    background: #28a745;
    transform: none;
}

/* Auto-saved notice styles */
.auto-saved-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-family: 'YS Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    min-width: 200px;
    text-align: center;
}

/* Responsive Design for Ad Cards */
@media (max-width: 768px) {
    .creative-ad-card .ad-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .creative-ad-card .ad-fields {
        padding: 20px;
    }
    
    .creative-ad-card .ad-actions {
        padding: 0 20px 20px 20px;
        flex-direction: column;
    }
    
    .creative-ad-card .ad-actions .apply-btn,
    .creative-ad-card .ad-actions .save-btn {
        width: 100%;
    }
}