/* Registration Form Styles */
.signup-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.signup-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.signup-navigation-item {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-navigation-item.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.signup-form-section {
    display: none;
}

.signup-form-section.is-active {
    display: block;
}

.signup-input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.signup-input-group {
    flex: 1;
}

.signup-input-full {
    width: 100%;
}

.signup-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-popup {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0069d9;
}


.role-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    height: 100%;
}

.role-card .card-header {
    padding: 15px 20px;
    font-weight: 500;
}

.role-card .access-level {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.role-card .access-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-card .permission-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.role-card .permission-action {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-card .configure-btn {
    width: 100%;
    border: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    color: #333;
    margin-top: auto;
}

.role-card .configure-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Role-specific colors */
.role-super-admin {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

.role-admin {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

.role-staff {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

.role-branch {
    background-color: #FFD7C7 !important;
     color: #ff7043 !important;
}

.role-student {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

.role-agent {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

.role-client {
    background-color: #FFD7C7 !important;
    color: #ff7043 !important;
}

/* Form switch styling */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
}

.form-switch .form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Table styling */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.form-select {

    background-color: #ffffff;
}

.form-control {

    background-color: #ffffff;
}

.sidebar {
    width: 180px;
    background-color: #EDEDED;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    transition: width 0.3s ease;
    position: fixed;
    left: 0;
    top: 56px; /* Height of the navbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.sidebar.collapsed {
    width: 60px;
    overflow-x: hidden;
}

.sidebar-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4b5563;
    padding: 1rem 1rem 0.5rem 1rem;
    white-space: nowrap;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar-item:hover {
    background-color: #f3f4f6;
    text-decoration: none;
}

.sidebar-item.active {
    background-color: #ff5722;
    color: white;
}

.sidebar-item i.icon {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar.collapsed .sidebar-item span,
.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-item i.fa-chevron-right {
    display: none;
}

.sidebar.collapsed .sidebar-item i.icon {
    margin-right: 0;
    font-size: 1.1rem;
}

.expandable {
    cursor: pointer;
}

.top-nav {
    background-color: #0f172a;
    color: white;
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 56px;
}

.main-content {
    /* padding: 2rem; */
    background-color: #f1f5f9;
    transition: margin-left 0.3s ease;
    margin-top: 56px; /* Height of the navbar */
    margin-left: 180px; /* Width of sidebar */
}

.sidebar.collapsed ~ .main-content {
    margin-left: 60px; /* Width of collapsed sidebar */
}

.toggle-sidebar {
    cursor: pointer;
    margin-right: 15px;
}

/* Hover expand functionality */
@media (min-width: 768px) {
    .sidebar.collapsed:hover {
        width: 180px;
    }
    
    .sidebar.collapsed:hover .sidebar-item span,
    .sidebar.collapsed:hover .sidebar-header,
    .sidebar.collapsed:hover .sidebar-item i.fa-chevron-right {
        display: inline-block;
    }
    
    .sidebar.collapsed:hover .sidebar-item i.icon {
        margin-right: 0.75rem;
    }
}

/* Submenu styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f0f0f0;
}

.submenu.open {
    max-height: 500px; /* A large enough value to fit all submenu items */
}

.submenu .sidebar-item {
    padding-left: 3rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0px;
        width: 100%;
        z-index: 10000;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
}


.upload-container {
    text-align: center;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #ff4500 !important;
}

.form-control {
    margin: 10px 0;
}

