/* ============================================================
   index.css — extracted from site/index.php
   ============================================================ */

/* Global * reset removed — Tailwind preflight (layouts/main.php) handles this. */

        /* Flexbox Utilities */
        .flex {
            display: flex;
        }
        
        .justify-between {
            justify-content: space-between;
        }
        
        .items-center {
            align-items: center;
        }
        
        .space-x-2 > * {
            margin-right: 0.5rem;
        }
        
        .space-x-8 > * {
            margin-right: 2rem;
        }
        
        .space-y-4 > * {
            margin-bottom: 1rem;
        }
        
        .hidden {
            display: none;
        }
        
        @media (min-width: 768px) {
            .md\:flex {
                display: flex;
            }
            
            .md\:hidden {
                display: none;
            }
        }
        
        /* Grid Utilities */
        .grid {
            display: grid;
        }
        
        .grid-cols-1 {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }
        
        @media (min-width: 768px) {
            .md\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (min-width: 1024px) {
            .lg\:grid-cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        
        .gap-6 {
            gap: 1.5rem;
        }
        
        /* Padding and Margin Utilities */
        .p-4 {
            padding: 1rem;
        }
        
        .px-4 {
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        .py-2 {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }
        
        .py-4 {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }
        
        .py-8 {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        
        .px-6 {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }
        
        .mb-2 {
            margin-bottom: 0.5rem;
        }
        
        .mb-4 {
            margin-bottom: 1rem;
        }
        
        .mb-6 {
            margin-bottom: 1.5rem;
        }
        
        .ml-2 {
            margin-left: 0.5rem;
        }
        
        .ml-4 {
            margin-left: 1rem;
        }
        
        /* Background and Text Utilities */
        .bg-white {
            background-color: #ffffff;
        }
        
        .bg-[#991B2D] {
            background-color: #991B2D;
        }
        
        .text-white {
            color: #ffffff;
        }
        
        .text-dark {
            color: #4b4f58;
        }
        
        .text-gray-900 {
            color: #1a1a1a;
        }
        
        .text-gray-700 {
            color: #4a5568;
        }
        
        .text-gray-400 {
            color: #a0aec0;
        }
        
        .text-[#991B2D] {
            color: #991B2D !important;
        }
        
        /* Border Utilities */
        .rounded-md {
            border-radius: 0.375rem;
        }
        
        .rounded-lg {
            border-radius: 0.5rem;
        }
        
        /* Font Utilities */
        .font-bold {
            font-weight: 700;
        }
        
        .font-semibold {
            font-weight: 600;
        }
        
        .text-sm {
            font-size: 0.875rem;
        }
        
        .text-md {
            font-size: 1rem;
        }
        
        .text-xl {
            font-size: 1.25rem;
        }
        
        /* Transition Utilities */
        .transition-all {
            transition: all 0.3s ease;
        }
        
        .duration-300 {
            transition-duration: 300ms;
        }
        
        /* Hover Utilities */
        .hover\:bg-opacity-90:hover {
            background-opacity: 0.9;
        }
        
        .hover\:bg-white:hover {
            background-color: #ffffff;
        }
        
        /* Nav Dropdown Image */
        .nav-dropdown-img {
            position: relative;
            border-left: 10px solid #000;
            border-top: 10px solid #000;
            transition: all 0.3s ease;
        }
        
        .nav-dropdown-img:hover {
            border-left-color: #991B2D;
            border-top-color: #991B2D;
        }
        
        /* Navigation Links */
        .nav-links a {
            text-decoration: none;
            color: #333333;
            font-weight: 500;
            font-size: 14px;
            transition: color 0.2s ease;
        }
        
        .nav-links a:hover {
            color: #991B2D;
        }
        
        /* Header / nav-links global rules removed to avoid overriding layouts/main.php navbar */
        
        /* Z-index Utilities */
        .z-50 {
            z-index: 50;
        }
        
        /* Position Utilities */
        .fixed {
            position: fixed;
        }
        
        .relative {
            position: relative;
        }
        
        .absolute {
            position: absolute;
        }
        
        .top-0 {
            top: 0;
        }
        
        .left-0 {
            left: 0;
        }
        
        .right-0 {
            right: 0;
        }
        
        .w-full {
            width: 100%;
        }
        
        .h-full {
            height: 100%;
        }
        
        /* Opacity Utilities */
        .opacity-0 {
            opacity: 0;
        }
        
        .invisible {
            visibility: hidden;
        }
        
        .group:hover .group-hover\:opacity-100 {
            opacity: 1;
        }
        
        .group:hover .group-hover\:visible {
            visibility: visible;
        }
        
        /* Backdrop Blur */
        .backdrop-blur-sm {
            backdrop-filter: blur(4px);
        }
        
        /* Shadow Utilities */
        .shadow-lg {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        /* Text Align */
        .text-center {
            text-align: center;
        }
        
        /* Object Fit */
        .object-cover {
            object-fit: cover;
        }
        
        /* Overflow */
        .overflow-hidden {
            overflow: hidden;
        }

        /* body / header / .nav-links global rules removed — layouts/main.php owns these. */

        /* Container — scoped via .v3-home wrapper around body content (see below). */
        .v3-home .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Main Content */
        .main-content {
            padding: 80px 0;
            text-align: center;
            background-color: #ffffff;
        }

        .main-content h1 {
            font-size: 40px;
            margin-bottom: 24px;
            color: #1a1a1a;
            font-weight: 700;
            line-height: 1.2;
        }

        .main-content p {
            font-size: 18px;
            margin-bottom: 48px;
            color: #666;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
        }

        /* See Now Button */
        .see-now-button {
            background-color: #991B2D;
            color: white;
            border: none;
            padding: 14px 32px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(153, 27, 45, 0.2);
        }

        .see-now-button:hover {
            background-color: #7a1525;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px rgba(153, 27, 45, 0.25);
        }

        /* Demo Button */
        .demo-button {
            background-color: #991B2D;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(153, 27, 45, 0.2);
        }

        .demo-button:hover {
            background-color: #7a1525;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px rgba(153, 27, 45, 0.25);
        }

        /* Login Link */
        .login-link {
            margin-right: 16px;
        }

        /* Hero Section */
        .hero-section {
            background-color: #ffffff;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-bottom: 1px solid #E6D1D1;
            padding: 0 20px;
        }

        .hero-content {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .hero-subtitle {
            font-size: 20px;
            font-weight: 700;
            color: #991B2D;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 48px;
            display: inline-block;
            background-color: #F5E7E7;
            padding: 8px 16px;
            border-radius: 20px;
        }

        .hero-title {
            font-size: 48px;
            font-weight: 700;
            color: #333333;
            line-height: 1.2;
            margin-bottom: 32px;
        }

        .hero-description {
            font-size: 18px;
            color: #666666;
            line-height: 1.6;
            margin-bottom: 32px;
        }

        .hero-features {
            margin-top: 24px;
            text-align: left;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

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

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

        .features-list li {
            font-size: 16px;
            color: #4a5568;
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            line-height: 1.5;
        }

        .features-list li::before {
            content: "✔";
            margin-right: 12px;
            color: #27ca3f;
            font-weight: bold;
        }

        /* Demo Section */
        .demo-section {
            background-color: #f8f9fa;
            padding: 60px 0;
            border: 2px solid rgba(230, 209, 209, 0.5);
            border-radius: 8px;
            margin: 40px auto;
            max-width: 1200px;
        }

        .demo-content {
            align-items: center;
        }

        /* Mac Style Browser Header */
        .mac-header {
            background-color: #2d2d2d;
            color: #ffffff;
            height: 40px;
            display: flex;
            align-items: center;
            padding: 0 12px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        .mac-buttons {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-right: 20px;
        }

        .mac-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .mac-button.close {
            background-color: #ff5f56;
        }

        .mac-button.minimize {
            background-color: #ffbd2e;
        }

        .mac-button.maximize {
            background-color: #27ca3f;
        }

        .mac-title {
            flex: 1;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
        }

        .mac-controls {
            width: 80px;
        }

        /* Popup Overlay */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        /* Popup Container */
        .popup-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            width: 90%;
            max-width: 1100px;
            max-height: 90vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .popup-overlay.active .popup-container {
            transform: scale(1);
        }

        /* Popup Header */
        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #e5e7eb;
            background-color: #ffffff;
        }

        .popup-header h2 {
            font-size: 18px;
            color: #1a1a1a;
            font-weight: 600;
        }

        .close-button {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #ffffff;
            transition: all 0.2s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
        }

        .close-button:hover {
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Popup Content */
        .popup-content {
            flex: 1;
            overflow: auto;
            padding: 0;
        }

        /* Dashboard Preview */
        .dashboard-preview {
            width: 100%;
            min-height: 400px;
            display: flex;
            flex-direction: column;
        }

        /* Dashboard Layout */
        .dashboard-body {
            flex: 1;
            display: flex;
            background-color: #f8fafc;
        }

        /* Sidebar */
        .sidebar {
            width: 200px;
            background-color: #ffffff;
            color: #4a5568;
            padding: 20px 0;
            border-right: 1px solid #e5e7eb;
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-menu li {
            margin-bottom: 2px;
        }

        .sidebar-menu a {
            display: block;
            padding: 10px 20px;
            color: #333333;
            text-decoration: none;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
            border-left: 3px solid transparent;
            cursor: pointer;
        }

        .sidebar-menu a:hover {
            background-color: #f8f9fa;
            color: #991B2D;
        }

        .sidebar-menu a.active {
            background-color: #F5E7E7;
            color: #991B2D;
            border-left-color: #991B2D;
        }

        .sidebar-menu a.disabled {
            color: #495057;
            cursor: pointer;
            pointer-events: auto;
        }

        .sidebar-menu a.disabled:hover {
            background-color: #f8f9fa;
            color: #991B2D;
        }

        /* Main Dashboard */
        .main-dashboard {
            flex: 1;
            padding: 20px;
            overflow: auto;
        }

        /* Content Sections */
        .content-section {
            display: none;
        }

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

        /* Dashboard Section */
        .dashboard-section {
            /* Dashboard-specific styles */
        }

        /* Dashboard Cards */
        .dashboard-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .dashboard-card {
            background-color: white;
            border-radius: 6px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .dashboard-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .card-title {
            font-size: 13px;
            color: #718096;
            margin-bottom: 8px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card-value {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 6px;
        }

        .card-change {
            font-size: 12px;
            color: #38a169;
            font-weight: 500;
        }

        /* Chart Section */
        .chart-section {
            background-color: white;
            border-radius: 6px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

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

        .chart-placeholder {
            height: 300px;
            background-color: #f8f9fa;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #a0aec0;
            font-size: 14px;
            border: 1px dashed #e2e8f0;
        }

        /* Other Sections */
        .section-content {
            background-color: white;
            border-radius: 6px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            min-height: 400px;
            position: relative;
        }

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

        .section-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 24px;
        }

        .placeholder-content {
            background-color: #f8f9fa;
            border-radius: 4px;
            padding: 40px;
            text-align: center;
            color: #a0aec0;
        }

        /* Navigation Tips */
        .nav-tip {
            position: absolute;
            top: 20px;
            left: 20px;
            background-color: rgba(230, 209, 209, 0.7);
            color: #333;
            padding: 12px 16px;
            border-radius: 6px;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.3s ease, pulse 2s infinite;
            cursor: move;
        }

        .nav-tip .arrow-buttons {
            display: flex;
            gap: 5px;
        }

        .nav-tip button {
            background-color: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(0, 0, 0, 0.1);
            color: #333;
            width: 30px;
            height: 30px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
        }

        .nav-tip button:hover {
            background-color: rgba(255, 255, 255, 0.9);
        }

        .nav-tip button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .nav-tip .close-tip {
            background: none;
            border: none;
            color: #333;
            font-size: 16px;
            cursor: pointer;
            padding: 0;
            width: auto;
            height: auto;
        }

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

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(153, 27, 45, 0.4);
                transform: scale(1);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(153, 27, 45, 0);
                transform: scale(1.05);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(153, 27, 45, 0);
                transform: scale(1);
            }
        }

        /* Highlight items animation */
        .highlight-item {
            position: relative;
            display: block;
            animation: highlightPulse 2s infinite;
            padding: 8px 0;
        }

        @keyframes highlightPulse {
            0% {
                color: #000000;
                transform: scale(1);
            }
            50% {
                color: #991B2D;
                transform: scale(1.05);
                font-weight: 600;
            }
            100% {
                color: #000000;
                transform: scale(1);
            }
        }

        /* Staggered animation for each item */
        .highlight-item:nth-child(1) {
            animation-delay: 0s;
        }
        .highlight-item:nth-child(2) {
            animation-delay: 0.3s;
        }
        .highlight-item:nth-child(3) {
            animation-delay: 0.6s;
        }
        .highlight-item:nth-child(4) {
            animation-delay: 0.9s;
        }

        /* Sidebar Guide */
        .sidebar-guide {
            position: absolute;
            top: 50%;
            left: 200px;
            transform: translateY(-50%);
            background-color: #E6D1D1;
            color: #333;
            padding: 12px 16px;
            border-radius: 0 6px 6px 0;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            animation: slideIn 0.3s ease;
            white-space: nowrap;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translate(-20px, -50%); }
            to { opacity: 1; transform: translate(0, -50%); }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .popup-container {
                width: 95%;
                max-height: 95vh;
            }

            .header-content {
                flex-direction: column;
                gap: 16px;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .main-content h1 {
                font-size: 32px;
            }

            .main-content p {
                font-size: 16px;
            }

            .dashboard-body {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                padding: 12px 0;
                border-right: none;
                border-bottom: 1px solid #e5e7eb;
            }

            .sidebar-menu {
                display: flex;
                overflow-x: auto;
                padding-bottom: 8px;
            }

            .sidebar-menu li {
                margin-bottom: 0;
                margin-right: 2px;
            }

            .sidebar-menu a {
                white-space: nowrap;
                padding: 8px 16px;
                border-left: none;
                border-radius: 4px;
            }

            .sidebar-menu a.active {
                border-left: none;
                background-color: #e3f2fd;
            }

            .dashboard-cards {
                grid-template-columns: 1fr;
            }
        }

/* ---------- block separator ---------- */

@media (max-width: 1024px) {
            .aipo-steps {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }
        @media (max-width: 600px) {
            .aipo-steps {
                grid-template-columns: 1fr !important;
            }
            .aipo-definition-section h2 {
                font-size: 30px !important;
            }
        }

        .aipo-step {
            transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        }
        .aipo-step:hover {
            background-color: #FCEAEC !important;
            border-color: #991B2D !important;
            box-shadow: 0 6px 18px rgba(153, 27, 45, 0.15);
            transform: translateY(-2px);
        }
