:root {
    --primary-color: #CC1D1D;
    --secondary-color: #00385b;
    --text-color: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #072331 0%, #08344B 100%), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #00385b;
    top: -200px;
    left: -100px;
    opacity: 0.3;
}

.blob-2 {
    width: 800px;
    height: 800px;
    background: #002845;
    bottom: -300px;
    right: -200px;
    opacity: 0.4;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #004d80;
    top: 30%;
    right: 15%;
    opacity: 0.15;
    animation-duration: 25s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* DASHBOARD LAYOUT */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.app-sidebar {
    width: 72px;
    background: rgba(15, 61, 90, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem);
    position: sticky;
    top: 1rem;
    left: 1rem;
    margin: 1rem 0 1rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    z-index: 100;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    white-space: nowrap;
}

.app-sidebar:hover {
    width: 260px;
    background: rgba(15, 61, 90, 0.5);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: center;
    height: 64px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.app-sidebar:hover .sidebar-header {
    justify-content: flex-start;
    padding-left: 1.5rem;
}

.sidebar-brand-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.brand-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    object-fit: contain;
    transition: margin 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.app-sidebar:hover .brand-icon {
    margin-right: 12px;
}

.brand-vanoo {
    opacity: 0;
    max-width: 0;
    display: inline-block;
    overflow: hidden;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: -0.5px;
}

.app-sidebar:hover .brand-vanoo {
    opacity: 1;
    max-width: 200px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 0;
}

.app-sidebar:hover .nav-item {
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    gap: 1rem;
}

.nav-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--primary-color);
}

.tutorial-reading-pane .intro-text {
    font-size: 1.25rem;
    color: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.tutorial-section {
    margin-top: 3rem;
}

.tutorial-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.info-box,
.example-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.info-box code,
.example-box code {
    background: rgba(204, 29, 29, 0.1);
    color: #fca5a5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
}

.example-box {
    border-left: 3px solid var(--primary-color);
    background: rgba(204, 29, 29, 0.05);
}

.box-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* SUPPORT VIEW STYLES */
.sidebar-footer-user {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.3s;
}

.app-sidebar:hover .user-mini-profile {
    justify-content: flex-start;
    gap: 0.75rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-sidebar:hover .user-details {
    opacity: 1;
    width: auto;
}

.app-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Sidebar Extensions */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 1.5rem;
}

.sidebar-section-title {
    display: block;
    padding: 0 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.app-sidebar:hover .sidebar-section-title {
    opacity: 1;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem;
}

.sidebar-sub-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s, color 0.2s;
}

.app-sidebar:hover .sidebar-sub-item {
    opacity: 1;
}

.sidebar-sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-sub-item.active {
    color: var(--primary-color);
    background: rgba(204, 29, 29, 0.05);
}

.view-section {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.view-section:not(.hidden) {
    animation: fadeIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ADMIN TABLE STYLES */
.admin-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.btn-small {
    width: auto !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
}

.service-account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.03);
    margin-right: auto;
}

.sa-info {
    display: flex;
    flex-direction: column;
}

.sa-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sa-email {
    font-size: 0.95rem;
    color: white;
    font-family: monospace;
}

.table-container {
    padding: 0 !important;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s;
    color: #94a3b8;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon.edit:hover {
    color: #38bdf8;
}

.btn-icon.delete:hover {
    color: #f87171;
}

/* SEO Status Grid Table */
.seo-status-grid-table {
    font-size: 0.85rem;
}

.seo-status-grid-table th,
.seo-status-grid-table td {
    padding: 0.75rem !important;
    text-align: center;
}

.seo-status-grid-table th:first-child,
.seo-status-grid-table td:first-child {
    text-align: left;
    min-width: 200px;
    background: rgba(15, 61, 90, 0.95);
    backdrop-filter: blur(10px);
}

.status-cell {
    font-size: 1.1rem;
    cursor: default;
    transition: transform 0.2s;
}

.status-cell:hover {
    transform: scale(1.2);
}

.status-check {
    color: #22c55e;
}

.status-missing {
    color: #f87171;
    opacity: 0.5;
}

.btn-nav-small {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
}

.btn-nav-small:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.status-cell-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cell-action-btns {
    display: flex;
    gap: 4px;
}

.btn-icon.mini {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    padding: 2rem !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* === AUTH / LOGIN STYLES === */
.view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 56, 91, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.header-left h2 {
    margin: 0;
    color: white;
}

.header-right {
    flex-shrink: 0;
}

.glass-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 0.6rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.glass-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-select option {
    background: #072331;
    color: white;
}

.auth-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.auth-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form .form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Modal specifieke form stijlen */
.modal-content .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.modal-content input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: white;
    color: #1e293b;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 56, 91, 0.1);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}



.primary-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(204, 29, 29, 0.2);
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-form .primary-btn {
    width: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 29, 29, 0.3);
    filter: brightness(1.1);
}

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

.primary-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* DASHBOARD SPECIFICS */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}


