/* frontend/assets/css/style.css */

/* 1. Reset & Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 2. Page Structure */
.page-content { display: none; }
.page-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }
.dashboard-tab-content { display: none; }
.dashboard-tab-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* 3. NAVIGATION CARDS (Professional Tabs) */
.nav-card-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-card-tab:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-card-tab.tab-active {
    border-color: #10b981; /* Primary Color */
    background: #f0fdf4; /* Very light green */
    box-shadow: 0 0 0 1px #10b981; /* Ring */
}

.nav-card-tab .icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.nav-card-tab .text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* 4. CARDS */
.campaign-card { transition: transform 0.2s, box-shadow 0.2s; }
.campaign-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* 5. STICKY HEADER FIX */
#customization-view .sticky { top: 80px !important; z-index: 20; }
body { padding-bottom: 80px; }

/* 6. CAMPAIGN STORY EDITOR (THE FIX) */
/* Forces the editor box to respect width and scroll height */
./* --- CAMPAIGN STORY EDITOR (FINAL FIX) --- */

/* 1. The Container (The Box) */
.ql-container {
    background: white;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    /* Allow user to resize the height manually */
    resize: vertical !important; 
    overflow: hidden; /* Handled by inner editor */
    min-height: 300px;
}

/* 2. The Text Area (Inside the Box) */
/* --- CAMPAIGN EDITOR (FINAL STRENGTH) --- */
.ql-container {
    background: white;
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 0.5rem 0.5rem;
}

.ql-editor {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem !important;
    
    /* THE FORCE WRAP FIX */
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important; /* <--- This forces even long URLs to break */
    word-break: break-word !important;
}

.ql-toolbar {
    border: 1px solid #e2e8f0;
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #f8fafc;
}

/* 7. PUBLIC PAGE TYPOGRAPHY FIX */
/* Makes the story look professional on the donor page */
.rich-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #334155;
    line-height: 1.7;
}

.rich-content p {
    margin-bottom: 1em;
    margin-top: 0;
}

.rich-content ul, .rich-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.rich-content li {
    margin-bottom: 0.25rem;
}

.rich-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}