/* services Layout */
.services-wrapper {
    display: flex;
    min-height: 100vh;
}

.services-sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    top: 0;
    left: 0;
}

.services-main {
    margin-left: 250px;
    flex: 1;
    background-color: #f8f9fa;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Sidebar styles */
.services-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #4b545c;
}

.services-brand h2 {
    margin: 0;
    font-size: 1.5rem;
}

.services-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-nav li a {
    display: block;
    padding: 12px 20px;
    color: #dee2e6;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.services-nav li a:hover {
    background-color: #495057;
    color: #fff;
    border-left: 3px solid #007bff;
}

.services-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.services-nav li.active a {
    background-color: #495057;
    color: #fff;
    border-left: 3px solid #007bff;
}

/* Dropdown menu in sidebar */
.services-nav-dropdown a {
    position: relative;
}

.services-nav-dropdown a i.fa-angle-down {
    transition: transform 0.3s;
}

.services-nav-dropdown a[aria-expanded="true"] i.fa-angle-down {
    transform: rotate(180deg);
}

.services-nav-dropdown ul {
    padding-left: 30px;
    background-color: #2c3237;
}

.services-nav-dropdown ul li a {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.services-nav-dropdown ul li.active a {
    background-color: #3a4248; 
    color: #fff;
    border-left: 3px solid #007bff;
}

.services-footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Top Navigation */
.services-topnav {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.services-topnav-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #495057;
    font-size: 1.25rem;
    margin-right: 15px;
    cursor: pointer;
    display: none;
}

.services-search {
    position: relative;
}

.services-search input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    width: 250px;
    padding-right: 35px;
}

.services-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
}

.services-topnav-right {
    display: flex;
    align-items: center;
}

.services-notifications {
    margin-right: 20px;
}

.notification-icon {
    color: #495057;
    position: relative;
}

.notification-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
}

.services-user .dropdown-toggle {
    background: none;
    border: none;
    color: #495057;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-name {
    margin-right: 5px;
}

/* Content Area */
.services-content {
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-sidebar {
        transform: translateX(-100%);
    }
    
    .services-sidebar.show {
        transform: translateX(0);
    }
    
    .services-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
}

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

.sidebar-overlay.show {
    display: block;
}

/* Better toggle button styling */
.sidebar-toggle {
    background: none;
    border: none;
    color: #495057;
    font-size: 1.25rem;
    margin-right: 15px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: none;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Ensure sidebar is always visible on large screens */
@media (min-width: 992px) {
    .services-sidebar {
        transform: translateX(0) !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Toggle sidebar when collapsed */
.sidebar-collapsed .services-sidebar {
    width: 70px;
    overflow: hidden;
}

.sidebar-collapsed .services-sidebar .services-brand h2,
.sidebar-collapsed .services-sidebar .services-nav li span,
.sidebar-collapsed .services-sidebar .services-footer {
    display: none;
}

.sidebar-collapsed .services-sidebar .services-nav li a {
    text-align: center;
    padding: 12px 5px;
}

.sidebar-collapsed .services-sidebar .services-nav li a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar-collapsed .services-main {
    margin-left: 70px;
}

.login-page {
  max-width: 500px;
  padding: 1rem;
}

.otp_verify-page {
  max-width: 500px;
  padding: 1rem;
}
