/* IICAN Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Vibrant & Premium */
    --primary: #BE2224; /* IICAN Brand Red */
    --primary-light: #e31e24;
    --primary-dark: #9e1a1c;
    --secondary: #0f172a; /* Dark Navy for Sidebar */
    --secondary-light: #1e293b;
    --accent: #4361ee;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-dark: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.03);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets for modern feel */
body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-dark-border);
}

/* Button Styles */
.btn-modern {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(67, 97, 238, 0.39);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.23);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary-modern {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* Card Styles */
.card-modern {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Badge Styles */
.badge-modern {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: rgba(46, 204, 113, 0.1); color: var(--success); }
.badge-warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.badge-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); }
.badge-info { background: rgba(52, 152, 219, 0.1); color: var(--info); }

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

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}
/* Courses Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* CTA Premium Section */
.cta-section-premium {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0f172a 0%, #3e1f59 100%);
    overflow: hidden;
    color: white;
}

.cta-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
}

.blob-1 { top: -250px; left: -100px; animation: blobMove 10s infinite alternate; }
.blob-2 { bottom: -250px; right: -100px; background: var(--secondary); animation: blobMove 8s infinite alternate-reverse; }

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.cta-content { position: relative; z-index: 2; }
.cta-title { 
    font-size: 4.5rem; 
    font-weight: 800; 
    font-family: 'Outfit', sans-serif; 
    margin-bottom: 30px; 
    line-height: 1.1;
    letter-spacing: -1px;
    text-align: center;
    color: #ffffff;
}

.text-glow {
    color: #ffffff;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.cta-description {
    font-size: 1.4rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions { display: flex; gap: 25px; justify-content: center; }

.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 20px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
    border-radius: 50px;
}

.btn-primary-glow:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.6);
}

.btn-outline-white-glow {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.3);
    color: white !important;
    padding: 20px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.btn-outline-white-glow:hover {
    background: white;
    border-color: white;
    color: var(--dark) !important;
    transform: translateY(-5px) !important;
}

@media (max-width: 991px) {
    .cta-title { font-size: 3.5rem; }
    .cta-description { font-size: 1.2rem; }
}

@media (max-width: 576px) {
    .cta-title { font-size: 2.8rem; }
    .cta-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
}

