/* Info Bar Styles */
.info-bar {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #ffeaa7;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ad Generator Styles */
.ad-generator {
    max-width: 95%;
    width: 100%;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Webhook Instructions */
.webhook-instructions {
    margin-bottom: 25px;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 6px;
    border-left: 4px solid #3b49df;
}

.webhook-instructions h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.webhook-instructions p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
}

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

.form-section textarea,
.form-section input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.form-section textarea {
    min-height: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-section input[type="url"] {
    height: 44px;
}

.form-section .field-help {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.ad-generator textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

.ad-generator button {
    background: #3b49df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.ad-generator button:hover {
    background: #2a35c7;
}

.ad-generator button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.ad-generator button:disabled:hover {
    background: #6c757d;
}

/* Image Selection with Upload */
.image-selection-with-upload {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.image-selection {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.image-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.image-gallery {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fafafa;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Campaign Input at Bottom */
.campaign-input-bottom {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.campaign-input-bottom .input-group {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 220px;
}

.campaign-input-bottom label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.campaign-input-bottom input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 42px;
    box-sizing: border-box;
}

.campaign-input-bottom .reset-controls {
    display: flex;
    align-items: flex-end;
    margin-left: 10px;
}

.campaign-input-bottom .reset-defaults-btn {
    background: orange;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.campaign-input-bottom .reset-defaults-btn:hover {
    background: #7684e3;
}

.image-gallery-item {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.image-gallery-item:hover {
    border-color: #3b49df;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 73, 223, 0.2);
}

.image-gallery-item.selected {
    border-color: #3b49df;
    box-shadow: 0 0 0 2px rgba(59, 73, 223, 0.3);
}

.image-gallery-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-gallery-item .selected-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #3b49df;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-gallery-item.selected .selected-indicator {
    opacity: 1;
    transform: scale(1.1);
}

.image-gallery-item .image-actions {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-gallery-item:hover .image-actions {
    opacity: 1;
}

.image-gallery-item .delete-image-btn,
.image-gallery-item .preview-image-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-gallery-item .delete-image-btn:hover {
    background: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.image-gallery-item .preview-image-btn:hover {
    background: #3b49df;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 73, 223, 0.3);
}

.image-gallery-item .profile-action {
    position: absolute;
    bottom: 6px;
    right: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-gallery-item:hover .profile-action {
    opacity: 1;
}

.image-gallery-item .profile-image-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-gallery-item .profile-image-btn:hover {
    background: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.image-gallery-item .profile-image-btn.active {
    background: #ffc107;
    opacity: 1;
}

.image-gallery-item .profile-action.active {
    opacity: 1;
}

.image-gallery-item .profile-image-btn.active:hover {
    background: #e0a800;
}

.no-images-message {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.no-images-message p {
    margin: 0;
}

/* Upload Control in Image Selection */
.upload-control {
    flex: 0 0 250px; /* Fixed width for upload area */
    min-width: 200px;
}

.upload-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.upload-control uc-file-uploader-minimal {
    display: block;
    width: 100%;
}

/* Uploadcare component styling overrides */
.upload-control uc-file-uploader-minimal::part(content) {
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.2s ease;
    padding: 12px;
    min-height: 42px;
    text-align: center;
    font-size: 14px;
}

/* Override ad-generator button styles for uploadcare components */
.upload-control uc-file-uploader-minimal button,
.upload-control uc-file-uploader-minimal [role="button"],
.upload-control uc-file-uploader-minimal .uc-btn,
.upload-control uc-file-uploader-minimal .btn {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    margin-top: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.upload-control uc-file-uploader-minimal button:hover,
.upload-control uc-file-uploader-minimal [role="button"]:hover,
.upload-control uc-file-uploader-minimal .uc-btn:hover,
.upload-control uc-file-uploader-minimal .btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: none !important;
}

.upload-control uc-file-uploader-minimal:hover::part(content) {
    border-color: #3b49df;
}

/* Clean minimal uploader styling */
.upload-control .uc-minimal-clean::part(files) {
    display: none !important;
}

.upload-control .uc-minimal-clean::part(file-list) {
    display: none !important;
}

.upload-control .uc-minimal-clean::part(upload-list) {
    display: none !important;
}

/* Hide file list and progress elements after upload */
.upload-control uc-file-uploader-minimal::part(file-item),
.upload-control uc-file-uploader-minimal::part(file-name),
.upload-control uc-file-uploader-minimal::part(file-size),
.upload-control uc-file-uploader-minimal::part(progress-bar),
.upload-control uc-file-uploader-minimal::part(remove-button),
.upload-control uc-file-uploader-minimal lr-file-item,
.upload-control uc-file-uploader-minimal lr-upload-list {
    display: none !important;
}

/* Style the upload area when files are present */
.upload-control uc-file-uploader-minimal[files]::part(content) {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
}

.upload-control uc-file-uploader-minimal[files]::part(content)::before {
    content: "✓ Images uploaded successfully";
    font-weight: 500;
}

/* Hide Uploadcare branding */
.upload-control uc-file-uploader-minimal::part(powered-by),
uc-file-uploader-minimal::part(powered-by),
[data-powered-by] {
    display: none !important;
}

/* Additional hiding for any powered-by elements */
.upload-control [data-powered-by],
.upload-control [class*="powered"],
.upload-control [class*="branding"],
[class*="powered-by"],
[class*="uploadcare-powered"] {
    display: none !important;
    visibility: hidden !important;
}

/* Ads Container Grid */
.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    justify-content: center;
    align-items: start;
}

/* Ad Container */
.ad-container {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    background: white;
    transition: border-color 0.2s ease, opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-container:hover {
    border-color: #3b49df;
}

.ad-container.selected {
    border-color: #3b49df;
    background: #f8f9ff;
    box-shadow: 0 0 0 2px rgba(59, 73, 223, 0.2);
}

.ad-container.selected .ad-actions {
    background: #e8ecff;
}

/* Fade out animation for saved ads */
.ad-container.saving {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}

.ad-wrapper {
    width: 100%;
    padding: 20px;
    flex: 1;
}

/* Action Buttons */
.ad-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    justify-content: center;
    align-items: center;
}

.ad-selection {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #495057;
}

.ad-selection input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.1);
}

.ad-selection label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.ad-action-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ad-action-btn:hover {
    background: #3b49df;
    color: white;
    border-color: #3b49df;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 73, 223, 0.3);
}

.ad-action-btn.saved {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Dev.to Card Fixes */
.crayons-card {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

.crayons-bb {
    margin: 0 !important;
    width: 100% !important;
}

/* Headline Links */
.headline-link {
    color: #3b49df !important;
    text-decoration: underline !important;
}

.headline-link:hover {
    color: #2a35c7 !important;
}

/* Legacy Dev.to Styles */
.long-bb-body {
    max-height: calc(100vh - 200px);
    overflow: hidden;
}

.long-bb-bottom {
    height: 180px;
    background: linear-gradient(to top, var(--card-bg), transparent);
    margin-top: -180px;
    position: relative;
    z-index: 5;
}

/* Preview Section */
.preview-section {
    max-width: 95%;
    width: 100%;
    margin: 20px auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.preview-ads-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.preview-ads-header:hover {
    background: #e9ecef;
}

.preview-ads-header h3 {
    margin: 0;
    color: #495057;
}

.preview-ads-content {
    padding: 0;
}

/* Saved Ads Section */
.saved-ads-section {
    max-width: 95%;
    width: 100%;
    margin: 20px auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.saved-ads-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.saved-ads-header:hover {
    background: #e9ecef;
}

.saved-ads-header h3 {
    margin: 0;
    color: #495057;
}

.toggle-icon {
    font-size: 16px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.saved-ads-content {
    padding: 0;
}

/* Saved Ads Controls */
.saved-ads-controls {
    padding: 20px 30px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.control-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.control-btn:hover:not(:disabled) {
    background: #495057;
    transform: translateY(-1px);
}

.control-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.control-btn.preview-btn {
    background: #3b49df;
}

.control-btn.preview-btn:hover:not(:disabled) {
    background: #2a35c7;
}

.control-btn.copy-btn {
    background: #17a2b8;
}

.control-btn.copy-btn:hover:not(:disabled) {
    background: #138496;
}

.control-btn.remove-btn {
    background: #dc3545;
}

.control-btn.remove-btn:hover:not(:disabled) {
    background: #c82333;
}

/* Filter Styles */
.saved-ads-filters {
    padding: 15px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    font-size: 14px;
    margin: 0;
}

#campaignFilter {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#campaignFilter:hover {
    border-color: #3b49df;
}

#campaignFilter:focus {
    outline: none;
    border-color: #3b49df;
    box-shadow: 0 0 0 2px rgba(59, 73, 223, 0.1);
}

/* Table Styles */
.table-container {
    position: relative;
    max-height: 500px;
    overflow-y: auto;
}

.saved-ads-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.saved-ads-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.saved-ads-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.saved-ads-table tbody tr {
    transition: background-color 0.2s ease;
}

.saved-ads-table tbody tr:hover {
    background: #f8f9fa;
}

.saved-ads-table tbody tr.selected {
    background: #e3f2fd;
}

.select-column {
    width: 40px;
    text-align: center;
}

.saved-ads-table input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.2);
}

.saved-ads-table .headline-cell {
    max-width: 250px;
    font-weight: 500;
    color: #3b49df;
}

.saved-ads-table .body-text-cell {
    max-width: 300px;
    color: #6c757d;
}

.saved-ads-table .cta-cell {
    max-width: 150px;
    font-weight: 500;
}

.saved-ads-table .campaign-cell {
    font-weight: 500;
    color: #495057;
}

.saved-ads-table .date-cell {
    color: #6c757d;
    font-size: 12px;
    white-space: nowrap;
}

.saved-ads-table .uuid-cell {
    max-width: 120px;
    font-family: monospace;
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
}

.saved-ads-table .url-cell {
    max-width: 200px;
    font-size: 12px;
}

.saved-ads-table .url-cell a {
    color: #3b49df;
    text-decoration: none;
}

.saved-ads-table .url-cell a:hover {
    color: #2a35c7;
    text-decoration: underline;
}

.saved-ads-table .no-url {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.saved-ads-table .image-cell {
    width: 60px;
    text-align: center;
    padding: 8px;
}

.saved-ads-table .table-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.saved-ads-table .no-image {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.saved-ads-table .aspect-ratio-cell {
    text-align: center;
    width: 120px;
    font-size: 12px;
    white-space: nowrap;
    padding: 8px;
}

.saved-ads-table .no-aspect-ratio {
    color: #6c757d;
    font-style: italic;
}

/* Text truncation for long content */
.saved-ads-table .headline-cell,
.saved-ads-table .body-text-cell,
.saved-ads-table .cta-cell,
.saved-ads-table .uuid-cell,
.saved-ads-table .url-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No saved ads message */
.no-saved-ads {
    padding: 40px 30px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
}

.no-saved-ads p {
    margin: 0;
    font-style: italic;
}

/* Count badge */
#savedAdsCount {
    color: #3b49df;
    font-weight: bold;
}

#draftAdsCount {
    color: #6c757d;
    font-weight: bold;
}

/* Ad Status Indicators */
.ad-status-indicator {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ad-status-indicator.saved {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Preview Actions */
.preview-actions {
    background: #e3f2fd;
    border-top: 1px solid #bbdefb;
}

/* Saved Actions */
.saved-actions {
    background: #f1f8e9;
    border-top: 1px solid #c8e6c9;
}

/* Ad Type Containers */
.ad-container.ad-preview {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.ad-container.ad-saved {
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

/* Ad Info Display */
.ad-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #1976d2;
    font-family: monospace;
}

.campaign-info {
    font-weight: 600;
    color: #1565c0;
}

.uuid-info {
    color: #1976d2;
    opacity: 0.8;
}

/* File Upload Section */
.file-upload-section {
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    text-align: center;
}

.file-upload-section h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 18px;
}

.file-upload-section p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Uploadcare component styling overrides */
.file-upload-section uc-file-uploader-minimal {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Make uploadcare components more responsive */
.file-upload-section uc-file-uploader-minimal::part(content) {
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.2s ease;
}

.file-upload-section uc-file-uploader-minimal:hover::part(content) {
    border-color: #3b49df;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b49df;
    animation: slideIn 0.3s ease;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.notification.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.notification.error {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.notification.warning {
    border-left-color: #ffc107;
    background: #fffdf5;
}

.notification.info {
    border-left-color: #17a2b8;
    background: #f8fdff;
}

.notification .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification .close-btn:hover {
    color: #495057;
}

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

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

/* Draft Ads Section */
.draft-ads-section {
    max-width: 95%;
    width: 100%;
    margin: 20px auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.draft-ads-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.draft-ads-header:hover {
    background: #e9ecef;
}

.draft-ads-header h3 {
    margin: 0;
    color: #495057;
}

.draft-ads-content {
    padding: 0;
}

/* Draft Ads Controls */
.draft-ads-controls {
    padding: 20px 30px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.control-btn.save-btn:hover:not(:disabled) {
    background: #218838;
}

/* No draft ads message */
.no-draft-ads {
    padding: 40px 30px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    display: none;
}

.no-draft-ads p {
    margin: 0;
    font-style: italic;
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.image-lightbox.active .image-lightbox-content {
    transform: scale(1);
}

.image-lightbox img {
    max-width: 75vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-lightbox-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

