/* =============================================
   BLOG STYLES
   ============================================= */

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Navigation */
.blog-nav {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-link {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Search Form */
.search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
}

.search-input {
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 14px;
    width: 300px;
}

.search-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: #5a6fd8;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-category-badge a {
    color: white;
    text-decoration: none;
}

.post-card-content {
    padding: 24px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #9ca3af;
}

.post-meta-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-meta i {
    margin-right: 4px;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #5a6fd8;
}

.post-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #667eea;
    color: white;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post {
    display: flex;
    gap: 12px;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: #667eea;
}

.recent-post-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

.tag-link.tag-xl { font-size: 16px; font-weight: 600; }
.tag-link.tag-lg { font-size: 15px; font-weight: 500; }
.tag-link.tag-md { font-size: 14px; }
.tag-link.tag-sm { font-size: 13px; }

/* Pagination */
.pagination-nav {
    margin: 40px 0;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-disabled .pagination-link {
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination-disabled .pagination-link:hover {
    background: transparent;
    color: #9ca3af;
    border-color: #e9ecef;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6c757d;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 16px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    margin-top: 30px;
}

.newsletter-input {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 300px;
    margin-right: 12px;
}

.newsletter-button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.newsletter-privacy {
    margin-top: 12px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-nav-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .newsletter-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .newsletter-button {
        width: 100%;
    }
}

/* =============================================
   EXISTING STYLES BELOW
   ============================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.nav-logo img {
    width: auto;
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 0px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 40px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-description {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: #667eea;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-description {
    color: #ccc;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #667eea;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Authentication Pages */
.auth-section {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.auth-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-footer {
    border-top: 1px solid #e1e5e9;
    padding-top: 24px;
    margin-top: 24px;
}

.auth-footer p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-top: 8px;
}

.profile-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
}

.profile-section h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-value {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-style: normal;
    color: #495057;
    border-left: 4px solid #667eea;
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.logout-link {
    text-align: center;
    margin-bottom: 20px;
}

.logout-link a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #dc3545;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logout-link a:hover {
    background: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }

    .user-dropdown-menu {
        position: fixed;
        top: 70px;
        right: 20px;
        left: auto;
        width: calc(100% - 40px);
        max-width: 280px;
    }

    .user-dropdown-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }

    .user-name {
        max-width: 80px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .features {
        padding: 60px 0;
    }

    .cta {
        padding: 60px 0;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .auth-section {
        padding: 100px 0 60px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-description {
        font-size: 1rem;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }

    .profile-section {
        padding: 20px;
    }

    .directory-title {
        font-size: 2.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .resource-card {
        padding: 24px 20px;
    }

    .tool-title {
        font-size: 2rem;
    }

    .tool-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tool-card {
        position: static;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 0;
    margin-bottom: 0;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-group:hover input ~ .checkmark {
    border-color: #667eea;
}

.checkbox-group input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-group input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.checkbox-group.required .checkbox-text {
    font-weight: 500;
}

.form-label i {
    margin-right: 8px;
    color: #667eea;
}

/* Legal Content Styles */
.legal-content h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 8px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 24px 0 12px 0;
}

.legal-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 16px 0 16px 20px;
    color: #555;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: #333;
    font-weight: 600;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.user-dropdown-toggle:hover {
    background: #667eea;
    color: white;
}

.user-dropdown-toggle .fas.fa-user-circle {
    font-size: 18px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f5;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}

.dropdown-item:hover i {
    color: #667eea;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Directory Page Styles */
.directory-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.directory-header {
    max-width: 800px;
    margin: 0 auto;
}

.directory-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.directory-description {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
}

.directory-content {
    padding: 60px 0 80px;
    background: #fff;
}

.category-section {
    margin-bottom: 60px;
}

.category-header {
    text-align: center;
    margin-bottom: 10px;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Directory Layout */
.directory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start; /* Ensure grid items start at top for sticky positioning */
}

@media (max-width: 1024px) and (min-width: 769px) {
    .directory-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .directory-sidebar {
        order: -1;
    }
}

/* Directory Sidebar */
.directory-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    /* Static positioning - not sticky */
}

/* Simple sticky positioning with scrollable content for tall sidebars */

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

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

.category-nav-item {
    margin-bottom: 8px;
}

.category-nav-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-nav-link:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.category-nav-link.active {
    background: #667eea;
    color: white;
}

/* Mobile Category Dropdown */
.mobile-category-dropdown {
    display: none; /* Hidden by default, shown only on mobile */
    position: sticky;
    top: 80px; /* Below the main header */
    background: white;
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin: 0 -20px 30px -20px; /* Extend to container edges */
}

.dropdown-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: block;
    font-size: 16px;
}

.category-select {
    width: 100%;
    padding: 16px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
    min-height: 50px;
}

.category-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mobile responsive behavior */
@media (max-width: 768px) {
    .mobile-category-dropdown {
        display: block !important; /* Show on mobile */
        position: sticky !important;
        top: 80px; /* Higher value so full dropdown including label is visible */
        margin: 0 0 30px 0; /* Remove negative margins for full width */
        padding: 20px 15px 15px 15px; /* Extra top padding for label visibility */
        background: white !important;
        border-bottom: 2px solid #e9ecef;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    /* Aggressively hide desktop sidebar on mobile */
    nav.directory-sidebar,
    .directory-sidebar {
        display: none !important; /* Hide desktop sidebar on mobile */
        visibility: hidden !important; /* Double ensure it's hidden */
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }
    
    .directory-layout {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px;
    }
    
    .category-select {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .dropdown-label {
        margin-bottom: 2px !important;
    }
}

/* Directory Main Content */
.directory-main {
    min-height: 400px;
}

/* Category Overview */
.category-overview h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.overview-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-overview-card {
    /* Inherits unified-card styling */
}

.category-card-title {
    margin-bottom: 12px;
}

.category-card-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-card-link:hover {
    color: #667eea;
}

.category-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    cursor: default;
}

.category-card-footer {
    display: flex;
    justify-content: flex-start;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    color: white;
    background: #667eea;
    transform: none;
}

/* Category Content */
.category-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.all-categories h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.all-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #5a67d8;
}

/* Resources Grid - Updated for 2 columns */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    /* Inherits unified-card styling */
}

.resource-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.resource-title {
    flex: 1;
    margin: 0;
}

.resource-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #667eea;
}

.website-link {
    color: #888;
    font-size: 1rem;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: #667eea;
}

.resource-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    cursor: default;
}

