/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Apply Montserrat globally */
body {
  font-family: 'Montserrat', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --box-shadow:0 4px 20px rgb(189 189 189 / 4%);
    --primary-font-family:'Montserrat', sans-serif;
}

h1,h2,h3,h4,h5,h6,p,a,strong{
    font-family:var(--primary-font-family);
    
}
h1,h2,h3{
    margin-bottom:15px !important;
}

/* Global */
body {
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

input{
    outline: none;
    font-family:var(--primary-font-family);
}
button{
    font-family: var(--primary-font-family) ;

  }
/* Header Base */
.top-header {
    background: #1f1f23;   /* same as your sidebar */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index:999999999;
  }
  
  /* Left Section */
  .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-text h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
  }

  .select2-container .select2-selection--single{
    height: 50px !important;
    padding-top:10px ;
  }
  .select2-container--default .select2-selection--single .select2-selection__clear{
    display: none !important;
  }
  .header-text span {
    font-size: 14px;
    color: #aaa;
  }
  
  /* Right Section (icons) */
  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .header-right a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
  }
  
.box{
    text-decoration: none;
    color:#333;
    display: flex
;
    flex-direction: column;
    justify-content: center;
}

.admin-list label{
    display:flex;
    gap:10px;
}

.admin-list input{
    width:5% !important;
}

/* Form Pages */
.form-box {
    width: 800px;
    margin: 50px auto;
    padding: 50px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.form-actions{
    margin-top: 15px;
    font-family: var(--primary-font-family) ;
}
.form-row {
    display: flex;
    gap: 20px; /* space between columns */
  }
  
  .form-column {
    flex: 1; /* equal width columns */
    display: flex;
    flex-direction: column;
    gap: 0px; /* spacing between label+input blocks */
  }
.form-box h2 {
    text-align: center;
    color: #800020;
    margin-bottom: 40px;
}

.form-box label {
    font-weight: 400;
    display: block;
    margin: 10px 0 5px;
}

.form-box input[type="text"],
.form-box input[type="number"],
.form-box input[type="file"],
.form-box input[type="date"],
.form-box input[type="email"],
.form-box input[type="password"],
.form-box select,
.form-box textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
     font-family: var(--primary-font-family) !important ;
}

.form-box button {
    background: #800020;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.form-box button:hover {
    background: #a00028;
}

.error {
    color: red;
    margin: 10px 0;
}

.success {
    color: green;
    margin: 10px 0;
}

.main-content {
    margin-left: 250px;
    padding: 40px;
    transition: margin-left 0.3s;
}

.sidebar {
    width: 220px;
    background: #1f1f23;
    color: #fff;
    height: 100vh;
    transition: width 0.3s;
    overflow: hidden;
    position: fixed;
    padding-top: 30px;
    z-index: 9999;
}

/* expanded */
.sidebar.expanded {
    width: 70px !important;
}
selector

{
    width: 50px;
    height: 50px;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-content: center;
}

 .toggle-btn {

    display: flex;
    align-items: center;
    cursor: pointer;
   
}
.sidebar .toggle-btn{
    display: none !important;
}
.logodiv{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px     ;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}
.sidebar .menu li {
    margin: 10px 0;
    transition: all 0.4s linear;

}
.sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.3s;
}
.sidebar .menu a:hover{
    background: #333 !important;
}
.sidebar .menu a.active {
    background: #333 !important;
}
.sidebar .menu i {
    min-width: 20px;
    text-align: center;
}
.sidebar .menu .label
{
   transition: all 0.4s ease;
   transition-delay: 0.2s;
    opacity: 01;
    transform: translateX(0%) !important;
}
.sidebar.expanded .menu .label {
  
    opacity: 0;  transition-delay: 0s !important;
    transform: translateX(100%) !important;
}
.sidebar.expanded ~ .main-content {
    margin-left: 60px;
}
li.logout-btn{
    padding:0px 20px ;
}
.sidebar.expanded .logout-btn a{
    padding:12px 0px ;

}
/* Dashboard Boxes */
.dashboard-boxes {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
      grid-template-columns: repeat(3,1fr);
}

