:root {
    /* Color Palette */
    --bg-light: #f8f9fa;
    /* Light welcoming gray */
    --sidebar-dark: #1e293b;
    /* Professional deep blue-gray */
    /* Clean action blue */
    --text-main: #1a1a1a;
    /* Sharp black for readability */
    --text-muted: #64748b;
    /* Soft gray for secondary text */
    --white: #f8f9fa;
    --danger-red: #ef4444;
    /* Professional "Warning" red */

    --black:#1c1c1c;

    /* Spacing & Borders */
    --sidebar-width: 200px;
    --border-color: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --primary-color: #2364aa;
    --primary-yellow: #fec601;
    --primary-orange: #ea7317;
    --secondary-blue: #3da5d9;
    --third-blue: #73bfb8;
    --primary-red: #e63946;
    --primary-white: #f8f9fa;
}


body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    height: auto;
    align-items: flex-start;
    overflow-y: hidden;
    
}

.maintenance-message{
    margin:0;
    padding:14px 18px;
    background:#f8fafc;
    border-left:4px solid #3b82f6;
    border-radius:8px;
    color:#475569;
    line-height:1.6;
    font-size:15px;
}

.maintenance-message strong{
    color:#1e40af;
}

.parent{

    width: 100vw;
    max-width: 100vw;
    display: flex;


    
}


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

.show{
    display: block;
}


/* --- Sidebar Styling --- */
.sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    color: var(--black);
    align-items: center;
    position: sticky !important;
    top: 0;
    left: 0;
}


.sidebar-header {
    padding: 0 1rem 2rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
    width: 10rem;
    align-items: left;
}

.sidebar-nav a{
    display: flex;
    gap: 10px;
}

.nav-item {
    text-decoration: none;
    color: #94a3b8;
    /* Muted silver */
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--primary-color);
    color: var(--primary-white);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: var(--primary-white);
}

.nav-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--primary-white);
    border:2px solid var(--primary-color);
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-primary, .btn-secondary{
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}





/* Cancel (Secondary) */
.btn-secondary {
    background-color: #f1f5f9; /* Soft Slate */
    color: #475569;
    border: 1px solid #e2e8f0 !important;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Optional: Focus states for Accessibility */
.btn-primary:focus, .btn-secondary:focus {
    outline: 3px solid rgba(79, 70, 229, 0.4);
    outline-offset: 2px;
}

/* --- Logout Button --- */
.btn-danger {
    /* Use your variable for consistency, or a hardcoded professional red */
    background-color: var(--primary-red);
    border: 1px solid var(--primary-red);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-danger:hover {
    background-color: var(--primary-red);
    /* Slightly darker on hover */
    border-color: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-1px);
    /* Subtle lift effect */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-danger:active {
    transform: translateY(0px);
    /* Push down effect when clicked */
}

.btn-danger-border {
    width: 100%;
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-danger-border:hover {
    background-color: #dc2626;
    color: var(--primary-white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-outline {
    background: var(--primary-white);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
}

.btn-outline:hover { background: var(--primary-white); border-color: var(--primary-color); color: var(--primary-color); }


/* --- Main Content Area --- */
.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 90vw;
    padding: 0 100px;
}

.main-content::-webkit-scrollbar {
    display: none;
}

.content-header {
    background-color: var(--primary-white);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.content-window {
    padding: 2rem;
    max-height: 90vw !important;
    flex: 1;
}

/* Card-like container for info */
.data-card {
    background: var(--primary-white);
    border-left: 2px solid var(--border-color);
    width: 100%;
    padding: 0 1.5rem;
    height: auto;
}

.data-card::-webkit-scrollbar {
    display: none;
}

.content-window {
    overflow-y: visible;
    padding-top: 2rem;
    padding-left: 2rem;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-sm {
    width: 100%;
    max-width: 100vw;
    /* Limits width so it feels professional and centered */
    margin: 0 auto;
    background-color:var(--primary-white);
    padding: 0;
    /* Mathematical horizontal centering */
}

/* Container for the profile section */
.sidebar-user-panel {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the avatar and text */
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 20px;
    margin-top: 10px;
}

/* The Letter Avatar Circle */
.user-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color); /* Modern Indigo */
    color: var(--primary-white);
    border-radius: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 10vw;
}

/* Details Container */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Name Style */
.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Email Style */
.user-email {
    font-size: 12px;
    color: #9ca3af; /* Muted gray */
    margin-bottom: 8px;
    word-break: break-all;
}

/* Role Badge */
.user-role-badge {
    display: inline-block;
    align-self: center;
    padding: 5px 10px;
    background-color: var(--secondary-blue);
    color:var(--primary-white);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



