/* ============================================
   LinkedIn Post Generator - Custom CSS (No Tailwind)
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0077B5;
    --brand-blue: #5B6B9F;
    --brand-magenta: #9B5B8F;
    --brand-coral: #C95B6B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --font-display: 'Manrope', system-ui, sans-serif;
}



/* Layout */
.container {
    width: 100%;
    /* max-width: 1536px; */
    background-color: var(--white);
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.container.linkedin-post{
    max-width: 700px;
    margin: 0 auto;
}

.wwdc_premium_cont .sidebar {
    width: 100%;
    background-color: #FAFAFA;
    border-right: 1px solid var(--gray-100);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.content-area {
    flex: 1;
    background-color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.wwdc_premium_cont .header {
    margin-bottom: 20px;
    padding: 20px;
}

.header-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    margin: 0;
}

.header-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Stepper Navigation */
.stepper-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.stepper-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.stepper-list li::before{
    display: none;
}
.stepper-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
    border: 1px solid transparent;
}

.stepper-item-active {
    background-color: var(--white);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--gray-100);
}

.stepper-item-inactive {
    opacity: 0.6;
}

.stepper-item-inactive:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5);
}

.stepper-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}

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

.stepper-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: normal;
}

.stepper-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
}

.step-icon {
    margin-left: auto;
    font-size: 0.875rem;
}

/* Sidebar Button */
.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

html body .sidebar-footer .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--brand-coral), var(--brand-magenta));
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

html body .sidebar-footer .btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

html body .sidebar-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-hint {
    font-size: 0.625rem;
    text-align: center;
    color: var(--gray-400);
    margin-top: 0.75rem;
}

/* Progress Bar */
.progress-container {
    height: 0.375rem;
    width: 100%;
    background-color: var(--gray-50);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-magenta));
    border-radius: 0 9999px 9999px 0;
    transition: width 0.5s;
}

/* Step Content */
.step-content {
    flex: 1;
    /* display: flex; */
    flex-direction: column;
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 3rem;
    overflow-y: auto;
}
.step-content h2{
    font-size: 40px;
}
.step-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step-panel.active {
    display: block;
}

.step-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem !important;
}

.step-description {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Form Elements */
.step-panel .form-group {
    margin-bottom: 15px;
}

.step-panel .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.step-panel .form-input,
.step-panel .form-textarea,
.step-panel .form-select {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    transition: all 0.2s;
    height: auto;
    font-family: inherit;
}

.step-panel .form-input:focus,
.step-panel .form-textarea:focus,
.step-panel .form-select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(91, 107, 159, 0.1);
}

.step-panel .form-textarea {
    resize: none;
    height: 100px;
}

/* Checkbox Group */
.step-panel .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    cursor: pointer;
    position: relative;
    display: inline-block;
    flex: auto;
}

html body .checkbox-label .checkbox-input {
    position: absolute !important;
    opacity: 0;
    width: 0;
    height: 0 !important;
}
html body .checkbox-card svg{
    width: 20px;
    height: 20px;    
}
html body .checkbox-card svg :is(rect,path){
    stroke:var(--brand-blue);
}

html body .checkbox-card {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    padding: 9px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background-color: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
        width: 100%;
}

.checkbox-card:hover {
    border-color: var(--gray-300);
    background-color: var(--gray-50);
}

.checkbox-input:checked+.checkbox-card {
    background: rgba(91, 107, 159, 0.15);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(91, 107, 159, 0.2);
    font-weight: 600;
}
.step-content.custom-scrollbar button{
    background-color: #333333;
    color: #fff;
}

/* Navigation Buttons */
.nav-buttons {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    color: var(--gray-900);
}

html body .nav-buttons .btn-next {
    margin-left: auto;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background-color: var(--gray-900);
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html body .nav-buttons .btn-next:hover {
    background-color: var(--gray-800);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.modal.flex {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 10px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0 !important;
    color: var(--gray-900);
}

.modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--gray-100);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.modal-footer button{
        flex: auto;
    background: linear-gradient(to right, var(--brand-coral), var(--brand-magenta)) !important;
    color: #fff;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
/* Utility Classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-white {
    color: var(--white);
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-2 {
    border-width: 2px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-gray-200 {
    box-shadow: 0 10px 15px -3px rgba(229, 231, 235, 0.5);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

html body .qd-step-actions button{
    background-color: #111827 !important;
    color: #FFFFFF;
        padding: 8px 40px !important;
    font-size: 16px;
    margin-top: 20px;
}
html body .qd-step-title{
    font-size: 30px;
}
#generated-prompt{
    margin-bottom: 30px;
}
/* Skeleton Container */
.skeleton-container {
    width: 100%;
    padding: 10px 0;
}

/* Skeleton Lines */
.skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Responsive */
@media screen and (max-width:991px){
    .sidebar{
        right: 0;
        opacity: 1;
        z-index: 0;
    }
}

@media (min-width: 1024px) {
    .container {
        flex-direction: row;
    }

    .wwdc_premium_cont .sidebar {
        width: 100%;
        max-width: 23%;
        margin: 0;
    }

    .step-content {
        padding: 3rem;
    }
}

@media screen and (max-width:575px){
    .step-content{
        padding: 2rem 1.4rem;
    }
}