/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Email Verification Banner - Pill Style */
.verification-banner {
    position: relative;
    margin: 20px auto 30px auto;
    width: calc(100% - 40px);
    min-width: 320px;
    
    /* Pill styling matching user button */
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        rgba(37, 99, 235, 0.16) 50%,
        rgba(29, 78, 216, 0.14) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 28px;
    padding: 12px 20px;
    backdrop-filter: blur(20px);
    
    /* Smooth animations */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.verification-banner[hidden] {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    margin-bottom: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.banner-icon svg {
    width: 20px;
    height: 20px;
    color: #1e3a8a;
}

.banner-message {
    flex: 1;
    min-width: 250px;
}

.banner-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e3a8a;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.resend-btn, .check-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #1e3a8a;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.resend-btn:hover, .check-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.dismiss-btn {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
    backdrop-filter: blur(8px);
    padding: 0;
}

.dismiss-btn:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #374151;
    transform: scale(1.05);
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upload section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.upload-area.has-image {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
}

/* Privacy indicator styling */
.privacy-note {
    color: #059669;
    font-weight: 500;
    margin-top: 4px;
    display: block;
    font-size: 0.8rem;
}

.upload-area.has-image .privacy-note {
    color: #764ba2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.upload-placeholder h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-placeholder p {
    color: #64748b;
    font-size: 1rem;
}

.browse-link {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
}

.upload-placeholder small {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Instructions section */
.instructions-section {
    margin-top: 24px;
}

.instructions-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.instructions-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

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

/* Image preview section */
.preview-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.preview-section h3 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.preview-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-wrapper.zoomed {
    overflow: auto;
}

.preview-wrapper img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.preview-info {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

/* Process button */
.process-button {
    margin-top: 24px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.process-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.process-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.process-button.processing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results section */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.image-container h3 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.image-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-wrapper.zoomed {
    overflow: auto;
    aspect-ratio: unset;
    height: 400px;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.preview-wrapper:hover .zoom-controls,
.image-wrapper:hover .zoom-controls,
.zoom-controls.active {
    opacity: 1;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(156, 163, 175, 0.7);
    transform: scale(1.05);
}

.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    color: #9ca3af;
}

.zoom-level {
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
    border: 1px solid rgba(209, 213, 219, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* Results actions */
.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-further-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.edit-further-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.edit-further-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.edit-further-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.edit-further-button:hover::before {
    left: 100%;
}

.edit-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.download-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-button:hover::before {
    left: 100%;
}

.download-icon {
    width: 18px;
    height: 18px;
}

.reset-button {
    padding: 12px 24px;
    background: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #f8fafc;
    color: #374151;
    border-color: #9ca3af;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    align-items: center;
}

.toast {
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(-120px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    
    /* Flexible width based on content */
    width: fit-content;
    min-width: 200px;
    max-width: min(520px, calc(100vw - 40px));
    
    /* Allow text wrapping for longer messages */
    white-space: nowrap;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: toastBounce 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.hide {
    transform: translateY(-120px) scale(0.9);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes toastBounce {
    0% {
        transform: translateY(-120px) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: translateY(8px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-message {
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.toast-message.long {
    white-space: normal;
    word-break: break-word;
    max-width: 400px;
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Progress Bar for Auto-dismiss */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 28px 28px;
    transform-origin: left;
    animation-timing-function: linear;
}

.toast-progress.running {
    animation-name: progressBar;
}

@keyframes progressBar {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Toast Types with Subtle Colors */
.toast.success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.12) 0%, 
        rgba(5, 150, 105, 0.16) 50%,
        rgba(4, 120, 87, 0.14) 100%);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.25);
    backdrop-filter: blur(20px);
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0.4) 0%, 
        rgba(5, 150, 105, 0.3) 100%);
}

.toast.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.12) 0%, 
        rgba(220, 38, 38, 0.16) 50%,
        rgba(185, 28, 28, 0.14) 100%);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.25);
    backdrop-filter: blur(20px);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.4) 0%, 
        rgba(220, 38, 38, 0.3) 100%);
}

.toast.info {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        rgba(37, 99, 235, 0.16) 50%,
        rgba(29, 78, 216, 0.14) 100%);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(20px);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.4) 0%, 
        rgba(37, 99, 235, 0.3) 100%);
}