.box {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-block: 50px !important;
}

.box h3 {
    color: #800020;
    margin: 0 0 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #800020;
    color: white;
}

tr:hover {
    background: #f9f9f9;
}

/* Logout */
.logout {
    margin-top: 20px;
    display: block;
    background: #a00028;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.logout:hover {
    background: #c00030;
}


.margin-bottom{
    margin-bottom: 20px;
      text-transform: capitalize;
}



.form-title{
    background: #e7e7e796;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
}


img{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}


.logout-btn {
   display: flex;
    align-items: center;
    gap: 15px;
    text-decoration:none;
}
.logout-btn:hover{
    color:white;
}

.select2-container .select2-selection--single{
    height:50px;
    align-items: center;
    display: flex;
}

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

.select2-container--default .select2-selection--single .select2-selection__rendered{
    order:1 !important;
}

.select2-selection__clear{
    order:2 !important;
}


.main-content.margin_0{
    margin:auto !important;
}
.download_btn{
    color:#fff;
    background: #800020;
    border-radius: 5px;
    padding: 8px;
    text-decoration: none;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);

}

.download_btn:hover{
    background: #6c001b;  
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date{
    text-align: left !important;

}

.display.dataTable{
    width:100% !important;
    margin-top:0 !important;
}


.dt-length label{
    text-transform: capitalize !important;
}


.select2-container--default .select2-selection--single{
    border-color: #aaaaaa52 !important;
}


td{
    padding: 14px !important;
}

#usersTable_wrapper > :first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom:10px;
}








/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets and small laptops (max-width: 1024px) */
@media (max-width: 1024px) {

  .dashboard-boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-box {
    width: 90%;
    padding: 30px;
  }

  .main-content {
    margin-left: 200px;
    padding: 20px;
  }

  .sidebar {
    width: 200px;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {

  /* Header adjustments */
 .header-text{display: none !important;}
.top-header{padding: 17px 12px;}
  table {
   overflow: scroll !important;
  }

 

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  /* Sidebar collapses */
  



  /* Adjust main content */
  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  /* Dashboard grid becomes single column */
  .dashboard-boxes {
    grid-template-columns: 1fr;
  }

  /* Form width */
  .form-box {
    width: 95%;
    padding: 25px;
  }
  .form-row{
    flex-direction: column;
  }
.dt-layout-cell.dt-end,
.dt-layout-cell.dt-start,
div.dt-container div.dt-layout-cell.dt-end {
       
    text-align: left !important;
}
  /* Table adjustments */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
#usersTable_wrapper > :first-child{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap:10px;
}
  /* Sidebar menu */
  .sidebar .menu a {
    padding: 10px 15px;
  }

  /* Make toggle button visible on header for mobile */
  .toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
  }

  /* Logout spacing fix */
  .logout-btn {
    padding: 10px 15px;
  }

  .sidebar.expanded ~ .main-content {
    margin-left: 0px;
}
.sidebar.expanded{width: 220px !important;}
.sidebar.expanded .menu .label

 {
    opacity: 1;
    transition-delay: 0s !important;
    transform: translateX(0) !important;
}
}




@media screen and (max-width: 640px) {
    .dt-container .dt-length,.dt-container .dt-search{
        text-align: left !important;
    }

}





/* Extra small screens (max-width: 480px) */
@media (max-width: 480px) {

  h1, h2, h3 {
    font-size: 18px;
  }

  .form-box {
    padding: 20px;
  }

  .form-box input,
  .form-box select,
  .form-box textarea,
  .form-box button {
    font-size: 14px;
    padding: 12px;
  }

  .dashboard-boxes {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .top-header {
    padding: 8px 12px;
  }

  .header-text h1 {
    font-size: 16px;
  }

  .header-text span {
    font-size: 12px;
  }

  .sidebar {
    width: 0px;
  }

  .sidebar.active {
    left: 0;
  }

  .logout-btn {
    gap: 10px;
  }
}