/* Modern Footer Styling */
.modern-footer {
    background: #0f172a !important;
    color: white !important;
    padding: 100px 0 0 !important;
    font-family: 'Inter', sans-serif;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.modern-footer .container {
    max-width: 1350px !important;
    padding-right: 15px;
    padding-left: 15px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 40px;
    width: 100%;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

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

.footer-list li {
    margin-bottom: 15px;
}

.footer-list a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-list a i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-list a:hover {
    color: white !important;
    transform: translateX(5px);
}

.footer-list a:hover i {
    color: var(--primary);
    opacity: 1;
}

.partner-item {
    margin-bottom: 20px;
}

.partner-item strong {
    display: block;
    color: white;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.partner-item span {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    display: block;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 35px;
    height: 35px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.info-content strong {
    display: block;
    color: white;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.info-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
}

.footer-bottom-text {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-text i {
    color: #ef4444;
}

@media (max-width: 991px) {
    .modern-footer { padding: 80px 0 0 !important; }
    .footer-bottom { margin-top: 40px; }
    .modern-footer .container { max-width: 100% !important; }
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-row {
        grid-template-columns: 1fr;
    }
}
/* Certificate Verification Redesign */
.verify-section {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.verify-card {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.verify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #e31e24;
}

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

.verify-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.verify-header p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cert-input-group {
    position: relative;
    margin-bottom: 25px;
}

.cert-input-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100% !important;
    padding: 16px 20px 16px 55px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
    color: var(--dark) !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
}

.input-with-icon input:focus {
    border-color: #e31e24 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1) !important;
    outline: none !important;
}

.verify-btn {
    width: 100%;
    padding: 18px !important;
    background: #e31e24 !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2) !important;
    margin-top: 10px;
}

.verify-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.3) !important;
    background: #c2191f !important;
}

.verify-btn:active {
    transform: translateY(-1px) !important;
}

/* Result Styles */
.result-card {
    margin-top: 50px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    overflow: hidden;
}

.success-header {
    background: #ecfdf5;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(39, 174, 96, 0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.success-header h3 {
    color: #065f46;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.cert-data-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.cert-photo-side {
    position: relative;
}

.cert-photo-side img {
    width: 100%;
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cert-details-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.data-item {
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.data-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.download-zone {
    padding: 0 40px 40px;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dark);
    color: white;
    padding: 16px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.download-btn:hover {
    background: #e31e24;
    transform: scale(1.05);
    color: white;
}

.error-card {
    background: #fef2f2;
    padding: 40px;
    border-radius: 24px;
    border: 2px solid #fee2e2;
    text-align: center;
}

.error-icon {
    font-size: 60px;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-card h3 {
    color: #991b1b;
    font-weight: 800;
    margin-bottom: 10px;
}

.error-card p {
    color: #b91c1c;
}

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

@media (max-width: 991px) {
    .cert-data-grid {
        grid-template-columns: 1fr;
    }
    .cert-photo-side {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cert-details-side { grid-template-columns: 1fr; }
    .verify-card { padding: 30px; border-radius: 24px; margin: 0 15px; }
}
/* ==========================================================================
   SaaS Dashboard Layout
   ========================================================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f8fafc;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    transition: var(--transition);
    margin: 0 !important;
    padding: 0 !important;
}

/* SaaS Dashboard Components */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
}

.saas-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.saas-stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.saas-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.trend-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-up { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.trend-down { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.saas-table {
    width: 100%;
    border-collapse: collapse;
}

.saas-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 1px solid #f1f5f9;
}

.saas-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.saas-table tr:last-child td {
    border-bottom: none;
}

.pulse-verified {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Dropdown Menu SaaS State */
.dropdown-menu-saas.active {
    display: block !important;
}

/* ==========================================================================
   Responsive Styles - Admin Dashboard Mobile Support
   ========================================================================== */

/* Tablet & Smaller Screens (< 992px) */
@media (max-width: 991px) {
    .saas-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .saas-header {
        padding: 15px 20px !important;
    }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767px) {
    /* Layout & Sidebar */
    .dashboard-container {
        display: block !important; /* Break the grid */
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .sidebar {
        position: fixed !important;
        left: -280px !important; /* Fully hide off-screen */
        top: 0;
        bottom: 0;
        width: 280px !important;
        z-index: 2000 !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        transform: translateX(280px) !important; /* Slide in */
    }

    #main-content, .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 15px !important;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Header & Mobile Toggle */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 10px;
        color: var(--dark);
        border: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer;
        margin-right: 15px;
    }

    .saas-header {
        padding: 12px 15px !important;
    }

    .header-left .search-box-saas {
        display: none !important; /* Hide search on small mobile */
    }

    .admin-profile-dropdown span {
        display: none !important; /* Hide name text, keep avatar */
    }

    /* Stats Grid Stacking */
    .saas-stat-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Dashboard Widgets Section */
    .dashboard-widgets-row {
        grid-template-columns: 1fr !important; /* Stack Activity & Students List */
        gap: 20px !important;
    }

    .card-modern {
        padding: 20px !important;
    }

    /* Tables Responsiveness */
    .saas-table th, .saas-table td {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }

    .saas-table td:nth-child(3) {
        display: none; /* Hide method column on mobile to save space */
    }

    /* Chart Scaling */
    #saasTrendChart {
        height: 250px !important;
    }

    /* Spacing Adjustments */
    div[style*="padding: 30px 40px"] {
        padding: 20px 15px !important;
    }
}

/* Utility to show toggle only on mobile */
/* ==========================================================================
   Modern SaaS Forms - Add/Edit Pages
   ========================================================================== */

.form-card-saas {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.form-header-saas {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fafbfc;
}

.form-header-saas i {
    color: var(--primary);
    font-size: 20px;
}

.form-header-saas h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.form-body-saas {
    padding: 35px 30px;
}

.form-grid-saas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group-saas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-saas.full-width {
    grid-column: span 2;
}

.form-group-saas label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-container-saas {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-saas {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 16px;
    transition: var(--transition);
}

.input-saas {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: var(--dark);
    background: #fff;
    transition: var(--transition);
    outline: none;
}

.input-saas:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    background: #fff;
}

.input-saas:focus + .input-icon-saas {
    color: var(--primary);
}

/* Photo Preview Section */
.photo-upload-container {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.photo-preview-saas {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
    background: #fff;
}

.photo-upload-info {
    flex: 1;
}

.photo-upload-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--dark);
}

.photo-upload-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #64748b;
}

/* Action Bar */
.form-actions-saas {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-saas {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-saas-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.btn-saas-primary:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-saas-secondary {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-saas-secondary:hover {
    background: #f8fafc;
    color: var(--dark);
    border-color: #cbd5e1;
}

/* Responsive Forms */
@media (max-width: 767px) {
    .form-grid-saas {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-upload-container {
        flex-direction: column;
        text-align: center;
    }
    
    .form-body-saas {
        padding: 25px 20px;
    }

    .form-actions-saas {
        flex-direction: column-reverse;
    }

    .btn-saas {
        width: 100%;
        justify-content: center;
    }
}


.mobile-toggle {
    display: none;
}

/* ==========================================================================
   Refined SaaS Forms - Detailed Sections & Centering
   ========================================================================== */

/* Centered Form Container */
.form-container-centered {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.form-section-header {
    margin: 35px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-header i {
    color: var(--primary);
    font-size: 18px;
    background: rgba(190, 34, 36, 0.1);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.form-section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Modern Upload Box Style */
.upload-box-saas {
    border: 2.5px dashed #e2e8f0;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    background: #f8fafc;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.upload-box-saas:hover {
    border-color: var(--primary);
    background: rgba(190, 34, 36, 0.02);
}

.upload-box-saas i {
    font-size: 38px;
    color: #94a3b8;
    transition: var(--transition);
}

.upload-box-saas:hover i {
    color: var(--primary);
    transform: translateY(-5px);
}

.upload-box-saas .upload-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.upload-box-saas .upload-text strong {
    color: var(--primary);
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

/* Specialized input for upload box */
.upload-box-saas input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0 !important;
    cursor: pointer;
}

/* Image Preview in Upload Box Support */
.upload-box-saas.has-file {
    border-style: solid;
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.02);
}

/* Button Refinement */
.btn-saas-outline {
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #64748b !important;
}

.btn-saas-outline:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

/* Grid for Document Uploads */
.upload-grid-saas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .upload-grid-saas {
        grid-template-columns: 1fr;
    }
}
