 
 
 
        :root {
            --dtele-dark-blue: #002D62;
            --dtele-light-blue: #3A8EBA;
            --dtele-bg: #F4F7F9;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--dtele-bg);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .index-wrapper {
           width: 380px;
            padding: 30px;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            text-align: center;
        }
        .wrapper {
            width: 800px;
            padding: 30px;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            text-align: center;
        }
        .logo-container {
            margin-bottom: 25px;
        }
        .logo-container img {
            max-width: 100%;
            height: auto;
        }
        h2 {
            color: var(--dtele-dark-blue);
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            font-size: 14px;
        }
        .form-control {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }
        .form-control:focus {
            border-color: var(--dtele-light-blue);
            outline: none;
        }
        .btn-primary {
            width: 100%;
            padding: 12px;
            background-color: var(--dtele-dark-blue);
            border: none;
            color: white;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.2s ease;
        }
        .btn-primary:hover {
            background-color: var(--dtele-light-blue);
        }
        .error-msg {
            color: #d9534f;
            font-size: 13px;
            margin-top: 5px;
        }
        .alert-danger {
            background-color: #f2dede;
            color: #a94442;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 14px;
        }
    
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font: 14px sans-serif; background-color: #F4F7F9; display: flex; min-height: 100vh; }
        
        /* Sidebar Styles */
        .sidebar { width: 250px; background: #002D62; color: white; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; position: fixed; height: 100vh; left: -250px; top: 0; z-index: 1000; }
        .sidebar.active { left: 0; }
        .sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
        .sidebar-menu { list-style: none; padding: 20px 0; text-align: left; flex-grow: 1; overflow-y: auto; }
        
        /* Menu Links & Dropdown Containers */
        .menu-item { display: flex; flex-direction: column; }
        .sidebar-menu a, .dropdown-btn { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #CBD5E1; text-decoration: none; font-size: 15px; transition: 0.2s; background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
        .sidebar-menu a:hover, .dropdown-btn:hover { background: rgba(255,255,255,0.1); color: white; }
        .sidebar-menu svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
        
        /* Arrow Rotation */
        .arrow-icon { margin-left: auto; width: 12px !important; height: 12px !important; transition: transform 0.2s ease; }
        .dropdown-btn.active .arrow-icon { transform: rotate(180deg); }
        
        /* Smooth CSS Slide-Down Submenu Container */
        .submenu-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(0, 0, 0, 0.15); }
        .dropdown-btn.active + .submenu-wrapper { grid-template-rows: 1fr; }
        .submenu { list-style: none; padding-left: 15px; overflow: hidden; }
        .submenu a { font-size: 13px; padding: 10px 20px; }
        
        /* Main Content Styles */
        .main-content { flex-grow: 1; padding: 40px; margin-left: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; text-align: center; }
        .main-content.shifted { margin-left: 250px; width: calc(100% - 250px); }
        
        /* Control Buttons */
        .toggle-btn { position: fixed; left: 20px; top: 20px; background: #002D62; color: white; border: none; padding: 10px 15px; cursor: pointer; border-radius: 4px; font-weight: bold; z-index: 999; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
        .logout-btn { margin: 20px; padding: 10px; background: #D97706; color: white; text-decoration: none; border-radius: 4px; text-align: center; font-weight: bold; }
        .logout-btn:hover { background: #B45309; }
        
        h1 { color: #002D62; margin-top: 40px; }

    /* Base layout styles */
.main-content {
  padding: 24px;
  background-color: #f8f9fa;
  min-height: 100vh;
}


/* Keep the table header visible and prevent it from sliding under the sticky toolbar */
.profile-table thead th {
  position: sticky;
  top: 66px;
  z-index: 10;
  background-color: #002D62;
  color: white;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}

/* Ensure the parent container allows scrolling */
.main-content {
 flex-grow: 1;
  width: 100%;
  padding: 40px;
  margin-left: 0;
  text-align: center;
  background-color: #f8f9fa;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.main-content.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Dashboard title typography */
#mainContent h1 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.container{
 max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: #1e293b;
  border: 1px solid #232631;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  /* CRITICAL: Remove any overflow rules from here as well */


}

/*profile css*/


 /* Table and expandable row styling */
        .profile-table {
            width: 100%;
            border-collapse: collapse;
            color: #050505;
            background-color: #FFFFFF;
           margin-top: 10px;
        }
        .profile-table th {
           position: sticky;
  top: 66px;
  z-index: 10;
  background-color: #002D62;
  color: white;
  padding: 12px;
  border-bottom: 1px solid #334155;
        }
        .profile-table td {
            background-color: #FFFFFF;
            color: #050505;
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
        }
        .action-row {
            display: none;
            background-color: #FFFFFF;
        }
        .action-row.active {
            display: table-row;
        }
        .toggle-icon {
            cursor: pointer;
            font-weight: bold;
            font-size: 18px;
            user-select: none;
            color: #080808;
            width: 30px;
            text-align: center;
        }
        .btn-group {
            display: flex;
            gap: 10px;
            padding: 8px 12px;
        }
        .btn {
            border: none;
            border-radius: 4px;
            padding: 6px 14px;
            font-weight: bold;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            font-size: 11px;
            text-transform: uppercase;
        }
        .btn-edit { background-color: #4ade80; color: #000; }
      
        

        /*search container*/

        .search-container {
            margin-top: 60px;
            display: flex;
            justify-content: center;
        
        }

        .add-btn {
            background-color: #002D62;
            color: #fff;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            margin-top: 60px;
         margin-left: auto;
        }   



.action-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #ffffff;
    padding: 18px 0 14px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
    margin-bottom: 0;
}

.main-content {
    margin-top: 0;
    padding-top: 18px;
    position: relative;
    overflow: visible;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search-form-right {
    width: 100%;
}

.search-form input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    background: #fff;
}

.page-size-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.page-size-wrap select {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1e293b;
}

.footer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 10px;
    flex-wrap: wrap;
}

.btn-search,
.clear-btn,
.btn-add,
.page-btn {
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-search {
    background-color: #002D62;
    color: white;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    color: #1e293b;
    font-size: 14px;
}

.page-btn {
    background: #e2e8f0;
    color: #0f172a;
    min-width: 74px;
}

.page-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.page-info {
    font-weight: 600;
}

.clear-btn {
    background-color: #6c757d;
    color: white;
}

.btn-add {
    background-color: #002D62;
    color: white;
    margin-left: auto;
}
.form-container {
    max-width: 600px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px auto;
}
.form-container h2 {
    margin-top: 0;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}
.form-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}
.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}
.btn-save {
    background-color: #002D62;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-cancel {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}
/*for delete*/
        .status-disabled {
    opacity: 0.5; /* Fades the entire row */
    background-color: #f8d7da; /* Optional: adds a light red tint */
}
