/* 
 * Create Homily - CSS Styles
 * Version: 2.1.1
 * This file contains styles specific to the Create Homily page
 */

:root {
    --primary-light: #d2c4e4;
    --primary-medium: #a4b6e5;
    --primary: #6490d3;
    --primary-dark: #4e81bc;
    --primary-darker: #2a6b9d;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

/* Layout and Structure */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.dashboard-main {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    background-color: var(--light-bg);
    transition: margin-left 0.3s ease;
}

/* Small logo in header */
.header-logo img.small-logo {
    height: 40px;
    width: auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-darker);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Sidebar Components */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    text-align: center;
}

.sidebar-logo {
    font-size: 1.3rem;
    color: var(--primary-darker);
    font-weight: bold;
    text-decoration: none;
}

.sidebar-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    text-align: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background-color: var(--primary-medium);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.profile-name {
    font-weight: 600;
    color: var(--primary-darker);
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* Navigation Menu */
.sidebar-menu {
    padding: 1rem 0;
}

.menu-category {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--primary-darker);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item.active {
    background-color: rgba(164, 182, 229, 0.2);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.menu-icon {
    margin-right: 0.75rem;
    color: var(--primary-dark);
    width: 20px;
    text-align: center;
}

/* Create Homily Button */
.create-homily-btn {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
}

.create-homily-btn a {
    display: block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.create-homily-btn a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Sidebar Footer with Plan Info */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.current-plan-info {
    margin-bottom: 1rem;
}

.current-plan-info h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--primary-darker);
}

.plan-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.plan-badge {
    background-color: var(--primary-light);
    color: var(--primary-darker);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.homilies-remaining {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.update-plan-btn {
    display: block;
    background-color: transparent;
    color: var(--primary);
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.update-plan-btn:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.welcome-message {
    color: var(--primary-darker);
    font-size: 1.15rem;
    font-weight: 500;
}

/* Main Content Sections */
.dashboard-content {
    padding: 1.5rem;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    color: var(--primary-darker);
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-danger {
    background-color: var(--danger);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Plan Info Bar */
.plan-info-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
    z-index: 90;
    margin-left: 250px;
}

.plan-info-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.plan-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-info-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.plan-info-value {
    font-weight: 600;
    color: var(--primary-darker);
}

.plan-info-upgrade-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-info-upgrade-btn:hover {
    background-color: var(--primary-dark);
}

/* Custom Homily Generation Styles */
.homily-generator-container {
    max-width: 1200px;
    margin: 0 auto;
}

.generator-intro {
    margin-bottom: 2rem;
    color: var(--primary-darker);
}

.generator-intro h1 {
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-main.sidebar-active {
        margin-left: 250px;
    }
    
    .plan-info-bar {
        margin-left: 0;
    }
    
    .plan-info-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Added specifically for the Create Homily page */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 144, 211, 0.2);
}

/* Homily result styling */
.homily-display {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.homily-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 2rem;
}

.homily-text p {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.hidden {
    display: none !important;
}

/* Footer */
.dashboard-footer {
    background-color: #fff;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img.small-logo {
    height: 30px;
    width: auto;
}

.dashboard-footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.dashboard-footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.dashboard-footer-links a:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

.upgrade-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.upgrade-modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

/* Subscription limit modal */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.subscription-modal.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.subscription-modal.active .subscription-modal-content {
    transform: scale(1);
}

.subscription-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-align: center;
}

.subscription-modal h3 {
    color: var(--primary-darker);
    text-align: center;
    margin-bottom: 1rem;
}

.subscription-modal p {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.subscription-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.subscription-modal-buttons button {
    min-width: 120px;
} 