/* Bisdak Vlogger - Modern Content Generator Styles */
:root {
    --primary-color: #ff7e5f;
    --secondary-color: #feb47b;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #444;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-color-rgb: 255, 126, 95; /* RGB values for primary color */
    
    /* Category Theme Colors */
    --lifestyle-color: #ff6b6b;
    --food-color: #ffa94d;
    --travel-color: #4dabff;
    --education-color: #34c759;
    --business-color: #5856d6;
    --health-color: #5ac8fa;
    --agriculture-color: #8bc34a;
    --technology-color: #007aff;
    --entertainment-color: #ff2d55;
    --home-color: #9c27b0;
    --relationships-color: #ff9500;
}

body {
    font-family: 'Nunito', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.vlogger-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header section */
.header-section {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.1));
    border-radius: var(--border-radius);
}

.header-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.header-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.header-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(255, 126, 95, 0.1);
}

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.header-action {
    margin-top: 2rem;
}

/* Random Content Section Styling */
.random-content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: var(--transition);
}

.random-content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.15);
}

.random-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.random-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.random-content-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

#randomContentBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#randomContentBtn i {
    font-size: 1.2rem;
}

#randomContentBtn:hover i {
    animation: spin 1s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4);
    background: linear-gradient(to right, #ff6a4c, #fea968);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary.clicked {
    animation: button-pulse 0.3s ease;
}

@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    display: block;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 800px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Category grid */
.category-grid {
    margin-bottom: 4rem;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-card.selected {
    border: 3px solid var(--primary-color);
    transform: translateY(-5px);
}

.category-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.category-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.category-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-content p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.category-topics {
    margin-top: auto;
}

.category-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-topics li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.category-topics li:last-child {
    border-bottom: none;
}

.category-topics li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.category-topics li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Random content button */
.random-content-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.btn-random-content {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    z-index: 1;
}

.btn-random-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-random-content:hover:before {
    left: 100%;
}

.btn-random-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #feb47b, #ff7e5f);
}

.btn-random-content:active,
.btn-random-content.clicked {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-random-content i {
    font-size: 1.3rem;
    margin-right: 12px;
    animation: gentleSpin 3s infinite alternate;
    display: inline-block;
}

@keyframes gentleSpin {
    0% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

/* Subtle pulse animation for the button */
@keyframes subtlePulse {
    0% { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 8px 20px rgba(255, 126, 95, 0.2); }
    100% { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
}

.btn-random-content {
    animation: subtlePulse 3s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-random-content {
        padding: 14px 28px;
        font-size: 1.1rem;
        min-width: 240px;
    }
    
    .btn-random-content i {
        font-size: 1.2rem;
    }
}

/* Add a subtle enhancement to category cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: rgba(255, 126, 95, 0.3);
}

.category-content h3 {
    transition: color 0.3s ease;
}

.category-card:hover .category-content h3 {
    color: #ff7e5f;
}

/* Add subtle animation to category icons */
.category-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Tooltip styling */
#global-tooltip {
    position: fixed;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    max-width: 250px;
    text-align: center;
}

#global-tooltip:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #feb47b transparent transparent transparent;
}

#global-tooltip.arrow-top:after {
    bottom: auto;
    top: -8px;
    transform: translateX(-50%) rotate(180deg);
}

#global-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Hide all Bootstrap tooltips and popovers */
.tooltip, .popover, [role="tooltip"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Only show our global tooltip */
#global-tooltip.visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style for elements with custom tooltip */
[data-custom-tooltip] {
    cursor: help;
    position: relative;
}

/* Highlight pulse animation for random selection */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 126, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0); }
}

.highlight-pulse {
    animation: highlight-pulse 1.5s ease-out;
}

/* Category-specific styling */
.category-card[data-category="lifestyle"] .category-icon {
    background: var(--lifestyle-color);
    color: white;
}

.category-card[data-category="food"] .category-icon {
    background: var(--food-color);
    color: white;
}

.category-card[data-category="travel"] .category-icon {
    background: var(--travel-color);
    color: white;
}

.category-card[data-category="education"] .category-icon {
    background: var(--education-color);
    color: white;
}

.category-card[data-category="business"] .category-icon {
    background: var(--business-color);
    color: white;
}

.category-card[data-category="health"] .category-icon {
    background: var(--health-color);
    color: white;
}

.category-card[data-category="agriculture"] .category-icon {
    background: var(--agriculture-color);
    color: white;
}

.category-card[data-category="technology"] .category-icon {
    background: var(--technology-color);
    color: white;
}

