.red{
    color: red;
}
.required_lable{
    color:green;
}
/* student detail */
.user-details {position: relative; padding: 10px;}
.user-details .user-image {position: relative;  z-index: 1; width: 100%; text-align: center;}
 .user-image img { clear: both; margin: auto; position: relative;}
 .user-info-block .user-heading {width: 100%; text-align: center; margin: 10px 0 0;}
 
 .fancy {
  width: 350px;
  margin: 0px auto;
  padding: 20px;
  border: solid blue 5px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

/* Modern Login Layout Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.modern-login-layout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-page, .register-page {
    background: none !important;
}
.modern-login-layout .login-box {
    width: 100%;
    max-width: 400px;
    margin: 0;
}
.modern-login-layout .login-box-body {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.modern-login-layout .login-logo-img {
    margin-bottom: 30px;
    max-height: 85px;
    object-fit: contain;
}
.modern-login-layout .login-box-msg {
    color: #4a5568;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 25px;
}
.modern-login-layout .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    height: 48px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: all 0.3s ease;
}
.modern-login-layout .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.modern-login-layout .form-control-feedback {
    line-height: 48px;
    color: #a0aec0;
}
.modern-login-layout .btn-primary {
    background: #667eea;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}
.modern-login-layout .btn-primary:hover, 
.modern-login-layout .btn-primary:active, 
.modern-login-layout .btn-primary:focus {
    background: #5a67d8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}
.modern-login-layout .error-msg {
    color: #e53e3e;
    background: #fed7d7;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}
.modern-login-layout .login-submit-row {
    margin-top: 25px;
}

/* ==============================================================
   MODERN ADMINLTE OVERRIDES (DASHBOARD & MANAGEMENT PAGES)
   ============================================================== */

/* Font & Background Overrides */
body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
.content-wrapper {
    background-color: #f4f7f6;
}
.content-header > h1 {
    font-weight: 600;
    color: #2d3748;
}

/* Box Styling (.box) */
.box {
    border-top: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
    background: #ffffff;
}
.box-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 20px;
}
.box-header > .box-title {
    font-weight: 600;
    font-size: 16px;
    color: #4a5568;
}
.box-body {
    padding: 20px;
}
.box-footer {
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 15px 20px;
    background-color: #f8fafc;
}

/* Dashboard Stat Boxes (.small-box) */
.small-box {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.small-box .inner {
    padding: 25px 20px;
}
.small-box h3 {
    font-weight: 700;
    font-size: 38px;
    margin-bottom: 10px;
}
.small-box p {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}
.small-box .icon {
    font-size: 80px;
    top: 5px;
    right: 20px;
    opacity: 0.2;
}
.small-box-footer {
    padding: 8px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.15) !important;
}

/* Base Colors Overrides for Small Boxes */
.bg-aqua { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; border:none;}
.bg-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important; border:none;}
.bg-yellow { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important; border:none;}
.bg-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%) !important; border:none;}
.bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; border:none;}

/* Tables (.table) */
.table {
    margin-bottom: 0;
}
.table-bordered {
    border: none;
}
.table-bordered > thead > tr > th {
    border-bottom-width: 2px;
    border-top: none;
    border-left: none;
    border-right: none;
    background-color: #f8fafc;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 10px;
}
.table-bordered > tbody > tr > td {
    border-left: none;
    border-right: none;
    padding: 12px 10px;
    vertical-align: middle;
    color: #4a5568;
}
.table-hover > tbody > tr:hover {
    background-color: #f7fafc;
}

/* DataTables Pagination Overrides */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px;
    margin-left: 5px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5568 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #667eea !important;
    color: #fff !important;
    border-color: #667eea;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #edf2f7 !important;
    color: #2d3748 !important;
    border-color: #cbd5e0;
}

/* Forms & Inputs */
.form-control {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #cbd5e0;
    padding: 8px 12px;
    height: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary {
    background-color: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #5a67d8 !important;
    box-shadow: 0 4px 6px rgba(90, 103, 216, 0.4);
    transform: translateY(-1px);
}
.btn-success {
    background-color: #48bb78;
}
.btn-success:hover {
    background-color: #38a169 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.4);
}
.btn-danger {
    background-color: #e53e3e;
}
.btn-danger:hover {
    background-color: #c53030 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(197, 48, 48, 0.4);
}
.btn-warning {
    background-color: #ed8936;
}
.btn-warning:hover {
    background-color: #dd6b20 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(221, 107, 32, 0.4);
}

/* Action Button Groups in Tables */
.table .btn {
    padding: 5px 10px;
    font-size: 13px;
    margin-right: 4px;
}

/* Dropdown & Select2 Modernization */
select.form-control {
    border-radius: 6px !important;
    padding-left: 12px !important;
    height: 38px !important;
    vertical-align: middle;
}

.select2-container--default .select2-selection--single {
    border-radius: 6px !important;
    border: 1px solid #cbd5e0 !important;
    height: 38px !important;
    padding: 2px 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    color: #4a5568 !important;
    padding-left: 10px !important;
    padding-right: 20px !important;
}

.select2-dropdown {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea !important;
}