.resource-footer {
    display: flex;
    justify-content: flex-start;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    color: white;
    background: #667eea;
    transform: none;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Tools Detail Page Styles */
.tool-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #5a67d8;
}

.breadcrumb-separator {
    color: #888;
}

.breadcrumb-category {
    color: #666;
}

.tool-header {
    max-width: 800px;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tool-category .category-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-category .category-link:hover {
    color: #5a6fd8;
}

.tool-content {
    padding: 60px 0 80px;
    background: #fff;
}

.tool-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.tool-section {
    margin-bottom: 40px;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.tool-description,
.tool-notes {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

/* Feature and Use Case Lists */
.tool-features .feature-list,
.tool-use-cases .use-case-list {
    margin: 0 0 0 20px;
    padding: 0;
    list-style: none;
}

.tool-features .feature-list li,
.tool-use-cases .use-case-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 18px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.tool-features .feature-list li::before,
.tool-use-cases .use-case-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    /* position: sticky; */
    top: 100px;
}

.tool-card:first-child {
    z-index: 20;
}

.tool-card:nth-child(2) {
    z-index: 10;
}

.tool-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
}

.tool-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.tool-card-content {
    padding: 24px;
}

.tool-details {
    margin-top: 20px;
}

.tool-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.detail-value .category-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value .category-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.website-link {
    color: #667eea;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

.related-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-tool {
    display: block;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.related-tool:hover {
    background: #e9ecef;
}

.related-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.related-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 404 Error Page Styles */
.error-header {
    text-align: center;
}

.error-section {
    min-height: 100vh;
}

.error-container {
    margin-top: 4rem;
    max-width: 1280px;
}

.error-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.error-robot {
    font-size: 4rem;
    color: #667eea;
    animation: float 3s ease-in-out infinite;
}

.error-speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
}

.speech-tail {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid white;
}

.speech-tail::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #667eea;
}

.error-url-card {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.error-url-card code {
    background: #e9ecef;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

.error-footer {
    margin-top: 2rem;
}

.error-reasons {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.error-reasons h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

.error-reasons ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.error-reasons li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #666;
    border-bottom: 1px solid #eee;
}

.error-reasons li:last-child {
    border-bottom: none;
}

.error-actions {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.error-primary-actions {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-links-section h3,
.error-suggestions-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.error-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.error-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-quick-link:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    color: #333;
}

.error-quick-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.error-quick-link span {
    font-weight: 500;
    font-size: 0.9rem;
}

.error-suggestions-grid {
    margin-bottom: 2rem;
}

.error-suggestion-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.error-suggestion-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.error-humor-section {
    margin-bottom: 0;
}

.error-humor-text {
    font-size: 1rem;
    font-style: italic;
    color: #666;
    margin: 0;
}

.error-contact-section p {
    margin-bottom: 0.5rem;
    color: #666;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .error-robot {
        font-size: 3rem;
    }
    
    .error-speech-bubble {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
        top: -50px;
    }
    
    .error-primary-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-primary-actions .btn {
        width: 200px;
    }
    
    .error-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-quick-link {
        padding: 1rem 0.5rem;
    }
    
    .error-quick-link i {
        font-size: 1.5rem;
    }
}

/* =============================================
   UNIFIED CARD STYLES
   ============================================= */

/* Base card style used across all pages */
.unified-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.unified-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

/* =============================================
   AI TOOL SEARCH STYLES
   ============================================= */

/* Search Section */
.search-section {
    background: #f8f9fa;
    padding: 60px 0 80px;
}

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

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-group {
    display: flex;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.search-input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: #2d3748;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-button {
    padding: 18px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.search-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6c5190 100%);
    transform: translateY(-1px);
}

.search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Loading States */
.search-loading {
    text-align: center;
    padding: 30px 0;
    color: #667eea;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

.loading-spinner i {
    font-size: 1.5rem;
}

/* Error States */
.search-error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c53030;
}

/* Example Prompts Section */
.example-prompts-section {
    padding: 60px 0;
    background: white;
}

.example-prompts-header {
    text-align: center;
    margin-bottom: 50px;
}

.example-prompts-title {
    font-size: 2.5rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 15px;
}

.example-prompts-description {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.example-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.example-prompt-card {
    text-align: center;
}

.example-prompt-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.example-prompt-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.example-prompt-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    font-size: 0.95rem;
}

.example-prompt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.example-prompt-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6c5190 100%);
    transform: translateY(-2px);
}

