/* ======================
   Reset Layout
====================== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: #f8f9fb;
    font-family: 'Inter', sans-serif;
}

/* Override Astra container gap */
.ast-container,
#content,
.site-content,
#primary {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

#ncorp-dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ======================
   Sidebar
====================== */
.ncorp-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #020314, #00c27f);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    box-sizing: border-box;
}

/* Logo */
.ncorp-sidebar .logo-area {
    text-align: center;
}
.ncorp-sidebar .logo-area img {
    max-width: 150px;
}

/* Sidebar Menu */
.ncorp-sidebar .ncorp-menu {
    margin: 40px 0;
    padding: 0;
}
.ncorp-sidebar .ncorp-menu li {
    list-style: none;
    margin: 15px 0;
}
.ncorp-sidebar .ncorp-menu li a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.ncorp-sidebar .ncorp-menu li.active a,
.ncorp-sidebar .ncorp-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Logout Link */
.sidebar-bottom a {
    display: block;
    background: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}
.sidebar-bottom a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ======================
   Main Dashboard Content
====================== */
.ncorp-dashboard-content {
    margin-left: 250px;
    padding: 40px;
    width: calc(100% - 250px);
    min-height: 100vh;
    background: #020314;
    box-sizing: border-box;
    color: white;
}

/* Section Headings */
.ncorp-dashboard-content h2,
.ncorp-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f5f5f5;
}

/* Lists */
.ncorp-dashboard-content ul {
    list-style: none;
    padding: 0;
}
.ncorp-dashboard-content ul li a {
    color: #3200ff;
    font-weight: 500;
    text-decoration: none;
}
.ncorp-dashboard-content ul li a:hover {
    text-decoration: underline;
}

/* Loader */
.loading-message {
    text-align: center;
    font-weight: 500;
    color: #3200ff;
}

/* ======================
   Responsive
====================== */
@media (max-width: 768px) {
    .ncorp-sidebar {
        width: 200px;
    }
    .ncorp-dashboard-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 20px;
    }
}

/* Document card container */
.ncorp-documents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual document card */
.styled-doc-card {
    background-color: #0E1041;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* File name */
.styled-doc-name {
    color: #6368CC;
    font-weight: 500;
    font-size: 16px;
    overflow-wrap: break-word;
    max-width: 200px;
}

/* Download button */
.styled-download-btn {
    background-color: #232441;
    color: #A9A9F2;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect */
.styled-download-btn:hover {
    background-color: #363761;
    color: #D5D5D5;
}
/* Hide WordPress header and footer */
header.site-header,
footer.site-footer,
.ast-footer,
.ast-header-break-point .main-header-bar {
    display: none !important;
}

/* Remove top/bottom spacing from body and main content */
body,
.site-content,
main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Full-height dashboard layout */
#ncorp-dashboard-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    top: 0;
}

.dashboard-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 10px; /* Small gap below image */
}

.dashboard-banner img {
    max-width: 70%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto 12px auto; /* Center + bottom spacing */
}
/* Initial Loading Screen Styles */
#ncorp-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* black for contrast */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease, visibility 0.3s ;
}

#ncorp-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ncorp-loader-logo {
    width: 100px;
    margin-bottom: 20px;
}

.ncorp-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Welcome user message under logo */
.welcome-user {
    margin-top: 10px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}
.welcome-user strong {
    font-size: 15px;
    color: #00ffd5;
}