/**
 * Startapusai Dashboard — Fully Autonomous Styles
 */

/* ── RESET & BASE (Isolated) ────────────────────────── */
html {
    margin-top: 0 !important;
}

body.page-template-page-dashboard {
    padding-top: 0 !important;
}

/* Hide ONLY global theme nav, NOT the dashboard header */
body.page-template-page-dashboard-php .nav,
body.page-template-page-dashboard-php .site-header,
body.page-template-page-workspace-php .nav,
body.page-template-page-workspace-php .site-header,
body.page-template-page-projects-php .nav,
body.page-template-page-projects-php .site-header,
body.page-template-page-profile-php .nav,
body.page-template-page-profile-php .site-header {
    display: none !important;
}

body.page-template-page-dashboard-php,
body.page-template-page-workspace-php,
body.page-template-page-projects-php,
body.page-template-page-profile-php {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dash-layout {
    display: flex;
    min-height: 100vh;
    background: #060609;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* ── SIDEBAR (Standalone Version) ───────────────────── */
.dash-sidebar {
    width: 80px;
    background: #0A0A0F;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    flex-shrink: 0;
}

.dash-logo {
    margin-bottom: 40px;
    color: #7D56F3;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    width: 100%;
}

.dash-nav-item {
    color: #62626F;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    position: relative;
    width: 100%;
}

.dash-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.dash-nav-item span {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-nav-item:hover { color: white; }

.dash-nav-item.active {
    color: #7D56F3;
}

.dash-nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #7D56F3;
    box-shadow: 0 0 10px #7D56F3;
    border-radius: 4px 0 0 4px;
}

/* ── MAIN CONTENT AREA ─────────────────────────────── */
.dash-main {
    flex: 1;
    padding: 40px 60px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.dash-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Account Navigation */
.dash-user-nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.dash-account-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.dash-account-menu a {
    color: #62626F;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.dash-account-menu a:hover {
    color: white;
}

.dash-account-menu .current-menu-item a {
    color: #7D56F3;
}

/* ── MODAL STYLES ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0A0A0F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #62626F;
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #0F0F16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(125, 86, 243, 0.4);
    transform: translateY(-5px);
}

.project-card .tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #9494A3;
    margin-bottom: 25px;
    display: inline-block;
}

.project-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.project-card p {
    color: #62626F;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-new-project {
    background: #7D56F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(125, 86, 243, 0.3);
}

/* ── RESPONSIVE DASHBOARD ─────────────────────────── */
.dash-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0A0A0F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
}

.dash-mobile-toggle {
    background: none;
    border: none;
    color: #62626F;
    cursor: pointer;
    padding: 5px;
}

.dash-mobile-toggle svg { width: 24px; height: 24px; }

.dash-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 600;
}

.dash-drawer-overlay.active { display: block; }

@media (max-width: 768px) {
    .dash-mobile-header { display: flex; }

    .dash-sidebar {
        position: fixed;
        left: -80px;
        top: 0;
        bottom: 0;
        z-index: 700;
        transition: transform 0.3s ease;
        height: 100vh;
    }

    .dash-sidebar.active { transform: translateX(80px); }

    .dash-main {
        padding: 80px 20px 40px; /* Space for mobile header */
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .dash-header-title { font-size: 1.4rem; }

    .dash-user-nav-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .dash-account-menu {
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 20px;
    }

    .dash-account-menu a { font-size: 0.75rem; white-space: nowrap; }

    .btn-new-project {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 25px;
    }

    .project-card h3 { font-size: 1.2rem; }
}
