/*
* Imports
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');

/* 
* Variables
*/
:root {
  --mishnis-primary: #077b7a;
  --mishnis-text: #001533;
  --mishnis-light: #EDF1F7;
  --mishnis-danger: #991B1B;
}

/*
* Global Styles
*/
body {
  background-color: #f8f9fa;
  color: var(--mishnis-text);
  font-family: 'Noto Kufi Arabic', sans-serif;
}

/*
* Sidebar
*/
.sidebar {
  background-color: var(--mishnis-primary);
  color: white;
  min-height: 100vh;
  transition: all 0.3s;
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0.25rem;
  margin: 0.2rem 0;
  padding: 0.75rem 1rem;
}
.sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}
.sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
}
.sidebar-header {
  padding: 1.5rem 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/*
* Buttons
*/
.btn-primary {
  background-color: var(--mishnis-primary);
  border-color: var(--mishnis-primary);
}
.btn-primary:hover {
  background-color: #001c40;
  border-color: #001c40;
}
.btn-danger {
  background-color: var(--mishnis-danger);
  border-color: var(--mishnis-danger);
}

/*
* Colors
*/
.bg-light {
  background-color: var(--mishnis-light) !important;
}

/*
* Tables
*/
.table {
  font-size: 14px;
}

/*
* Content
*/
.content {
  padding: 1rem;
  transition: all 0.3s;
}

/*
* Navbar
*/
.navbar {
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.dropdown-menu-end {
  left: 0;
  right: auto;
}

@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    z-index: 1030;
    height: 100%;
  }
  .sidebar.active {
    right: 0;
  }
  .content {
    width: 100%;
    padding: 1rem;
  }
  .overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s ease-in-out;
  }
  .overlay.active {
    display: block;
    opacity: 1;
  }
}

/* Image Picker */
.image-picker-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}
.image-picker {
  width: 150px;
  height: 150px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}
.image-picker:hover {
  border-color: #3498db;
  background-color: #f0f8ff;
}
.image-picker svg {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: #777;
}
.image-picker p {
  margin: 0;
  font-size: 14px;
  color: #777;
  text-align: center;
}
.image-picker input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}
.image-preview {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.remove-btn:hover {
  background-color: rgba(255,0,0,0.2);
}

/*
* Auth
*/
.auth-container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
}
.auth-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.forgot-password {
  color: var(--mishnis-primary);
  text-decoration: none;
}