.kpi-card {
    padding: 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.chart-container {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 400px;
    width: 100%;
    position: relative;
}

.sources-container {
    margin-top: 2rem;
    padding: 2rem;
}

.sources-container h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sources-table th {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sources-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

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

.sources-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
    }

    .glass-select {
        width: 100%;
    }
}

.kpi-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* KNOWLEDGE BASE STYLES */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tutorial-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s;
}

.tutorial-card:hover .tutorial-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.tutorial-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tutorial-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tutorial-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* TUTORIAL READING PANEL */
.nav-back-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s;
}

.nav-back-btn:hover {
    color: white;
}

.tutorial-reading-pane {
    padding: 3rem !important;
}

.tutorial-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tutorial-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 1.5rem !important;
    position: sticky;
    top: 2rem;
}

.tutorial-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-link {
    display: block;
    padding: 0.8rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.chapter-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.chapter-link.active {
    background: rgba(204, 29, 29, 0.1);
    color: white;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* TUTORIAL CONTENT STYLES */
.tutorial-section {
    margin-top: 3rem;
}

.tutorial-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.info-box,
.example-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.info-box code,
.example-box code {
    background: rgba(204, 29, 29, 0.1);
    color: #fca5a5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
}

.example-box {
    border-left: 3px solid var(--primary-color);
    background: rgba(204, 29, 29, 0.05);
}

.box-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tutorial-image {
    margin: 2rem 0;
    text-align: center;
}

.tutorial-image img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-caption {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    font-style: italic;
}

.menu-overview {
    margin: 2rem 0;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.menu-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.menu-label {
    width: 150px;
    font-weight: 700;
    color: white;
}

.menu-desc {
    flex: 1;
    color: #cbd5e1;
}

.tutorial-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

.tutorial-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.tutorial-section li strong {
    color: white;
}

.tutorial-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-nav {
    width: auto !important;
    min-width: 120px;
}

@media (max-width: 1024px) {
    .tutorial-layout {
        flex-direction: column;
    }

    .tutorial-sidebar {
        width: 100%;
        position: static;
    }
}

.support-form-container .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.submissions-container {
    margin: 1rem 0;
}

.submissions-container .admin-table td {
    vertical-align: top;
    padding: 1.2rem 1rem;
}

.submission-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    display: block;
}

.submission-msg {
    display: block;
    max-width: 400px;
    font-size: 0.9rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem !important;
}

.support-form-container .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.support-form-container label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.support-form-container input,
.support-form-container textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.support-form-container input:focus,
.support-form-container textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-status {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block !important;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block !important;
}

#support-btn {
    width: 100%;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.dashboard-header {
    text-align: left;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-header p {
    color: #94a3b8;
    margin: 0.5rem 0 0;
}

/* Boost Button in Header */
.title-with-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.boost-header-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    animation: pulse-border 2s infinite;
}

.boost-header-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.5);
    filter: brightness(1.1);
}

.boost-header-btn:active {
    transform: translateY(0) scale(1);
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 69, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .title-with-cta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .boost-header-btn {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* ==============================================
   SEO REPORT SYSTEM STYLES
   ============================================== */

/* Upload Zone */
.seo-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 3rem !important;
}

.seo-upload-zone:hover,
.seo-upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(204, 29, 29, 0.05);
    transform: scale(1.01);
}