.category-card[data-category="entertainment"] .category-icon {
    background: var(--entertainment-color);
    color: white;
}

.category-card[data-category="home"] .category-icon {
    background: var(--home-color);
    color: white;
}

.category-card[data-category="relationships"] .category-icon {
    background: var(--relationships-color);
    color: white;
}

/* Category-specific badges */
#categoryBadge[data-category="lifestyle"],
#resultsCategoryBadge[data-category="lifestyle"] {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--lifestyle-color);
}

#categoryBadge[data-category="food"],
#resultsCategoryBadge[data-category="food"] {
    background-color: rgba(255, 169, 77, 0.1);
    color: var(--food-color);
}

#categoryBadge[data-category="travel"],
#resultsCategoryBadge[data-category="travel"] {
    background-color: rgba(77, 171, 255, 0.1);
    color: var(--travel-color);
}

#categoryBadge[data-category="education"],
#resultsCategoryBadge[data-category="education"] {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--education-color);
}

#categoryBadge[data-category="business"],
#resultsCategoryBadge[data-category="business"] {
    background-color: rgba(88, 86, 214, 0.1);
    color: var(--business-color);
}

#categoryBadge[data-category="health"],
#resultsCategoryBadge[data-category="health"] {
    background-color: rgba(90, 200, 250, 0.1);
    color: var(--health-color);
}

#categoryBadge[data-category="agriculture"],
#resultsCategoryBadge[data-category="agriculture"] {
    background-color: rgba(139, 195, 74, 0.1);
    color: var(--agriculture-color);
}

#categoryBadge[data-category="technology"],
#resultsCategoryBadge[data-category="technology"] {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--technology-color);
}

#categoryBadge[data-category="entertainment"],
#resultsCategoryBadge[data-category="entertainment"] {
    background-color: rgba(255, 45, 85, 0.1);
    color: var(--entertainment-color);
}

#categoryBadge[data-category="home"],
#resultsCategoryBadge[data-category="home"] {
    background-color: rgba(156, 39, 176, 0.1);
    color: var(--home-color);
}

#categoryBadge[data-category="relationships"],
#resultsCategoryBadge[data-category="relationships"] {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--relationships-color);
}

/* Category-specific content idea styling */
.content-idea-item[data-category="lifestyle"] {
    border-left-color: var(--lifestyle-color);
}

.content-idea-item[data-category="food"] {
    border-left-color: var(--food-color);
}

.content-idea-item[data-category="travel"] {
    border-left-color: var(--travel-color);
}

.content-idea-item[data-category="education"] {
    border-left-color: var(--education-color);
}

.content-idea-item[data-category="business"] {
    border-left-color: var(--business-color);
}

.content-idea-item[data-category="health"] {
    border-left-color: var(--health-color);
}

.content-idea-item[data-category="agriculture"] {
    border-left-color: var(--agriculture-color);
}

.content-idea-item[data-category="technology"] {
    border-left-color: var(--technology-color);
}

.content-idea-item[data-category="entertainment"] {
    border-left-color: var(--entertainment-color);
}

.content-idea-item[data-category="home"] {
    border-left-color: var(--home-color);
}