.toast.warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.12) 0%, 
        rgba(217, 119, 6, 0.16) 50%,
        rgba(180, 83, 9, 0.14) 100%);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.25);
    backdrop-filter: blur(20px);
}

.toast.warning .toast-progress {
    background: linear-gradient(90deg, 
        rgba(245, 158, 11, 0.4) 0%, 
        rgba(217, 119, 6, 0.3) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 15px; /* Back to normal since banner is no longer fixed */
    }
    
    .toast {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 150px;
        max-width: calc(100vw - 20px);
        margin: 0 10px;
    }
    
    .verification-banner {
        margin: 15px auto 25px auto;
        width: calc(100% - 20px);
        padding: 14px 18px;
        border-radius: 24px;
        min-width: 280px;
    }
    
.banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .banner-message {
        min-width: auto;
        width: 100%;
    }
    
    .banner-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .banner-actions {
        gap: 4px;
    }
    
    .resend-btn, .check-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .dismiss-btn {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .toast {
        min-width: 120px;
        max-width: calc(100vw - 16px);
        margin: 0 8px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .toast-icon {
        width: 18px;
        height: 18px;
    }
    
    .toast-close {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Segmented Progress Bar Styles */
.progress-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.progress-header {
    text-align: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.progress-current-step {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

.progress-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar-track {
    background: #e5e7eb;
    border-radius: 12px;
    height: 24px;
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-segment {
    flex: 1;
    position: relative;
    border-right: 2px solid #f8fafc;
}

.progress-bar-segment:last-child {
    border-right: none;
}

.segment-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.segment-fill.waiting {
    background: #e5e7eb;
    width: 0%;
}

.segment-fill.active {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 100%;
    animation: progress-pulse 2s ease-in-out infinite;
}

.segment-fill.completed {
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 100%;
}

.segment-fill.failed {
    background: linear-gradient(90deg, #ef4444, #f87171);
    width: 100%;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.segment-fill.active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    animation: progress-shine 1.5s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-20px);
        opacity: 1;
    }
    100% {
        transform: translateX(-40px);
        opacity: 0;
    }
}

.segment-label {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.segment-fill.active + .segment-label {
    color: #3b82f6;
    font-weight: 500;
}

.segment-fill.completed + .segment-label {
    color: #10b981;
    font-weight: 500;
}

.segment-fill.failed + .segment-label {
    color: #ef4444;
    font-weight: 500;
}

.progress-steps-info {
    text-align: center;
    margin-top: 16px;
    color: #6b7280;
    font-size: 0.875rem;
}

.steps-completed {
    font-weight: 600;
    color: #3b82f6;
}

.steps-total {
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .progress-section {
        padding: 20px 16px;
    }
    
    .progress-bar-track {
        height: 20px;
        margin-bottom: 14px;
    }
    
    .segment-label {
        top: 24px;
        font-size: 0.7rem;
    }
    
    .progress-header h3 {
        font-size: 0.9rem;
    }
    
    .progress-current-step {
        font-size: 0.8rem;
    }
    
    .progress-steps-info {
        font-size: 0.8rem;
    }
}

/* Workflow Debug Section */
.workflow-debug-section {
    margin-top: 30px;
}

.debug-toggle-button {
    padding: 10px 16px;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.debug-toggle-button:hover {
    background: #f8fafc;
    color: #374151;
    border-color: #d1d5db;
}

.debug-icon {
    width: 16px;
    height: 16px;
}

.workflow-steps {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.workflow-header {
    text-align: center;
    margin-bottom: 24px;
}

.workflow-header h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.workflow-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.workflow-ladder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    bottom: -16px;
    width: 2px;
    height: 16px;
    background: #e2e8f0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-number.completed {
    background: #10b981;
}

.step-number.failed {
    background: #ef4444;
}

.step-title {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.step-status {
    color: #64748b;
    font-size: 0.875rem;
    margin-left: auto;
}

.step-content {
    margin-left: 44px;
}

.step-prompt {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.step-prompt-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.step-prompt-text {
    color: #374151;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.step-response {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 12px;
}

.step-response-label {
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.step-response-text {
    color: #047857;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.step-timing {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 8px;
    text-align: right;
}

/* Footer */
.footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
    padding: 40px 0 20px 0;
    color: #64748b;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.footer-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.footer-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .upload-section,
    .results-section {
        padding: 20px;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .image-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-further-button,
    .download-button,
    .reset-button {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-section h3 {
        justify-content: center;
    }
    
    .footer {
        margin-top: 40px;
        padding: 30px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .header p {
        font-size: 1rem;
    }

    .upload-placeholder h3 {
        font-size: 1.125rem;
    }
}

/* Authentication Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    flex: 1;
    text-align: left;
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
}

.title-text {
    display: flex;
    flex-direction: column;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Modern Auth Button Design */
.auth-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-button:hover::before {
    opacity: 1;
}

.auth-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-button:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}


/* Button Content */
.auth-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.auth-button-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-button-subtitle {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Chevron Icon */
.auth-button-icon {
    display: flex;
    align-items: center;
    margin-left: auto;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.chevron-icon {
    width: 12px;
    height: 12px;
}

.auth-button.menu-open .chevron-icon {
    transform: rotate(180deg);
}

/* Logged in states - Always use purple gradient */
.auth-button.logged-in {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-button.logged-in:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-button.logged-in.unverified {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.auth-button.logged-in.unverified:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Enhanced User Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0;
    min-width: 280px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.user-menu:not([hidden]) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.user-menu-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 2px;
}

.user-menu-email {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
    word-break: break-all;
}

.user-menu-status {
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.user-menu-status.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.user-menu-status.unverified {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.user-menu-divider {
    height: 1px;
    background: #f3f4f6;
}

.user-menu-actions {
    padding: 12px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
}

.menu-btn:hover {
    background-color: #f9fafb;
    color: #111827;
}

.menu-btn.logout {
    color: #dc2626;
}

.menu-btn.logout:hover {
    background-color: rgba(220, 38, 38, 0.05);
    color: #dc2626;
}

.menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: none;
}

.auth-modal:not([hidden]) {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 20px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.auth-modal:not([hidden]) .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 24px 0;
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

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

.optional {
    color: #9ca3af;
    font-weight: normal;
    font-size: 0.85rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}


.form-group input.invalid {
    border-color: #ef4444;
}

.form-group input.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle .eye-icon {
    width: 18px;
    height: 18px;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.field-error:not(:empty) {
    display: block;
}

.field-help {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #5a67d8;
}

.switch-mode {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

/* History Panel Styles */
.history-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.history-panel.active {
    right: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.history-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.history-content {
    padding: 20px;
}

.history-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.history-item-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.history-item-instructions {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-history {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

.history-error {
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    padding: 20px;
}

/* Enhanced History Interface Styles */
.history-item.enhanced {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.2s ease;
}

.history-item.enhanced:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

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

.date-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.time {
    font-size: 11px;
    color: #6b7280;
}

.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status.success {
    background: #dcfce7;
    color: #166534;
}

.status.failed {
    background: #fecaca;
    color: #991b1b;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.warning {
    background: #fed7aa;
    color: #9a3412;
}

.request-info {
    margin-bottom: 16px;
}

.prompt {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.file-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.processing-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: #d1d5db;
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.star:hover {
    transform: scale(1.1);
    color: #fbbf24;
}

.star.filled {
    color: #fbbf24;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.reuse-btn, .copy-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reuse-btn:hover, .copy-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.reuse-btn:active, .copy-btn:active {
    transform: translateY(1px);
}

/* Account Settings Modal Styles */
.account-settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #64748b;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.tab-content {
    display: none;
}

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

.account-settings-modal .modal-content {
    max-width: 480px;
}

/* Content Pages Modal Styles */
.content-modal {
    max-width: 1000px;
    max-height: 90vh;
}

.content-modal-body {
    max-height: 75vh;
    overflow-y: auto;
    line-height: 1.6;
}

.content-modal-body h1 {
    color: #333;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.content-modal-body h2 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.content-modal-body h3 {
    color: #444;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.content-modal-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.content-modal-body a {
    color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.content-modal-body a:hover {
    text-decoration: underline;
    filter: brightness(1.1);
}

.content-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-modal-body li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.content-modal-body .step {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.content-modal-body .step-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.content-modal-body .tip {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.content-modal-body .tip-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    border-left: 2px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    font-size: 0.95rem;
}

.content-modal-body .warning {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.content-modal-body .warning-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    border-left: 2px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    font-size: 0.95rem;
}

/* Responsive Adjustments for Auth */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-title {
        text-align: center;
    }
    
    .logo-title-container {
        justify-content: center;
    }
    
    .app-logo {
        height: 55px;
        margin-left: 5px;
    }
    
    .history-panel {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
}