/* ============================================
   HIERARCHICAL NAVIGATION SYSTEM - STYLES
   ============================================ */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* font-family: 'Consolas', 'Monaco', 'Courier New', monospace; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Main App Container */
#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* background: #1a1a2e; */
    background: #F6F7F8;
    display: flex;
    flex-direction: column;
}

/* Panels Wrapper */
.panels-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Panel Base Styles */
.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Default border - can be overridden by data-border-color */
    /* border: 4px solid #4facfe; */
    background: #ffffff;
}

.panel.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Panel Body - Main Content Area (scrollable) */
.panel-body {
    flex: 1;
    /* padding: 2rem; */
    padding-bottom: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    color: #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Center all content inside panel body */
/* .panel-body h1,
.panel-body h2,
.panel-body h3,
.panel-body p,
.panel-body ul {
    text-align: center;
    width: 100%;
    max-width: 800px;
    } */

    .panel-body ul {
        list-style-position: inside;
        padding-left: 0;
    }

    /* Panel Header (optional) */
    .panel-header {
        padding: 1.5rem 2rem;
        /* border-bottom: 1px solid rgba(79, 172, 254, 0.3); */
    }

    .panel-title {
        color: #4facfe;
        font-size: 1.5rem;
        margin: 0;
    }

    /* Panel Footer (optional) */
    .panel-footer {
        padding: 1rem 2rem;
        /* border-top: 1px solid rgba(79, 172, 254, 0.3); */
        color: #a8d8ff;
        font-size: 0.9rem;
    }

    /* Panel Indicators - Hidden */
    .panel-indicators {
        display: none !important;
    }

    .indicator {
        display: none !important;
    }

    .indicator.active {
        background: #4facfe;
        transform: scale(1.3);
    }

    /* Content Wrapper */
    .content-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        overflow: hidden;
    }

    /* Content Area - Code Display */
    .content-area {
        width: 100%;
        max-width: 1200px;
        height: 100%;
        max-height: 80vh;
        background: #0f0f1e;
        /* border: 4px solid #4facfe; */
        border-radius: 8px;
        padding: 2rem;
        overflow: auto;
        white-space: pre;
        font-size: 14px;
        line-height: 1.6;
        color: #a8d8ff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transition: border-color 0.3s ease, border-width 0.3s ease, border-style 0.3s ease;
        -webkit-overflow-scrolling: touch;
        user-select: text;
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        cursor: text;
    }

    /* Scrollbar Styling */
    .content-area::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    .content-area::-webkit-scrollbar-track {
        background: #0a0a15;
        border-radius: 6px;
    }

    .content-area::-webkit-scrollbar-thumb {
        background: #4facfe;
        border-radius: 6px;
        border: 2px solid #0a0a15;
    }

    .content-area::-webkit-scrollbar-thumb:hover {
        background: #6bc5ff;
    }

    /* Navigation Controls */
    .nav-controls {
        position: fixed;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
        pointer-events: none;
        z-index: 1000;
        gap: 1rem;
    }

    .nav-btn {
        pointer-events: all;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid rgba(79, 172, 254, 0.5);
        background: rgba(15, 15, 30, 0.9);
        backdrop-filter: blur(10px);
        color: #4facfe;
        font-size: 1.8rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        user-select: none;
        line-height: 1;
    }

    .nav-btn:hover:not(:disabled) {
        background: rgba(79, 172, 254, 0.2);
        border-color: #4facfe;
        transform: scale(1.15);
        box-shadow: 0 6px 24px rgba(79, 172, 254, 0.4);
    }

    .nav-btn:active:not(:disabled) {
        transform: scale(1.05);
    }

    .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* Settings Panel */
    .settings-panel {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 2000;
    }

    .settings-toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 2px solid rgba(79, 172, 254, 0.5);
        background: rgba(15, 15, 30, 0.9);
        backdrop-filter: blur(10px);
        color: #4facfe;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .settings-toggle:hover {
        background: rgba(79, 172, 254, 0.2);
        border-color: #4facfe;
        transform: scale(1.1);
    }

    .settings-content {
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(15, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(79, 172, 254, 0.5);
        border-radius: 8px;
        padding: 1.5rem;
        min-width: 250px;
        max-width: 300px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .settings-content.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .settings-content h3 {
        color: #4facfe;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .setting-group {
        margin-bottom: 1rem;
    }

    .setting-group label {
        display: block;
        color: #a8d8ff;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .setting-group input[type="color"] {
        width: 100%;
        height: 40px;
        border: 2px solid rgba(79, 172, 254, 0.3);
        border-radius: 4px;
        background: #0a0a15;
        cursor: pointer;
    }

    .setting-group input[type="range"] {
        width: calc(100% - 60px);
        margin-right: 0.5rem;
    }

    .setting-group input[type="range"]::-webkit-slider-thumb {
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #4facfe;
        cursor: pointer;
    }

    .setting-group input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #4facfe;
        cursor: pointer;
        border: none;
    }

    .setting-group select {
        width: 100%;
        padding: 0.5rem;
        background: #0a0a15;
        border: 2px solid rgba(79, 172, 254, 0.3);
        border-radius: 4px;
        color: #a8d8ff;
        font-family: inherit;
        cursor: pointer;
    }

    .setting-group select:focus {
        outline: none;
        border-color: #4facfe;
    }

    #border-width-value {
        color: #4facfe;
        font-weight: bold;
        display: inline-block;
        min-width: 50px;
    }

    /* Path Indicator */
    .path-indicator {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 15, 30, 0.9);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(79, 172, 254, 0.5);
        border-radius: 20px;
        padding: 0.75rem 1.5rem;
        z-index: 1000;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .path-text {
        color: #4facfe;
        font-size: 0.9rem;
        font-weight: 500;
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

   /* Mobile Portrait */
   @media (orientation: portrait) and (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }

    .content-area {
        padding: 1rem;
        font-size: 12px;
        max-height: 70vh;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .nav-controls {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .settings-panel {
        top: 0.5rem;
        right: 0.5rem;
    }

    .settings-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .settings-content {
        min-width: 200px;
        padding: 1rem;
    }

    .path-indicator {
        bottom: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .path-text {
        font-size: 0.8rem;
    }
}

/* Mobile Landscape / Tablet Portrait */
@media (orientation: landscape) and (max-width: 1024px) {
    .content-area {
        padding: 1.5rem;
        font-size: 13px;
        max-height: 75vh;
    }

    .nav-controls {
        padding: 0 1rem;
    }

    .nav-btn {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
}

/* Desktop / Large Screens */
@media (min-width: 1025px) {
    .content-area {
        padding: 2.5rem;
        font-size: 15px;
        max-height: 85vh;
    }

    .nav-controls {
        padding: 0 2rem;
    }

    .nav-btn {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .settings-content {
        min-width: 280px;
        padding: 2rem;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .content-area {
        padding: 0.75rem;
        font-size: 11px;
        max-height: 65vh;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .nav-controls {
        gap: 0.25rem;
    }

    .settings-content {
        min-width: 180px;
        padding: 0.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .nav-btn:hover {
        transform: scale(1);
    }
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    .content-area {
        scroll-behavior: smooth;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .nav-btn,
    .settings-toggle,
    .settings-content,
    .content-area {
        transition: none;
    }
}



/* css for weather section */

.weather-card {
    background-color: #e2e2e2;
}

.weather-card.rainy {
    background-color: #94a3b8;
}

.weather-card.cloudy {
    background-color: #cbd5e1;
}

.calendar-container {
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 2rem;
}

.day-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.day-cell:hover:not(.empty) {
    background-color: #f3f4f6;
}

.selected-day {
    background-color: #94a3b8 !important;
    color: white !important;
}

.today {
    background-color: #f1f5f9;
    font-weight: 600;
}

/* Slider Styles */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========profile csss */

.btn-secondary {
    background-color: #e5e7eb;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.media-placeholder {
    background-color: #e5e7eb;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
}



/* =======email code */

.sidebar {
    height: calc(100vh - 160px);
}

/* Custom scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}




/* ========file manazer====== */


.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Adjust as needed */
    padding-bottom: 1.5rem;
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
}

.folder-card {
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s;
}

.folder-card:hover {
    border-color: #94a3b8;
    background-color: #f9fafb;
}

/* Custom Scrollbar for horizontal folder list */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========social page=== */

.app-card {
    background-color: #ffffff;
    border-radius: 10px;
    transition: transform 0.2s;
    width: 100%;
    /* 76x80 proportion */
    aspect-ratio: 76 / 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.large-card {
    background-color: #ffffff;
    border-radius: 10px;
    /* aspect-ratio: 118 / 80; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sidebar-container {
    background-color: #ffffff;
    border-radius: 10px;
    /* 83x344 proportion */
    width: 83px;
    min-height: 344px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    gap: 2.5rem;
}

/* Responsive Text Sizing */
.card-label {
    font-size: 8px;
}

.card-title {
    font-size: 10px;
}

@media (min-width: 1024px) {
    .card-label {
        font-size: 11px;
    }

    .card-title {
        font-size: 16px;
    }
}

.app-card:active {
    transform: scale(0.95);
}

/* Custom shadow to match the soft UI feel */
.soft-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

/* Ghost Panel Styles */
.ghost-panel {
    position: fixed;
    top: 0rem;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    padding-bottom: 100px;
    z-index: 9999;
    overflow-y: auto;
}

/* Large screens: make panel bigger, but never full width */
@media (max-width: 450px) {
    .cont-pen{
        padding-bottom: 0px !important;
    }
    .m-height-col{
        min-height: unset !important;
    }
}
@media (min-width: 1024px) {
    .ghost-panel {
        width: calc(100% - 200px);
        max-width: none;
    }
}

.m-height-col{
    min-height: unset !important;
}

/* Bottom Control Wrapper */
.control-wrapper {
    position: fixed;
    width: 300px;
    height: 80px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

/* Radial Control */
.radial-control {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
}

/* Center Button */
.center-btn {
    position: absolute;
    width: 80px;
    height: 40px;
    bottom: 0;
    background: #fff;
    border: 2px solid black;
    border-bottom: none;
    cursor: pointer;
    z-index: 3;
    border-radius: 50px 50px 0 0;
}

/* Segments */
.segment {
    position: absolute;
    width: 50%;
    height: 80px;
    border: 2px solid black;
    border-bottom: none;
    cursor: pointer;
    z-index: 2;
    font-weight: bold;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.segment span {
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    z-index: 3;
}

.segment:hover {
    opacity: 0.8;
}

/* Segment Placement */
.segment-1 {
    top: 0;
    left: 0;
    border-right-width: 1px;
    border-radius: 80px 0 0 0;
    background: #ffffff;
}

.segment-1 span {
    transform: translateX(-10px) translateY(-10px);
}

.segment-2 {
    top: 0;
    right: 0;
    border-left-width: 1px;
    border-radius: 0 80px 0 0;
    background: #ffffff;
}

.segment-2 span {
    transform: translateX(10px) translateY(-10px);
}

.segment.active {
    background: #d1d5db;
}

.segment.active span {
    color: #000000;
}

/* Large Screen Bottom Control (match attached reference) */
@media (min-width: 1024px) {
    .control-wrapper {
        width: 720px;
        height: 110px;
    }

    .radial-control {
        width: 720px;
        height: 110px;
    }

    .center-btn {
        width: 240px;
        height: 55px;
        border-radius: 70px 70px 0 0;
    }

    .segment {
        width: 360px;
        height: 110px;
    }

    .segment-1 {
        border-radius: 110px 0 0 0;
    }

    .segment-2 {
        border-radius: 0 110px 0 0;
    }

    .segment span {
        font-size: 40px;
    }

    .segment-1 span {
        transform: translateX(-42px) translateY(-16px);
    }

    .segment-2 span {
        transform: translateX(42px) translateY(-16px);
    }
}

/* Ghost Content Container */
#ghostContent .container,
#ghostContent-01 .container,
#ghostContent-02 .container,
#ghostContent-03 .container,
#ghostContent-1 .container,
#ghostContent-2 .container,
#ghostContent-3 .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ghost-panel h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.ghost-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.ghost-panel p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.panel-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.panel-content p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Menu Styles */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.menu-item {
    background-color: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.menu-item > p {
    cursor: pointer;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    user-select: none;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.menu-item > p::after {
    content: "▾";
    float: right;
    transition: transform 0.2s ease;
    font-size: 1.2rem;
    color: #6b7280;
}

.menu-item.open > p {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.menu-item.open > p::after {
    transform: rotate(180deg);
}

/* Sub-menu */
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-item.open > .sub-menu {
    max-height: 600px;
    padding: 8px;
}

/* Sub-items */
.sub-item {
    padding: 12px 16px;
    background: #f9fafb;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #374151;
}

.sub-item:last-child {
    margin-bottom: 0;
}

.sub-item:hover {
    background: #4facfe;
    color: #ffffff;
    border-color: #4facfe;
    transform: translateX(4px);
}

/* Back Button */
#backToMenu,
.back-btn,
[id^="backToMenu-"] {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #4facfe;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

#backToMenu:hover,
.back-btn:hover,
[id^="backToMenu-"]:hover {
    background: #3b9be6;
}

/* Hidden Class */
.hidden {
    display: none;
}