.content-idea-item[data-category="relationships"] {
    border-left-color: var(--relationships-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .header-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .vlogger-container {
        padding: 1.5rem;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-image-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .header-section {
        padding: 2rem 0;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-content h3 {
        font-size: 1.3rem;
    }
    
    .random-content-title {
        font-size: 1.5rem;
    }
    
    #randomContentBtn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .vlogger-container {
        padding: 1rem;
    }
    
    .header-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .category-image-container {
        height: 140px;
    }
    
    .category-content {
        padding: 1rem;
    }
    
    .category-content h3 {
        font-size: 1.2rem;
    }
    
    .random-content-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .random-content-title {
        font-size: 1.3rem;
    }
    
    #randomContentBtn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Page layout structure */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 56px; /* Height of the navbar */
}

.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 2rem; /* Add padding to prevent content from touching footer */
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    overflow-y: auto;
    position: relative;
    animation: scale-in 0.4s ease-out;
}

@keyframes scale-in {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.loading-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loading-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 15s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.loading-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.loading-steps {
    padding: 2rem;
}

.loading-step {
    display: flex;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    transition: opacity 0.5s;
}

.loading-step.active {
    opacity: 1;
}

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

.loading-step.completed .step-progress {
    background-color: var(--primary-color);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 2;
}

.step-progress {
    width: 3px;
    height: 100%;
    background-color: #f0f0f0;
    flex-grow: 1;
    transition: background-color 0.3s;
}

.loading-step:last-child .step-progress {
    display: none;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.step-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.loading-footer {
    background-color: #f9f9f9;
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
}

.loading-tip {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.loading-tip i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Progress animation for active step */
.loading-step.active .step-number {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 126, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0); }
}

/* Content result container */
.content-result {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--box-shadow);
    display: none;
}

.content-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.content-result-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.content-result-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.content-result-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-result-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.content-section-text {
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: white;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    width: 100%;
}

/* Content Result Styling */
.content-result {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 900px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.content-result.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.content-result-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 2rem;
    position: relative;
}

.content-result-category {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    text-transform: uppercase;
}

.content-result-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.content-result-body {
    padding: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section-title {
    border-bottom: 2px solid var(--primary-color-light);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.content-section-text {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* New styles for content subsections */
.content-subsection {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color-light);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.content-subsection:last-child {
    margin-bottom: 0;
}

.content-subsection-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.content-points {
    padding-left: 1.5rem;
}

.content-points li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-points li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for content */
@media (max-width: 768px) {
    .content-result-title {
        font-size: 1.5rem;
    }
    
    .content-section-title {
        font-size: 1.3rem;
    }
    
    .content-subsection {
        padding: 1rem;
    }
    
    .content-subsection-title {
        font-size: 1.1rem;
    }
    
    .content-section-text,
    .content-points li {
        font-size: 1rem;
    }
}

/* Styles for bullet points within numbered list items */
.content-bullets {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.content-bullets li {
    margin-bottom: 0.5rem;
    font-size: 0.95em;
}

.content-bullets li:last-child {
    margin-bottom: 0;
}

/* Style Selection Modal */
.style-modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 999;
}

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

.style-modal {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    left: 50%;
    max-height: 90vh;
    max-width: 700px;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -40%);
    transition: all 0.4s ease;
    visibility: hidden;
    width: 90%;
    z-index: 1000;
}

.style-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    visibility: visible;
}

.style-modal-content {
    padding: 0;
}

.style-modal-header {
    align-items: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
}

.style-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.close-style-modal {
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    transition: all 0.2s;
}

.close-style-modal:hover {
    color: #f0f0f0;
}

.style-modal-body {
    padding: 25px;
}

.style-description {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.style-options {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.style-option {
    background-color: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    overflow: hidden;
    padding: 15px;
    transition: all 0.3s ease;
}

.style-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.style-option.active {
    background-color: #f0f8ff;
    border-color: #2575fc;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.2);
}

.style-icon {
    align-items: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    color: #fff;
    display: flex;
    font-size: 24px;
    height: 60px;
    justify-content: center;
    margin-right: 15px;
    min-width: 60px;
    width: 60px;
}

.style-info {
    flex: 1;
}

.style-info h4 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
}

.style-info h5 {
    color: #6a11cb;
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    margin: 0 0 8px;
}

.style-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.style-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* Responsive adjustments for style modal */
@media (max-width: 768px) {
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .style-modal-content {
        width: 95%;
    }
}

/* Placeholder message style */
.placeholder-message {
    text-align: center;
    padding: 40px 20px;
    color: #8a8a8a;
}

.placeholder-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d1d1d1;
}

.placeholder-message p {
    font-size: 18px;
    font-weight: 500;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    max-width: 350px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.info {
    background-color: #3498db;
    border-left: 5px solid #2980b9;
}

.notification.success {
    background-color: #2ecc71;
    border-left: 5px solid #27ae60;
}

.notification.warning {
    background-color: #f39c12;
    border-left: 5px solid #e67e22;
}

.notification.error {
    background-color: #e74c3c;
    border-left: 5px solid #c0392b;
}

/* Bisaya-themed notification styling */
.notification::before {
    content: "🌴";
    margin-right: 8px;
}

.notification.success::before {
    content: "✅";
}

.notification.warning::before {
    content: "⚠️";
}

.notification.error::before {
    content: "❌";
}

/* Custom Topic Section Styling */
.custom-topic-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: var(--transition);
}

.custom-topic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.custom-topic-container {
    max-width: 800px;
    margin: 0 auto;
}

.custom-topic-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.custom-topic-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: var(--transition);
}

.custom-topic-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.language-selector {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.language-selector label {
    margin-right: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.topic-language-select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: var(--transition);
}

.topic-language-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.custom-topic-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-topic-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-topic-actions .btn-primary i {
    font-size: 1.1rem;
}
