/* Preview Page Styles */
body {
    background-color: white;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 560px; /* Extended by an additional 80px as requested */
    background-color: var(--gray-100);
    z-index: -1;
}

.preview-section {
    padding: 2rem 0;
    text-align: left;
}

.preview-section h1,
.preview-section p,
.preview-section .subtitle {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 8.5in;
}

.preview-section h1 {
    margin-bottom: 0.5rem;
}

.preview-section .subtitle {
    margin-bottom: 2rem;
    color: #4A5568;
}

.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin: 2rem 0;
    max-width: 8.5in;
    margin-left: auto;
    margin-right: auto;
}

.back-button {
    display: contents;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--primary);
}

.download-options {
    display: flex;
    gap: 1rem;
}

.secondary-button {
    background: var(--gray-100);
    color: var(--text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--gray-200);
}

.download-png-button {
    background: #191919;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-png-button:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
}

.premium-button {
    background: linear-gradient(to right, #FF4401, #FF7A01);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 68, 1, 0.2);
    background-size: 200% auto;
}

.premium-button:hover {
    box-shadow: 0 6px 8px rgba(255, 68, 1, 0.3);
    transform: translateY(-1px);
}

.preview-container {
    padding: 0;
    margin: 4rem auto; /* Increased from 2rem to 4rem to add 40px more space */
    max-width: 8.5in;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .preview-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .download-options {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    

    
    .preview-container {
        padding: 1rem;
    }
}

/* Daily Checkbox Toggle Functionality */
.daily-checkbox {
    transition: all 0.2s ease;
}

.daily-checkbox:hover {
    border-color: rgba(25, 25, 25, 0.6);
    transform: scale(1.05);
}

.daily-checkbox.inactive {
    background-color: #f5f5f5;
    border-color: rgba(25, 25, 25, 0.2);
}

.daily-checkbox.inactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #BABABA;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
}

.daily-checkbox.inactive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #BABABA;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
}

/* AI-driven inactive checkboxes (crossed out by AI intelligence) */
.daily-checkbox.ai-inactive {
    background-color: #f5f5f5;
    border-color: rgba(25, 25, 25, 0.2);
}

.daily-checkbox.ai-inactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #BABABA;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
}

.daily-checkbox.ai-inactive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #BABABA;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
}

/* AI-inactive checkboxes should still be hoverable and clickable */
.daily-checkbox.ai-inactive:hover {
    border-color: rgba(25, 25, 25, 0.6);
    transform: scale(1.05);
}

/* Day header clickable styling */
.day-header:hover {
    background-color: rgba(25, 25, 25, 0.1);
}

.day-header:active {
    background-color: rgba(25, 25, 25, 0.2);
}





@media (max-width: 768px) {
    .upgrade-modal-content {
        padding: 1.5rem;
    }
    
    .upgrade-modal-buttons {
        gap: 0.75rem;
    }
}
