/* Vertical Theme - SupportEngine Custom Theme */
/*  Vertical Navigation Layout */

:root {
    /* Primary Colors */
    --bs-primary: #2263b3;
    --bs-primary-hover: #1e56a0;
    --bs-primary-light: #e0e7ff;
    --bs-primary-rgb: 34, 99, 179;
    
    /* Secondary Colors */
    --bs-secondary: #364a63;
    --bs-secondary-hover: #2b3748;
    --bs-secondary-light: #f5f6fa;
    --bs-secondary-rgb: 54, 74, 99;
    
    /* Neutral Colors  */
    --bs-light: #e5e9f2;
    --bs-lighter: #f5f6fa;
    --bs-dark: #1f2b3a;
    --bs-gray: #8091a7;
    --bs-gray-dark: #2b3748;
    --bs-muted: #8091a7;
    --bs-border: #dbdfea;
    
    /* Status Colors */
    --bs-success: #1ee0ac;
    --bs-success-rgb: 30, 224, 172;
    --bs-danger: #e85347;
    --bs-danger-rgb: 232, 83, 71;
    --bs-warning: #f4bd0e;
    --bs-warning-rgb: 244, 189, 14;
    --bs-info: #09c2de;
    --bs-info-rgb: 9, 194, 222;
    
    /* Body Colors */
    --bs-body-color: #526484;
    --bs-body-bg: #fff;
    --bs-body-color-rgb: 82, 100, 132;
    --bs-body-bg-rgb: 255, 255, 255;
    
    /* Sidebar Colors */
    --sidebar-bg: #1f2b3a;
    --sidebar-text: #8091a7;
    --sidebar-text-active: #ffffff;
    --sidebar-border: #384d69;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    
    /* Sidebar Width */
    --sidebar-width: 280px;
    --sidebar-compact-width: 80px;
}

/* Body and Layout - Vertical Layout Structure */
body {
    background-color: var(--bs-lighter);
    color: var(--bs-body-color);
    font-size: 0.875rem;
    line-height: 1.65;
    position: relative;
}

/* Main Content Area */
.nk-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nk-wrap {
    position: relative;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.sidebar-compact .nk-wrap {
    margin-left: var(--sidebar-compact-width);
}

.nk-content {
    padding: 1.5rem;
    min-height: calc(100vh - 140px);
    margin-top: 70px; /* Account for fixed header */
    flex: 1;
}

/* Sidebar Styles */
.nk-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    z-index: 1000;
    transition: all 0.3s ease;
    border-right: 1px solid var(--sidebar-border);
}

.nk-sidebar.is-compact {
    width: var(--sidebar-compact-width);
}

.nk-sidebar-element {
    position: relative;
}

.nk-sidebar-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nk-sidebar-brand .logo-img {
    max-height: 40px;
    width: auto;
}

.nk-sidebar-brand .text-white {
    text-align: center;
}

.nk-sidebar-body {
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.nk-sidebar-content {
    padding: 1rem 0;
}

/* Menu Styles */
.nk-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nk-menu-item {
    margin-bottom: 2px;
}

.nk-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.nk-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text-active);
    text-decoration: none;
}

.nk-menu-item.active .nk-menu-link,
.nk-menu-item.current-page .nk-menu-link {
    background-color: var(--bs-primary);
    color: var(--sidebar-text-active);
}

.nk-menu-icon {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1rem;
}

.nk-menu-text {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Collapsible Menu Styles */
.nk-menu-item.has-sub > .nk-menu-link::after {
    content: '\F285'; /* Bootstrap chevron-down */
    font-family: 'Bootstrap Icons';
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nk-menu-item.has-sub.active > .nk-menu-link::after {
    transform: rotate(180deg);
}

.nk-menu-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.nk-menu-item.has-sub.active .nk-menu-sub {
    max-height: 500px; /* Adjust based on content */
}

.nk-menu-sub .nk-menu-item {
    margin-bottom: 0;
}

.nk-menu-sub .nk-menu-link {
    padding: 0.5rem 1.5rem 0.5rem 3.25rem; /* Increased left padding for indentation */
    font-size: 0.8125rem;
    color: rgba(var(--sidebar-text), 0.8);
}

.nk-menu-sub .nk-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text-active);
}

.nk-menu-sub .nk-menu-item.active .nk-menu-link {
    background-color: rgba(var(--bs-primary-rgb), 0.3);
    color: var(--sidebar-text-active);
}

.nk-menu-heading {
    padding: 1rem 1.5rem 0.5rem;
    margin-top: 1rem;
}

.nk-menu-heading:first-child {
    margin-top: 0;
}

.overline-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bs-primary);
    margin: 0;
}

/* Header Styles for Vertical Layout */
.nk-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 70px;
    background-color: #fff;
    border-bottom: 1px solid var(--bs-border);
    z-index: 999;
    transition: left 0.3s ease;
}

