:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #6d28d9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --header-gradient-start: #2c3e50;
    --header-gradient-end: #4ca1af;
    --status-bg: rgba(23, 43, 77, 0.95);
    --publish-step-bg: #f7f0ea;
    --publish-step-border: #ffba08;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-bottom: 80px; 
}

.app-logo {
    display: none;
}

.gradient-header {
    display: none;
}

.header-title {
    display: none;
}

.premium-header {
    position: relative;
    background: linear-gradient(135deg, 
        #4361ee 0%, 
        #6366f1 25%, 
        #64748b 50%, 
        #475569 75%, 
        #334155 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.header-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.logo-section {
    flex-shrink: 0;
}

.premium-logo {
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-section {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.brand-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.brand-slogan {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    font-weight: 400;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    letter-spacing: 0.025em;
    color: rgba(255, 255, 255, 0.85);
}

.header-actions {
    flex-shrink: 0;
}

.btn-premium {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card {
    border-radius: 0.5rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Status Box */
.status-box {
    display: none !important;
}

.status-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 500;
    cursor: pointer;
}

.status-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.status-message {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-message:last-child {
    border-bottom: none;
}

.status-message .timestamp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-right: 8px;
}

/* Prompt Preview */
#promptPreview {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Step Indicator */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    padding: 0 10px;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 20%;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: var(--accent-color);
    color: white;
}

.step-5-accessible {
    cursor: pointer;
}

.step[data-step="5"] .step-number,
.step-5-accessible .step-number {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: 2px solid var(--primary-color) !important;
}

.step[data-step="5"] .step-title,
.step-5-accessible .step-title {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.step.completed[data-step="5"] .step-number {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border: 2px solid var(--accent-color) !important;
}

.step.completed[data-step="5"] .step-title {
    color: var(--accent-color) !important;
    font-weight: 700;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th, .table td {
    vertical-align: middle;
}

.table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Difficulty and competition indicators */
.difficulty-indicator, .competition-indicator {
    display: inline-block;
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.difficulty-level, .competition-level {
    height: 100%;
}

.level-easy {
    background-color: #4ade80;
    width: 30%;
}

.level-medium {
    background-color: #facc15;
    width: 60%;
}

.level-hard {
    background-color: #f87171;
    width: 90%;
}

.level-low {
    background-color: #4ade80;
    width: 30%;
}

.level-moderate {
    background-color: #facc15;
    width: 60%;
}

.level-high {
    background-color: #f87171;
    width: 90%;
}

/* Content editor */
.content-editor {
    min-height: 400px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: white;
    word-break: break-word;
    white-space: pre-line;
}

/* AI Detection meter */
.detection-meter {
    width: 100%;
    margin: 20px 0;
}

.detection-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.detection-result {
    padding: 15px;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    border-left: 4px solid #4ade80;
}

.improvement-suggestions {
    margin-top: 20px;
}

/* Uploaded content preview */
#uploadedContentPreview {
    min-height: 250px;
    margin-bottom: 15px;
}

/* Clipboard button tweaks */
.btn-clipboard {
    padding: 0.30rem 0.6rem 0.18rem 0.6rem;
    font-size: 1.2rem;
}

.btn-clipboard:active, .btn-clipboard.active {
    background: #eaf0fb;
    color: #294cb5;
}

#copyContentBtn, #copyUploadedContentBtn {
    /* consistency for clipboard button positioning */
    /* they're already in header area, inline. */
    /* If needed, can further adjust for appearance */
}

@media (max-width: 768px) {
    .premium-header {
        min-height: 100px;
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
    }
    
    .brand-section {
        margin-left: 0.75rem;
    }
    
    .header-actions {
        margin-top: 0;
    }
    
    .btn-premium {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 10px;
    }
    .steps-indicator::before {
        display: none;
    }
    .step {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        margin-bottom: 0;
    }
    .step-title {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .brand-section {
        margin-left: 0.5rem;
    }
    
    .header-actions .btn-premium {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}