.upload-zone-content {
    text-align: center;
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.upload-zone-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.upload-zone-content p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Upload Progress */
.seo-upload-progress {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-progress-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-progress-item .filename {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-progress-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar .fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-item .status-text {
    font-size: 0.8rem;
    color: #94a3b8;
    min-width: 80px;
    text-align: right;
}

.upload-progress-item.done .fill {
    background: #22c55e;
}

.upload-progress-item.error .fill {
    background: #ef4444;
}

/* Match Status Badges */
.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-badge.auto {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.match-badge.manual {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.match-badge.unmatched {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* SEO Client View - Overview Header */
.seo-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem !important;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.seo-domain-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.seo-domain-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.seo-domain-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

/* Visibility Ring */
.seo-visibility-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.visibility-ring {
    width: 120px;
    height: 120px;
    position: relative;
}

.visibility-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.visibility-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* SEO Meta Info */
.seo-meta-info {
    display: flex;
    gap: 2rem;
}

.seo-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.meta-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.meta-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* SEO KPI Grid */
.seo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seo-kpi-card {
    padding: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.seo-kpi-icon {
    font-size: 1.8rem;
}

.seo-kpi-info {
    display: flex;
    flex-direction: column;
}

.seo-kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.seo-kpi-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.seo-kpi-change {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.seo-kpi-change.positive {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
}

.seo-kpi-change.negative {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.seo-kpi-change.neutral {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

/* SEO Engines Grid */
.seo-engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seo-engine-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.seo-engine-card h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.engine-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.engine-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.engine-stat .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.engine-stat .stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Multiple Reports per Cell Styles */
.status-cell-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-mini-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.report-mini-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-report-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- CLIENT HOME SCREEN STYLES --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) backwards;
    min-height: 200px;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-card:nth-child(4) {
    animation-delay: 0.4s;
}

.dashboard-card:nth-child(5) {
    animation-delay: 0.5s;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dashboard-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
}

.card-icon-bg {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 4.5rem;
    opacity: 0.05;
    z-index: 1;
    transition: all 0.4s ease;
}

.dashboard-card:hover .card-icon-bg {
    opacity: 0.2;
    transform: scale(1.2) rotate(10deg);
}

.area-big {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid */
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .area-big {
        grid-column: span 2;
    }
}

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

    .area-big {
        grid-column: span 1;
    }

    .dashboard-card {
        padding: 1.5rem;
        min-height: 180px;
    }
}

.engine-stat .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.engine-stat .stat-change.pos {
    color: #4ade80;
}

.engine-stat .stat-change.neg {
    color: #f87171;
}

/* SEO Keywords Section */
.seo-keywords-section {
    padding: 1.5rem !important;
    margin-top: 1.5rem;
}

.seo-keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.seo-keywords-header h3 {
    margin: 0;
}

.seo-keywords-filter {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 0.6rem 1rem;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.glass-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-input::placeholder {
    color: #64748b;
}

/* Keywords Table */
.seo-keywords-table {
    width: 100%;
    border-collapse: collapse;
}

.seo-keywords-table th {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    letter-spacing: 0.03em;
}

.seo-keywords-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.seo-keywords-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.seo-keywords-table .keyword-name {
    font-weight: 500;
    max-width: 300px;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.position-badge.pos-1 {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.position-badge.pos-top10 {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.position-badge.pos-top20 {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}


/* Admin Search Inputs */
.sidebar-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.app-sidebar:hover .sidebar-search-input {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.mini-search {
    max-width: 250px;
    height: 38px;
    font-size: 0.9rem !important;
}

.position-badge.pos-outside {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.change-indicator {
    font-weight: 600;
    font-size: 0.85rem;
}

.change-indicator.up {
    color: #4ade80;
}

.change-indicator.down {
    color: #f87171;
}

.change-indicator.same {
    color: #64748b;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* SEO Responsive */
@media (max-width: 900px) {
    .seo-overview-header {
        flex-direction: column;
        text-align: center;
    }

    .seo-meta-info {
        justify-content: center;
    }

    .seo-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-keywords-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .seo-keywords-filter {
        width: 100%;
    }

    .seo-keywords-filter .glass-input,
    .seo-keywords-filter .glass-select {
        flex: 1;
    }
}

/* === SKELETON LOADING & SHIMMER === */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 0, 0);
    /* Fallback */
}

.skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loading-shimmer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 1.5em;
    width: 60px;
    display: inline-block;
    vertical-align: middle;
}