.example-prompt-card:hover .example-prompt-btn {
    background: linear-gradient(135deg, #5a6fd8 0%, #6c5190 100%);
}

/* Search Results Section */
.search-results-section {
    padding: 40px 0;
}

.search-results-header {
    margin-bottom: 40px;
    text-align: center;
}

.search-results-title {
    font-size: 2rem;
    color: #2d3748;
    font-weight: 600;
}

.search-query {
    color: #667eea;
    font-style: italic;
}

/* Resource Confidence Score */
.resource-confidence {
    margin-top: 8px;
}

.confidence-score {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Resource Category (in search results) */
.resource-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.9rem;
    margin: 12px 0;
}

.resource-category i {
    color: #a0aec0;
}

.resource-category .category-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-category .category-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    color: #718096;
    line-height: 1.6;
}

.no-results a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input, .search-button {
        border-radius: 0;
        width: 100%;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
        padding: 18px 20px;
        min-height: 80px;
    }
    
    .search-button {
        border-radius: 0 0 12px 12px;
        padding: 16px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .search-results-title {
        font-size: 1.5rem;
    }
    
    .confidence-score {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .example-prompts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .example-prompt-card {
        padding: 25px;
    }
    
    .example-prompts-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 40px 0 50px;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 16px 18px;
        min-height: 70px;
    }
    
    .search-button {
        font-size: 1rem;
        padding: 14px 18px;
    }
    
    .search-results-section {
        padding: 40px 0;
    }
    
    .search-results-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .example-prompts-section {
        padding: 40px 0;
    }
    
    .example-prompts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .example-prompt-card {
        padding: 20px;
    }
    
    .example-prompts-title {
        font-size: 1.8rem;
    }
    
    .example-prompts-description {
        font-size: 1rem;
    }
    
    .example-prompt-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .example-prompt-title {
        font-size: 1.1rem;
    }
    
    .example-prompt-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* =============================================
   FAQ STYLES
   ============================================= */

/* Fix header overlap issue */
.page-header-with-nav {
    padding-top: 120px !important;
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-question .fas:first-child {
    color: #667eea;
    margin-right: 1rem;
    font-size: 1.2rem;
    min-width: 24px;
}

.faq-question span {
    flex: 1;
}

.faq-toggle-icon {
    color: #667eea;
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-item.active .faq-question .fas {
    color: white;
}

.faq-answer {
    padding: 0 1.5rem;
    line-height: 1.7;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 1.1rem;
}

.faq-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem 2rem;
    margin-top: 0rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

.faq-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.faq-contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-actions .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    min-width: 160px;
}

.contact-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.contact-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-actions .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.contact-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .faq-answer {
        padding: 1.2rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
    
    .faq-footer {
        padding: 2rem 1rem;
    }
    
    .faq-contact h3 {
        font-size: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* =============================================
   LOGIN PREFERENCES & SMS AUTHENTICATION
   ============================================= */

/* Radio button styling for login preferences */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radio-text i {
    color: #667eea;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.radio-text small {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
}

.radio-option input[type="radio"]:disabled + .radio-custom {
    background: #f7fafc;
    border-color: #e2e8f0;
}

.radio-option input[type="radio"]:disabled ~ .radio-text {
    color: #a0aec0;
    cursor: not-allowed;
}

.radio-option:has(input[type="radio"]:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

.radio-option:has(input[type="radio"]:disabled):hover {
    border-color: #e2e8f0;
    background: white;
    transform: none;
    box-shadow: none;
}

/* Login preference badge */
.preference-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.preference-badge.email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.preference-badge.sms {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

/* Auth divider styling */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 20px;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
}

/* Auth alternative section */
.auth-alternative {
    margin: 30px 0;
}

/* SMS code input styling */
.sms-code-input {
    font-size: 24px !important;
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: #f8f9ff;
    border: 2px solid #667eea;
}

.sms-code-input:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Responsive adjustments for login preferences */
@media (max-width: 768px) {
    .radio-option {
        padding: 12px;
    }
    
    .radio-text {
        font-size: 0.9rem;
    }
    
    .radio-text small {
        font-size: 0.8rem;
    }
    
    .auth-divider {
        margin: 25px 0;
    }
    
    .auth-alternative .btn {
        margin-bottom: 12px;
    }
    
    .preference-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Favorite tile buttons */
.resource-header {
    margin-bottom: 1rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
}

.resource-description {
    flex-grow: 1;
}

.resource-category {
    margin-top: auto;
    margin-bottom: 1rem;
}

.resource-footer {
    margin-top: auto;
}

.resource-footer .resource-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-favorite-tile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.btn-favorite-tile.not-favorited {
    color: #9ca3af;
}

.btn-favorite-tile.not-favorited:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.btn-favorite-tile.favorited {
    color: #667eea;
}

.btn-favorite-tile.favorited:hover {
    color: #5a67d8;
    background-color: rgba(102, 126, 234, 0.1);
}

.btn-favorite-tile i {
    font-size: 1.1rem;
}

.btn-favorite-tile.not-favorited i {
    font-weight: 400;
}

.btn-favorite-tile.favorited i {
    font-weight: 900;
}

/* =============================================
   AI TOOL IMAGES STYLES
   ============================================= */

/* Image Section Layout */
.ai-tool-image-section {
    margin: 2rem 0;
}

/* Two Column Layout (left/right) */
.image-text-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.image-column {
    flex: 0 0 50%;
}

.text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Center Layout */
.image-center-layout {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Image Wrapper and Styling */
.ai-tool-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ai-tool-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ai-tool-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-tool-image:hover {
    opacity: 0.95;
}

/* Image Text Content */
.image-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.image-center-layout .image-title {
    margin-top: 1rem;
}

.image-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Section Divider */
.image-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-text-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .image-column {
        flex: none;
    }
    
    .ai-tool-image-section {
        margin: 1.5rem 0;
    }
    
    .image-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ai-tool-image-section {
        margin: 1rem 0;
    }
    
    .image-text-row {
        gap: 1rem;
    }
    
    .image-section-divider {
        margin: 1.5rem 0;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #667eea;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* =============================================
   ADMIN IMAGE MANAGEMENT STYLES
   ============================================= */

/* Image Form Styling */
.image-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.image-form .form-group.full-width {
    grid-column: 1 / -1;
}

.image-form .form-group.checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Current Image Preview */
.current-image-preview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.image-preview {
    flex: 0 0 300px;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-details {
    flex: 1;
}

.image-details p {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.image-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.image-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.image-resource {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.image-title-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

.image-meta {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.layout-badge, .location-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.layout-badge {
    background: #ddd6fe;
    color: #5b21b6;
}

.layout-badge.layout-left {
    background: #fef3c7;
    color: #92400e;
}

.layout-badge.layout-right {
    background: #d1fae5;
    color: #065f46;
}

.layout-badge.layout-center {
    background: #dbeafe;
    color: #1e40af;
}

.location-badge {
    background: #f3f4f6;
    color: #374151;
}

.sort-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
}

.divider-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 500;
}

.image-actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Image List View */
.images-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    align-items: flex-start;
}

.image-list-item .image-preview {
    flex: 0 0 150px;
}

.list-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.image-list-item .image-details {
    flex: 1;
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.image-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.image-title.text-muted {
    color: #9ca3af;
    font-style: italic;
}

.image-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-description {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.image-alt, .image-filename {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.image-list-item .image-actions {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Toggle Switch */
.checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #d1d5db;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.checkbox-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #667eea;
}

.checkbox-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Resource Selection Form */
.resource-select-form .form-group-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 600px;
}

.resource-select-form .form-control {
    flex: 1;
}

.image-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .current-image-preview {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-preview {
        flex: none;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .image-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-list-item .image-preview {
        flex: none;
        align-self: center;
    }
    
    .image-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .resource-select-form .form-group-inline {
        flex-direction: column;
        align-items: stretch;
    }
}