body.sidebar-compact .nk-header {
    left: var(--sidebar-compact-width);
}

.nk-header-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.nk-header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nk-header-tools .nk-quick-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

/* Profile Dropdown Positioning */
.nk-header-tools .dropdown {
    position: relative;
}

.nk-header-tools .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: 280px;
    background-color: #fff;
    border: 1px solid var(--bs-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    transform: translateX(-10px); /* Slight left offset to prevent cutoff */
}

.nk-header-tools .dropdown-menu.show {
    display: block;
}

.nk-header-tools .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.nk-header-tools .dropdown-item:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

.nk-header-tools .dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--bs-muted);
    white-space: nowrap;
    border-bottom: none;
}

.nk-header-tools .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--bs-border);
}

.nk-header-news {
    flex: 1;
    text-align: center;
}

.nk-news-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nk-news-icon {
    color: var(--bs-primary);
    font-size: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--bs-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

/* Links */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bs-primary-hover);
    text-decoration: none;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--bs-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--bs-light);
    border-bottom: 1px solid var(--bs-border);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-header.bg-primary {
    background: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary);
}

.card-header.bg-primary * {
    color: #fff !important;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--bs-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bs-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--bs-secondary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--bs-success);
    color: #fff;
}

.btn-danger {
    background-color: var(--bs-danger);
    color: #fff;
}

.btn-warning {
    background-color: var(--bs-warning);
    color: #fff;
}

.btn-info {
    background-color: var(--bs-info);
    color: #fff;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* Forms */
.form-control {
    border: 1px solid var(--bs-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    color: var(--bs-body-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
}

.alert-danger {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
    color: var(--bs-danger);
}

.alert-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    color: var(--bs-warning);
}

.alert-info {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    color: var(--bs-info);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--border-radius-sm);
}

/* Avatars */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tables */
.table {
    background-color: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--bs-light);
    border-bottom: 1px solid var(--bs-border);
    font-weight: 600;
    color: var(--bs-dark);
    padding: 0.75rem;
}

.table td {
    border-bottom: 1px solid var(--bs-border);
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Footer */
.nk-footer {
    background-color: #fff;
    border-top: 1px solid var(--bs-border);
    padding: 1rem 1.5rem;
    margin-top: auto; /* Push footer to bottom */
}

.nk-footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nk-footer-copyright {
    color: var(--bs-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .nk-wrap {
        margin-left: 0;
    }
    
    .nk-header {
        left: 0;
    }
    
    .nk-content {
        margin-top: 70px; /* Keep fixed header spacing */
    }
    
    .nk-sidebar {
        transform: translateX(-100%);
    }
    
    .nk-sidebar.is-shown {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nk-content {
        padding: 1rem;
        margin-top: 70px; /* Ensure header doesn't overlap */
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nk-header-wrap {
        padding: 0 1rem;
    }
    
    .nk-footer-wrap {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Mobile dropdown adjustments */
    .nk-header-tools .dropdown-menu {
        transform: translateX(-50px); /* More left offset on mobile */
        min-width: 200px;
        max-width: 250px;
    }
    
    .nk-header-tools .dropdown-item {
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
    }
}

/* Mobile Navigation Overlay */
.nk-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 1199px) {
    .nk-sidebar-overlay.active {
        display: block;
    }
}

/* Menu Toggle Styles */
.nk-nav-toggle {
    background: none;
    border: none;
    color: var(--bs-dark);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nk-nav-toggle:hover {
    color: var(--bs-primary);
}

/* Content Block Styles */
.nk-block-head {
    margin-bottom: 2rem;
}

.nk-block-head-content h1,
.nk-block-head-content h2,
.nk-block-head-content h3,
.nk-block-head-content h4 {
    margin-bottom: 0.5rem;
}

.nk-block-des {
    color: var(--bs-muted);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-success { color: var(--bs-success) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-info { color: var(--bs-info) !important; }
.text-light { color: var(--bs-light) !important; }
.text-dark { color: var(--bs-dark) !important; }
.text-muted { color: var(--bs-muted) !important; }

.bg-primary { background-color: var(--bs-primary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }
.bg-success { background-color: var(--bs-success) !important; }
.bg-danger { background-color: var(--bs-danger) !important; }
.bg-warning { background-color: var(--bs-warning) !important; }
.bg-info { background-color: var(--bs-info) !important; }
.bg-light { background-color: var(--bs-light) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bs-body-bg: var(--bs-dark);
        --bs-body-color: var(--bs-light);
    }
} 
.trumbowyg-box,
    .trumbowyg-editor,
    .trumbowyg-button-pane {
      background-color: white !important;
    }
.note-editor .note-btn {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
.note-editor .note-btn:hover {
    background-color: #f8f9fa !important;
    color: black !important;
  }