
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito+Sans:wght@500&display=swap');

body{
    font-family: "Roboto", sans-serif;
    zoom: 0.8;
    margin: 0;
}

ul{
  padding: 0;
}

.loader-wrapper {
  position: fixed;       
  top: 0;
  left: 0;
  width: 100vw;          
  height: 100vh;         
  background-color: rgba(255, 255, 255, 0.8); 
  display: flex;       
  justify-content: center; 
  align-items: center;   
  z-index: 9999;         
}
.loader-wrapper.hidden {
  display: none;         
}
.loader {
  --d:22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  color: #25b09b;
  box-shadow: 
    calc(1*var(--d))      calc(0*var(--d))     0 0,
    calc(0.707*var(--d))  calc(0.707*var(--d)) 0 1px,
    calc(0*var(--d))      calc(1*var(--d))     0 2px,
    calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
    calc(-1*var(--d))     calc(0*var(--d))     0 4px,
    calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px,
    calc(0*var(--d))      calc(-1*var(--d))    0 6px;
  animation: l27 1s infinite steps(8);
}
@keyframes l27 {
  100% {transform: rotate(1turn)}
}

.heading-1{
    background-color: #f7f7f7;
    padding: 20px;
    color: #19191a;
    border: 1px solid #ccc;
}

.flex{
    display: flex;
}
.items-center{
    align-items: center;
}
.justify-between{
    justify-content: space-between;
}
.grid{
    display: grid;
}
.grid-t-1{
    grid-template-columns: repeat(1, 1fr);
}
.grid-t-2{
    grid-template-columns: repeat(2, 1fr);
}
.grid-t-3{
    grid-template-columns: repeat(3, 1fr);
}
.grid-t-4{
    grid-template-columns: repeat(4, 1fr);
}
.space-x-1{
    grid-gap: 20px;
}
.space-x-2{
    grid-gap: 40px;
}
.span-2{
  grid-column: span 2;
}
.span-3{
  grid-column: span 3;
}



.sidebar{
    width: 270px;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 1px 6px 0 #20212447;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
}
.navbar{
    box-shadow: 0 1px 6px 0 #20212447;
    background-color: white;
    padding: 20px;
    height: 30px;
}
.navbar img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover !important;
    margin-right: 10px;
    cursor: pointer;
}
.navbar input{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px !important;
    width: 400px !important;
}
.signout-btn{
    padding: 10px;
    border: none;
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    background-color: #003366;
    transform: scale(0.7);
    font-size: 18px;
}
main{
    margin-left: 270px;
}
.main-content{
    padding: 60px 20px;
}
.sidebar img{
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.sidebar ul li {
    margin-bottom: 10px;
    padding: 10px 30px;
    transition: all ease-in 0.2s;
}
.sidebar ul li:hover{
    padding: 10px 50px;
    background-color: #7db9f1;
    border-radius: 5px;
    margin: 10px;
}

.sidebar ul li:hover a{
    color: white;
}
  
  ul li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: 0.3s;
  }
  
  ul li a:hover {
    color: #0077cc;
  }
  
  .material-icons {
    margin-right: 8px;
  }
  

  .main-content h1{
    font-family: "DM Sans";
  }

  .main-content .stats > div{
    box-shadow: 0 1px 6px 0 #20212447;
    padding: 15px 30px;
    border-radius: 10px;
    transition: transform 0.2s;
  }
  .main-content .stats > div:hover{
    transform: translateY(-5px);
  }


  .main-content .stats .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .main-content .stats .inner h3{
    font-weight: 500;
  }
  .main-content .stats > div p{
    color: #555555 !important;
    font-weight: 400;
  }
  .main-content .stats > div h2{
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 400;
  }

  .main-content .stats .inner span{
    color: white;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
  }

.stat-1{
    background-color: orange;
}
.stat-2{
    background-color: #0d6efd;
}
.stat-3{
    background-color: #0dcaf0;
}
.stat-4{
    background-color: #dc3545;
}


.summary-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .summary-card {
    background-color: #ffffff;
    border-left: 5px solid #47bdeb;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
  }
  
  .summary-card:hover {
    transform: translateY(-5px);
  }
  
  .summary-number {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 10px 0;
  }
  
  .summary-text {
    font-size: 0.95rem;
    color: #555;
  }

  .alerts-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .alert {
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  }
  
  /* Alert Types */
  .alert-warning {
    background-color: #f39c12;
  }
  
  .alert-danger {
    background-color: #e74c3c;
  }
  
  .alert-success {
    background-color: #27ae60;
  }

.login-page{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container{
    padding: 80px;
    box-shadow: 0 1px 6px 0 #20212447;
    width: 400px;
    border-radius: 5px;
}

.login-container img{
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: block;
    margin: auto;
}
.login-container h3{
  text-align: center;
  margin-bottom: 40px;
}

/* Form inputs */
.form-group {
  margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    display: block;
    width: 78%;
}

input:focus {
  border-color: #2c3e50;
  outline: none;
}

.login-container button{
  width: 104%;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Sign in button */
button {
  width: 100%;
  padding: 12px;
  background-color: #2c3e50;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: auto;
  display: block;
}

button:hover {
  background-color: #1a252f;
}

.login-container .form-group{
    position: relative;
}
.login-container .form-group span{
    position: absolute;
    top: 10px;
    left: 10px;
    color: #050507;
}

.login-container input{
    padding: 15px 50px;
}

.officer-page-profile {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.1); */
  }
  
  .profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .profile-header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
  }

  .profile-header .ranks span{
    font-size: 15px;
    margin: 0;
  }
  
  .officer-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
  }
  
  .officer-info p {
    margin: 4px 0;
    color: #555;
  }
  
  .status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
  }
  
  .on-duty {
    background-color: #27ae60;
    color: white;
  }
  
  .off-duty {
    background-color: #e74c3c;
    color: white;
  }
  
  .profile-details h3 {
    margin-bottom: 15px;
    color: #2c3e50;
  }
  
  .profile-details ul {
    list-style: none;
    padding: 0;
    line-height: 1.8;
    color: #333;
  }
  .profile-details ul li{
    display: flex;
    flex-direction: column;
  }
  .profile-details ul li span{
    font-weight: 500 !important;
  }
  
  .profile-actions {
    margin-top: 20px;
  }
  
  .profile-actions button {
    margin-right: 10px;
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
  }
  
  .profile-actions button:hover {
    background: #1a252f;
  }

  .officer-stats ul li{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .officer-stats ul li span:last-child{
    font-weight: 500;
    color: #555555;
  }

  .badge{
    background-color: #388ec1;
    padding: 10px;
    border-radius: 50%;
    color: white !important;
  }
  
  
  /* Search Bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 10px;
  background-color: #f4f4f4;
}

.search-bar input {
  padding: 8px;
  width: 250px;
  border: 1px solid #ccc;
}

.search-bar button {
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #2980b9;
}

.search-bar select {
  padding: 8px;
  border: 1px solid #ccc;
}

/* Criminal Cases Table */
.cases-list table {
  width: 100%;
  border-collapse: collapse;
}

.cases-list th, .cases-list td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.cases-list th {
  background-color: #f2f2f2;
}

.status {
  padding: 5px 10px;
  border-radius: 3px;
}

.status.open {
  background-color: #e74c3c;
  color: white;
}

.status.closed {
  background-color: #2ecc71;
  color: white;
}

.status.in-progress {
  background-color: #f39c12;
  color: white;
}

/* Add Case Form */
.add-case-form {
  max-width: 600px;
  margin: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.add-case-form .form-group {
  margin-bottom: 15px;
}

.add-case-form label {
  display: block;
  margin-bottom: 5px;
}

.add-case-form input, .add-case-form select, .add-case-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.add-case-form button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
}

.add-case-form button:hover {
  background-color: #2980b9;
}

/* Case Details */
.case-details {
  max-width: 800px;
  margin: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.case-details .case-info p {
  font-size: 1.1em;
  margin: 10px 0;
}

.evidence ul {
  list-style-type: none;
  padding: 0;
}

.evidence li {
  margin: 5px 0;
}

.cases-list #actions{
  width: 250px;
}
.cases-list #actions button{
  transform: scale(0.8);
  width: 120px;
}
.cases-list #actions button:first-child{
  float: left;
}
.cases-list #actions button:last-child{
  float: left;
}


.criminals-page {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}
.criminals-table img{
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ccc;
  padding: 5px;
}

/* .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.add-btn {
  padding: 10px 20px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.search-bar {
  margin: 15px 0;
}

.search-bar input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.criminals-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.criminals-table th,
.criminals-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.status.jailed {
  background-color: red;
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
  display: flex;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 16px;
  border: 1px solid #3498db;
  background-color: #3498db;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}



@media (max-width: 768px) {
  .sidebar{
    transform: translateX(-700px);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
  }
  .sidebar .menu-icon-close{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #050507;
    color: white;
    border-radius: 50%;
    padding: 3px;
    cursor: pointer;
  }
  .sidebar.move-left{
    transform: translateX(0);
  }
  main{
    margin-left: 0;
  }
  .main-content{
    padding: 110px 10px;
  }
  .stats{
    grid-template-columns: repeat(1, 1fr);
  }
  .notify-container{
    grid-template-columns: repeat(1, 1fr);
  }
  .navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 10px;
  }

  .nav-profile{
    align-items: normal
  }

  .navbar input{
    display: none;
  }

  .navbar .menu-icon{
    font-size: 40px;
    font-weight: 400;
  }

  .officer-container{
    grid-template-columns: repeat(1, 1fr);
  }

  .profile-header{
    flex-direction: column;
    align-items: center;
  }

  .card-page {
    background: #fff;
    padding: 30px;
    box-shadow: 0 1px 6px 0 #20212447;
    border: none !important;
    margin: 0 !important;
  }
  .heading-1{
    margin-bottom: 0;
  }

  .officer-info{
    text-align: center;
  }
}



@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar{
    transform: translateX(-700px);
  }
  .sidebar.move-left{
    transform: translateX(0);
  }
  main{
    margin-left: 0;
  }
  .stats{
    grid-template-columns: repeat(2, 1fr);
  }
  .notify-container{
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar input{
    display: none;
  }

  .navbar .menu-icon{
    font-size: 40px;
    font-weight: 400;
  }
}

@media (min-width: 768px){
  .navbar .menu-icon{
    display: none;
  }
  .sidebar .menu-icon-close{
    display: none;
  }

}
