/* common.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    direction: rtl;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    /* מסדר את התוכן בצד שמאל והסרגל בצד ימין */
    overflow: hidden;
    /* מונע גלילה מיותרת */
}
/* Add this to your main CSS file (e.g., common.css or index.css) */
@media (max-width: 1800px) {
  body {
    zoom: 80%;
  }
}

/* ========================================
   SIDEBAR - MODERN GLASSMORPHISM DESIGN
   ======================================== */

.sidebar {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.85) 0%,
      rgba(139, 92, 246, 0.85) 50%,
      rgba(168, 85, 247, 0.85) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: white;
    width: 280px;
    height: 100%;
    padding: 25px 15px;
    box-shadow: 
      -4px 0 40px rgba(99, 102, 241, 0.4),
      -2px 0 20px rgba(168, 85, 247, 0.3),
      inset 1px 0 0 rgba(255, 255, 255, 0.3);
    position: fixed;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
    padding-top: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    overflow-y: auto;
}

/* User Info Section */
.sidebar-user-info {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
}

.sidebar-username {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.sidebar-roles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.sidebar-role {
    background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 100%);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Clock Section */
.sidebar-clock {
    background: linear-gradient(135deg, 
      rgba(16, 185, 129, 0.85) 0%,
      rgba(5, 150, 105, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
      0 6px 25px rgba(16, 185, 129, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
}

.sidebar-time {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.sidebar-date {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

/* Logout Button */
.sidebar-logout-button {
    background: linear-gradient(135deg, 
      rgba(239, 68, 68, 0.95) 0%,
      rgba(220, 38, 38, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white !important;
    padding: 16px 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: center;
    width: 100%;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
      0 6px 25px rgba(239, 68, 68, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.sidebar-logout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.3), 
      transparent);
    transition: left 0.5s;
}

.sidebar-logout-button:hover::before {
    left: 100%;
}

.sidebar-logout-button:hover {
    background: linear-gradient(135deg, 
      rgba(239, 68, 68, 1) 0%,
      rgba(220, 38, 38, 1) 100%) !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
      0 10px 35px rgba(239, 68, 68, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Divider */
.sidebar-divider {
    height: 3px;
    background: linear-gradient(90deg, 
      transparent 0%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 100%);
    margin: 20px 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.sidebar button:not(.sidebar-logout-button) {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.sidebar button:not(.sidebar-logout-button).active {
    background: linear-gradient(135deg, 
      rgba(16, 185, 129, 0.95) 0%,
      rgba(5, 150, 105, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
      0 6px 25px rgba(16, 185, 129, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
}

.sidebar button:not(.sidebar-logout-button):hover {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.main-content {
    flex-grow: 1;
    /* תופס את כל הרוחב הפנוי */
    padding: 230px 40px 40px 40px;
    /* Top padding for header, side padding for content */
    margin-right: 280px;
    /* שומר מקום לסרגל הצד המורחב */
    height: 100vh;
    overflow-y: auto;
    /* אם יש גלילה פנימית */
    display: flex;
    flex-direction: column;
    background: transparent;
    /* Allow gradient background to show through */
}

.login-main-content {
    align-items: center;
    margin-top: 300px;
    flex-grow: 1;
    /* תופס את כל הרוחב הפנוי */
    padding: 20px;
    margin-right: 0;
    /* שומר מקום לסרגל הצד */
    height: 100vh;
    overflow-y: auto;
    /* אם יש גלילה פנימית */
    display: flex;
    flex-direction: column;
}

@media (max-width: 2400px) {
    .login-main-content {
        margin-top: 250px;
    }
}

.form-container {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.2),
      0 8px 25px rgba(99, 102, 241, 0.15),
      inset 0 2px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.25),
      0 10px 30px rgba(99, 102, 241, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.form-container h2 {
    margin-top: 0;
}

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

.form-container input,
.form-container select {
    width: calc(100% - 22px);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-container input:focus,
.form-container select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
      0 4px 15px rgba(99, 102, 241, 0.2),
      0 0 0 3px rgba(99, 102, 241, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 1);
}

.form-container button {
    background: linear-gradient(135deg, 
      rgba(16, 185, 129, 0.95) 0%,
      rgba(5, 150, 105, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 
      0 6px 20px rgba(16, 185, 129, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-container button:hover {
    background: linear-gradient(135deg, 
      rgba(5, 150, 105, 1) 0%,
      rgba(4, 120, 87, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
      0 10px 30px rgba(16, 185, 129, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* סגנון לשדה טלפון שגוי */
.form-container input.error {
    border: 2px solid red;
}

/* הודעת שגיאה מוסתרת כברירת מחדל */
.error-message {
    color: red;
    font-size: 0.9em;
    display: none;
    margin-top: -5px;
    margin-bottom: 10px;
}

.error-text {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Customize the toast container */
.Toastify__toast {
    font-size: 1.5em;
    /* Increase font size */
    padding: 20px;
    /* Add more padding */
    border-radius: 10px;
    /* Add rounded corners */
    text-align: right;
    /* Center-align text */
    direction: rtl;
    /* Prevent text wrapping */
    width: 600px;
    /* Set width to auto to fit content */
    margin-top:
        /* calc from header height */
        calc(50px + 100px);
}

/* Customize the success toast */
.Toastify__toast--success {
    background-color: #4caf50;
    /* Green background for success */
    color: white;
    /* White text */
}

/* Customize the error toast */
.Toastify__toast--error {
    background-color: #f44336;
    /* Red background for error */
    color: white;
    /* White text */
}

.toast-rtl {
    direction: rtl;
    /* Set text direction to Right-to-Left */
    text-align: right;
    /* Align text to the right */
    font-family: Arial, sans-serif;
    /* Optional: Set a font that supports RTL */
}

.sort-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    margin-left: 5px;
    margin-right: 10px;
    color:
        /*white*/
        #fdfbfb;
}

/* ========================================
   GLOBAL GLASSMORPHISM CARD STYLES
   ======================================== */

/* General card/container styling */
.card,
.container,
.content-wrapper {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.2),
      0 8px 25px rgba(99, 102, 241, 0.15),
      inset 0 2px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.card:hover,
.container:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.25),
      0 10px 30px rgba(99, 102, 241, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* Modal backdrop styling - subtle dark transparent overlay */
.ReactModal__Overlay {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Modal content styling */
.modal-content,
.ReactModal__Content {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.95) 0%,
      rgba(249, 250, 251, 0.95) 100%) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.3),
      0 10px 30px rgba(99, 102, 241, 0.2),
      inset 0 2px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Button variations - Primary (green) */
button.btn-primary,
button.btn-success,
.button-primary {
    background: linear-gradient(135deg, 
      rgba(16, 185, 129, 0.95) 0%,
      rgba(5, 150, 105, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 
      0 6px 20px rgba(16, 185, 129, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button.btn-primary:hover,
button.btn-success:hover,
.button-primary:hover {
    background: linear-gradient(135deg, 
      rgba(5, 150, 105, 1) 0%,
      rgba(4, 120, 87, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
      0 10px 30px rgba(16, 185, 129, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Button variations - Danger (red) */
button.btn-danger,
button.btn-delete,
.button-danger {
    background: linear-gradient(135deg, 
      rgba(239, 68, 68, 0.95) 0%,
      rgba(220, 38, 38, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 
      0 6px 20px rgba(239, 68, 68, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button.btn-danger:hover,
button.btn-delete:hover,
.button-danger:hover {
    background: linear-gradient(135deg, 
      rgba(220, 38, 38, 1) 0%,
      rgba(185, 28, 28, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
      0 10px 30px rgba(239, 68, 68, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Button variations - Info (blue) */
button.btn-info,
button.btn-secondary,
.button-info {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.95) 0%,
      rgba(139, 92, 246, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 
      0 6px 20px rgba(99, 102, 241, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button.btn-info:hover,
button.btn-secondary:hover,
.button-info:hover {
    background: linear-gradient(135deg, 
      rgba(79, 70, 229, 1) 0%,
      rgba(109, 40, 217, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
      0 10px 30px rgba(99, 102, 241, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Table glassmorphism styles - global */
table {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

table thead th {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.95) 0%,
      rgba(139, 92, 246, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, 
      rgba(240, 242, 245, 0.8) 0%,
      rgba(230, 232, 236, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

table tbody tr:hover {
    background: linear-gradient(90deg, 
      rgba(165, 180, 252, 0.5) 0%,
      rgba(192, 132, 252, 0.5) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 
      0 8px 25px rgba(99, 102, 241, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar styling for glassmorphism */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.6) 0%,
      rgba(168, 85, 247, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.8) 0%,
      rgba(168, 85, 247, 0.8) 100%);
}
/* ========================================
   HEADER - MODERN GLASSMORPHISM DESIGN
   ======================================== */

.header {
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.85) 0%,
      rgba(139, 92, 246, 0.85) 50%,
      rgba(168, 85, 247, 0.85) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    height: 200px;
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 8px 40px rgba(99, 102, 241, 0.35),
      0 4px 20px rgba(168, 85, 247, 0.25),
      inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
      rgba(99, 102, 241, 1) 0%,
      rgba(168, 85, 247, 1) 50%,
      rgba(236, 72, 153, 1) 100%);
    box-shadow: 0 2px 15px rgba(99, 102, 241, 0.5);
}

/* כדי שהתוכן לא יוסתר ע"י ה-Header */
body {
    padding-top: 100px;
}

/* === Logo positioned at rightmost corner (left for RTL) === */
.logo {
    width: 180px;
    height: 180px;
    position: absolute;
    right: 310px;
    /* Account for sidebar */
    top: 10px;
    flex-shrink: 0;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: white;
    padding: 10px;
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.2),
      0 0 20px rgba(255, 255, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    object-fit: contain;
    z-index: 1002;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 
      0 8px 35px rgba(0, 0, 0, 0.25),
      0 0 25px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* === Page Title - Centered === */
.title {
    font-size: 4em;
    font-weight: 900;
    margin: 0;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: linear-gradient(135deg, 
      #ffffff 0%,
      #f0f9ff 25%,
      #e0f2fe 50%,
      #bae6fd 75%,
      #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.4))
            drop-shadow(0 2px 10px rgba(99, 102, 241, 0.6))
            drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes titleGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.4))
                drop-shadow(0 2px 10px rgba(99, 102, 241, 0.6))
                drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 6px 30px rgba(255, 255, 255, 0.6))
                drop-shadow(0 3px 15px rgba(99, 102, 241, 0.8))
                drop-shadow(0 0 40px rgba(168, 85, 247, 0.6));
    }
}

/* Right header container no longer needed but keep for compatibility */
.right-header {
    display: contents;
}

/* === תמונת עמית, ציטוט ו-QR === */
.top-left {
    position: absolute;
    top: 20px;
    left: 40px;
    display: flex;
    align-items: center;
    z-index: 1001;
    gap: 25px;
}

.amit-img {
    width: 130px !important;
    height: 170px !important;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.25),
      0 0 20px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.amit-img:hover {
    transform: scale(1.05);
    box-shadow: 
      0 8px 35px rgba(0, 0, 0, 0.3),
      0 0 25px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.qr-code {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: white;
    padding: 10px;
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.2),
      0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 
      0 8px 35px rgba(0, 0, 0, 0.25),
      0 0 25px rgba(255, 255, 255, 0.3);
}

.quote {
    font-size: 26px;
    font-weight: 600;
    text-align: right;
    color: #1f2937;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.95) 0%,
      rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 24px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 280px;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.quote:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 8px 35px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* User actions removed - now in sidebar */


@media (max-width: 2400px) {
    .header {
        height: 180px;
        padding: 18px 25px;
    }

    .logo {
        width: 160px;
        height: 160px;
        right: 290px;
    }

    .title {
        font-size: 3.2em;
    }

    .new-families-report-main-content .title,
    .families-waiting-report-main-content .title,
    .possible-matches-report-main-content .title,
    .pending-tutors-report-main-content .title {
        font-size: 4em !important;
    }

    .families-waiting-report-main-content .title {
        margin-left: 20px !important;
    }

    .top-left {
        gap: 20px;
        left: 35px;
    }

    .amit-img {
        width: 120px !important;
        height: 155px !important;
    }

    .qr-code {
        width: 130px;
        height: 130px;
    }

    .quote {
        font-size: 24px;
        padding: 18px 22px;
        width: 260px;
    }
}

@media (max-width: 1800px) {
    .header {
        height: 160px;
    }

    .logo {
        width: 140px;
        height: 140px;
        right: 370px;
    }

    .title {
        font-size: 6.8em !important;
    }

    .top-left {
        gap: 18px;
        left: 30px;
    }

    .amit-img {
        width: 110px !important;
        height: 140px !important;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }

    .quote {
        font-size: 22px;
        padding: 16px 20px;
        width: 240px;
    }
}
/* tasks.css */
.main-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.page-content {
  margin-top: 160px;
  /* תלוי בגובה של ההדר + מרווח קטן */
  padding: 20px;
  /* קצת רווח פנימי */
}



.tasks-main-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: row;
  margin-top: 250px;
  padding-right: 320px;
}

.tasks-page-content {
  /* תלוי בגובה של ההדר + מרווח קטן */
  padding: 20px;
  /* קצת רווח פנימי */
}

.strong-p {
  font-weight: bold;
  /* Make text bold */
  font-size: 24px !important;
  /* Increase font size */
  color: #333;
  /* Darker color for better readability */
  /* background-color: #008fb3; */
}


/* No tasks message */
.no-tasks {
  margin-top: 20px;
  text-align: center;
  font-size: 2em;
  /* Adjust font size */
  color: #666;
  /* Subtle gray color */
}


.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: calc(100% - 22px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Ensure the container is responsive */
.filter-create-container {
  display: flex;
  justify-content: flex-end;
  /* Align all buttons and dropdowns to the right */
  align-items: center;
  /* Vertically align items */
  gap: 15px;
  /* Reduce spacing between items */
  position: fixed;
  /* Fix the container in place */
  top: 200px;
  /* Stick to the top of the page */
  right: 250px;
  /* Align to the right side of the page */
  font-size: 1em;
  /* Ensure all fonts are 2em */
  /* מסיר רווחים פנימיים בין הכפתורים */
  padding: 10px 20px;
  /* ניתן להתאים לפי הצורך */

}

/* Style the buttons and dropdowns */
.create-task button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  margin-right: 20px;
  box-shadow: 
    0 4px 15px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.create-task button:hover {
  background: linear-gradient(135deg, 
    rgba(56, 142, 60, 1) 0%,
    rgba(46, 125, 50, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.refresh button {
  background: linear-gradient(135deg, 
    rgba(0, 123, 255, 0.95) 0%,
    rgba(0, 86, 179, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 
    0 4px 15px rgba(0, 123, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.refresh button:hover {
  background: linear-gradient(135deg, 
    rgba(0, 86, 179, 1) 0%,
    rgba(0, 62, 135, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 123, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filter select {
  padding: 10px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 24px;
  min-width: 150px;
  color: #1f2937;
  font-weight: 600;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.2),
    0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Ensure the container doesn't overflow */
.filter-create-container>* {
  flex: 1 1 auto;
  /* Allow items to grow and shrink as needed */
  /* min-width: 150px; */
  /* Set a minimum width for each item */
}

.loader {
  border: 15px solid #f3f3f3;
  /* Thicker border */
  border-top: 15px solid #3498db;
  /* Thicker border */
  border-right: 15px solid #3498db;
  /* Extend the arc */
  border-radius: 50%;
  width: 200px;
  /* Wider loader */
  height: 200px;
  /* Wider loader */
  animation: spin 1s linear infinite;
  /* Slower spin for better visibility */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  /* Adjust font size as needed */
  text-align: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.task-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.task-popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1.2em;
  /* Adjust font size */
}

.task-popup-content button {
  background-color: #4CAF50;
  /* Green background */
  color: white;
  /* White text */
  padding: 10px 20px;
  /* Add padding */
  border: none;
  /* Remove border */
  border-radius: 5px;
  /* Rounded corners */
  cursor: pointer;
  /* Pointer cursor */
  font-size: 1em;
  /* Adjust font size */
  transition: background-color 0.3s ease;
  /* Smooth hover effect */
}

.task-popup-content button:hover {
  background-color: #45a049;
  /* Slightly darker green on hover */
}

.modal {
  position: fixed;
  z-index: 1000;
  /* Ensure it appears above other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.3);
  /* Subtle shadow - UI visible behind */
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
  /* Show immediately when the 'show' class is added */
}

.modal-content {
  background-color: #ffffff;
  border-radius: 15px;
  /* Rounded corners for a modern look */
  padding: 40px;
  /* Increased padding for better spacing */
  width: 60%;
  /* Adjust width for better responsiveness */
  max-width: 800px;
  /* Limit the maximum width */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  /* Stronger shadow for emphasis */
  position: relative;
  /* For draggable functionality */
  /* cursor: move; */
  /* Indicate draggable area */
}

.modal-content h2 {
  font-size: 2em;
  /* Larger title font */
  color: #4CAF50;
  /* Match button colors */
  margin-bottom: 20px;
  /* Add spacing below the title */
  text-align: center;
}

.modal-content label {
  font-size: 1.2em;
  /* Larger font for labels */
  color: #333;
  /* Darker color for better readability */
  margin-bottom: 10px;
  /* Space between label and dropdown/input */
  text-align: right;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  margin-bottom: 20px;
  /* Space between inputs */
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  background-color: #4CAF50;
  /* Match button colors */
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 20px auto;
  /* Add spacing and center the button */
  display: inline-block;
  /* Ensure the button respects centering */
}

.modal-content button:hover {
  background-color: #45a049;
  /* Slightly darker green on hover */
}

/* Add spacing between labels and dropdowns */
.modal-content .dropdown-container {
  margin-bottom: 20px;
  /* Space between dropdowns */
}

.close {
  color: #333;
  /* Darker color for better visibility */
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  /* Smooth hover effect */
}

.close:hover,
.close:focus {
  color: #ff0000;
  /* Red color on hover for emphasis */
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    /* Slightly smaller at the start */
  }

  to {
    opacity: 1;
    transform: scale(1);
    /* Full size */
  }
}

/* Draggable functionality */
.draggable {
  cursor: move;
  /* Indicate draggable area */
}

.modal-content .status-dropdown {
  margin: 20px 0;
  text-align: center;
  /* Center the dropdown in the modal */
}

.modal-content .status-dropdown select {
  width: 100%;
  /* Full width for consistency */
  padding: 10px;
  /* Add padding for better usability */
  font-size: 1em;
  /* Ensure consistent font size */
  border: 1px solid #ccc;
  /* Add a subtle border */
  border-radius: 5px;
  /* Rounded corners */
  background-color: #fff;
  /* White background */
  color: #333;
  /* Darker text color for readability */
  appearance: none;
  /* Remove default browser styles */
  cursor: pointer;
  /* Pointer cursor for dropdown */
}

.modal-content .status-dropdown select:focus {
  outline: none;
  /* Remove default focus outline */
  border-color: #4CAF50;
  /* Highlight border on focus */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  /* Add subtle shadow */
}

.kanban-board {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  max-height: 90vh;
  flex: 2;
  margin-top: 80px;
}

.kanban-columns {
  display: flex;
  gap: 2rem;
  width: 100%;
  overflow-y: auto;
  max-height: 90vh;
}

.kanban-column {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 0;
  min-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Add padding to the right so the scrollbar is away from the cards */
.kanban-cards {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-left: 24px;
  /* space for scrollbar */
  /* Smooth transition for scrollbar opacity */
  flex: 1 1 auto;
  transition: box-shadow 0.2s;
  height: 550px;
}

/* Hide scrollbar by default, show on hover/scroll (Webkit browsers) */
.kanban-cards::-webkit-scrollbar {
  width: 12px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

.kanban-cards:hover::-webkit-scrollbar,
.kanban-cards:active::-webkit-scrollbar,
.kanban-cards:focus::-webkit-scrollbar {
  opacity: 1;
}

/* Scrollbar track with transparent border to push it away from cards */
.kanban-cards::-webkit-scrollbar-track {
  background: transparent;
  border-left: 12px solid transparent;
  /* pushes scrollbar further right */
}

.kanban-cards::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: background 0.3s;
}

.kanban-cards:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
}

/* Kanban task card styling */
.kanban-column .task-card,
.kanban-column .task {
  width: 400px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: grab;
  transition: transform 0.2s ease-in-out;
  margin-bottom: 20px;
}

.kanban-column h3 {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2px;
  font-size: 52px;
  font-weight: bold;
  color: #45a049;
  font-family: Rubik;
}

.kanban-column .task-card:active,
.kanban-column .task:active {
  cursor: grabbing;
}

.kanban-column .task-card.dragging,
.kanban-column .task.dragging {
  transform: scale(1.05);
  opacity: 0.8;
}

.kanban-column .task-card h2,
.kanban-column .task h2 {
  margin: 0;
  font-size: 30px;
}

.kanban-column .task-card p,
.kanban-column .task p {
  margin: 5px 0;
  font-size: 20px;
}

.kanban-column .task-card .actions-menu,
.kanban-column .task .actions-menu {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.kanban-column .task-card .actions-menu button,
.kanban-column .task .actions-menu button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 0px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  width: auto;
  min-width: 100px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.kanban-column .task-card .actions-menu button:hover,
.kanban-column .task .actions-menu button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.split-view {
  display: flex;
  height: 100%;
  position: relative;
}

.task-details-panel {
  flex: 0 0 420px;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
  /* shadow on right */
  border-radius: 12px 0 0 12px;
  padding: 32px 24px 24px 24px;
  position: absolute;
  left: 0;
  /* move to left */
  top: 0;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 440px;
  animation: slideInLeft 0.2s;
}

@media (max-width: 1700px) {
  .task-details-panel {
    height: 100%;
  }

  .split-view {
    display: flex;
    height: 100vh;
    position: relative;
  }

  .kanban-board {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 2;
    /* REMOVE overflow-y, max-height, height */
  }

  .kanban-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
    /* REMOVE overflow-y, max-height, height */
  }

  .kanban-column {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 0;
    min-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    /* REMOVE height */
  }

  .kanban-cards {
    height: 550px;
  }
}

@keyframes slideInLeft {
  from {
    left: -500px;
    opacity: 0;
  }

  to {
    left: 0;
    opacity: 1;
  }
}

.task-details-panel .close-btn {
  position: absolute;
  right: 16px;
  /* move X to top right */
  top: 16px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.task-details-panel .close-btn:hover {
  color: #d32f2f;
}

/* Three dots menu button */
.task-details-panel .menu-btn {
  position: absolute;
  left: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.task-details-panel .menu-btn:hover {
  color: #45a049;
}

/* Dropdown menu */
.task-details-panel .dropdown-menu {
  position: absolute;
  left: 16px;
  top: 56px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.task-details-panel .dropdown-menu button {
  background: none;
  border: none;
  color: #333;
  font-family: Rubik, sans-serif;
  font-weight: bold;
  font-size: 24px;
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.task-details-panel .dropdown-menu button:hover {
  background: #f5f5f5;
  color: #45a049;
}

.task-details-content {
  margin-top: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* smaller gap */
  font-family: Rubik, sans-serif;
  font-weight: bold;
  line-height: 1.3;
}

.task-details-content h2 {
  color: #45a049;
  font-family: Rubik, sans-serif;
  font-weight: bold;
  font-size: 2.1em;
  margin-bottom: 8px;
  margin-top: 0;
  letter-spacing: 0.5px;
}

.task-details-content h3 {
  color: #45a049;
  font-family: Rubik, sans-serif;
  font-weight: bold;
  font-size: 1.7em;
  margin-bottom: 4px;
  margin-top: 0;
}

.task-details-content p {
  font-family: Rubik, sans-serif;
  font-size: 24px;
  margin: 0;
  line-height: 1.3;
}

.task-details-panel .actions {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.task-details-panel .actions button {
  background-color: #4CAF50;
  color: white;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  width: auto;
  min-width: 120px;
  text-align: center;
  transition: transform 0.2s, background-color 0.3s;
}

.task-details-panel .actions button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.responsive-zoom {
  transition: transform 0.2s;
  transform-origin: top left;
}
.sidebar--dragging {
  pointer-events: none;
  opacity: 0.5; /* Optional: visually indicate it's disabled */
}

/* Add to your CSS */
.disabled-btn {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
/*Added direction: rtl and text-align: right to the parent container
Added word-wrap: break-word and overflow-wrap: break-word to the label
Added display: block and margin-bottom: 10px to the h3 to ensure line breaks between reasons
Added max-width: 100% to prevent overflow*/
.rejection-reason {
  margin-top: 10px;
  font-weight: bold;
  font-size: 24px !important;
  max-width: 100%;
}

.rejection-reason label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  text-align: right;
  direction: rtl;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 22px !important;
}

.rejection-reason h3 {
  font-size: 26px !important;
}
:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74c3c;
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);
  --toastify-toast-width: 320px;
  --toastify-toast-background: #fff;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;
  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
}

.Toastify__toast-container {
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index) px);
  position: fixed;
  padding: 4px;
  width: var(--toastify-toast-width);
  box-sizing: border-box;
  color: #fff;
}
.Toastify__toast-container--top-left {
  top: 1em;
  left: 1em;
}
.Toastify__toast-container--top-center {
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--top-right {
  top: 1em;
  right: 1em;
}
.Toastify__toast-container--bottom-left {
  bottom: 1em;
  left: 1em;
}
.Toastify__toast-container--bottom-center {
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--bottom-right {
  bottom: 1em;
  right: 1em;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast-container {
    width: 100vw;
    padding: 0;
    left: 0;
    margin: 0;
  }
  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {
    top: 0;
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {
    bottom: 0;
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: 0;
    left: initial;
  }
}
.Toastify__toast {
  position: relative;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  max-height: var(--toastify-toast-max-height);
  overflow: hidden;
  font-family: var(--toastify-font-family);
  cursor: pointer;
  direction: ltr;
}
.Toastify__toast--rtl {
  direction: rtl;
}
.Toastify__toast-body {
  margin: auto 0;
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  padding: 6px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.Toastify__toast-body > div:last-child {
  -ms-flex: 1;
      flex: 1;
}
.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -ms-flexbox;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.7s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast {
    margin-bottom: 0;
    border-radius: 0;
  }
}
.Toastify__toast-theme--dark {
  background: var(--toastify-color-dark);
  color: var(--toastify-text-color-dark);
}
.Toastify__toast-theme--light {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--default {
  background: var(--toastify-color-light);
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--info {
  color: var(--toastify-text-color-info);
  background: var(--toastify-color-info);
}
.Toastify__toast-theme--colored.Toastify__toast--success {
  color: var(--toastify-text-color-success);
  background: var(--toastify-color-success);
}
.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: var(--toastify-text-color-warning);
  background: var(--toastify-color-warning);
}
.Toastify__toast-theme--colored.Toastify__toast--error {
  color: var(--toastify-text-color-error);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: var(--toastify-color-progress-light);
}
.Toastify__progress-bar-theme--dark {
  background: var(--toastify-color-progress-dark);
}
.Toastify__progress-bar--info {
  background: var(--toastify-color-progress-info);
}
.Toastify__progress-bar--success {
  background: var(--toastify-color-progress-success);
}
.Toastify__progress-bar--warning {
  background: var(--toastify-color-progress-warning);
}
.Toastify__progress-bar--error {
  background: var(--toastify-color-progress-error);
}
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}
.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}
.Toastify__close-button:hover, .Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: var(--toastify-z-index);
  opacity: 0.7;
  transform-origin: left;
}
.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}
.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}
.Toastify__progress-bar--rtl {
  right: 0;
  left: initial;
  transform-origin: right;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, 0, 0);
  }
}
@keyframes Toastify__bounceInLeft {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, 0, 0);
  }
}
@keyframes Toastify__bounceInUp {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, -10px, 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}
@keyframes Toastify__bounceInDown {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, 10px, 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}
.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}
.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}
.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}
.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}
.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}
.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}
.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}
.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}
@keyframes Toastify__flipOut {
  from {
    transform: perspective(400px);
  }
  30% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, 0, 0);
  }
}
@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, 0, 0);
  }
}
@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}
@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}
.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}
.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}
.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}
.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
}
.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
}
.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
}
.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ========================================
   FAMILIES PAGE - MODERN VIBRANT DESIGN
   ======================================== */

/* Global smooth scrolling and animations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Main content styling with stunning gradient glass effect */
.main-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.15) 0%,
    rgba(59, 130, 246, 0.15) 25%,
    rgba(16, 185, 129, 0.15) 50%,
    rgba(251, 146, 60, 0.15) 75%,
    rgba(236, 72, 153, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-size: 400% 400%;
}

.families-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Center the content vertically */
  flex-grow: 1;
  /* Allow it to take up available space */
  margin-top: 30px;
  /* Add some spacing below the fixed header */
}

/* Page content styling */
.page-content {
  margin-top: 160px;
  padding: 20px;
}

/* Families grid container - simple wrapper */
.families-grid-container {
  position: relative;
  flex: unset !important;
  margin-top: 300px;
  max-height: 70vh;
  padding: 0;
  box-sizing: border-box;
  margin-bottom: 400px;
  overflow: hidden;
}

@media (max-width: 2000px) {
  .families-grid-container {
    margin-top: 400px;
    /* Increase margin-top for smaller screens */
    margin-bottom: 200px;
    /* Increase margin-bottom for smaller screens */
    margin-right: 250px;
    /* Adjusted for wider sidebar */
  }
}

/* Table styling - THE ACTUAL GRID WITH GLASSMORPHISM BUBBLE EFFECT */
.families-data-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.65) 0%,
    rgba(245, 245, 245, 0.55) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.3),
    0 10px 30px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
  animation: bubbleAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubbleAppear {
  0% {
    opacity: 0.5;
    transform: scale(0.88);
    filter: blur(3px);
    border-radius: 50%;
    border: 6px solid rgba(99, 102, 241, 0.9);
    box-shadow: 
      0 0 0 4px rgba(168, 85, 247, 0.8),
      0 0 0 8px rgba(236, 72, 153, 0.7),
      0 0 0 12px rgba(251, 146, 60, 0.6),
      0 0 0 16px rgba(16, 185, 129, 0.5),
      0 0 60px rgba(99, 102, 241, 0.6),
      0 0 80px rgba(168, 85, 247, 0.5),
      0 20px 60px rgba(59, 130, 246, 0.3),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
      0 20px 60px rgba(59, 130, 246, 0.3),
      0 10px 30px rgba(168, 85, 247, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

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

.families-data-grid th {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(139, 92, 246, 1) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  font-weight: 700;
  color: white;
  position: sticky !important;
  top: 0;
  z-index: 2;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.families-data-grid tr:nth-child(even) {
  background: linear-gradient(90deg, 
    rgba(240, 242, 245, 0.8) 0%,
    rgba(230, 232, 236, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.families-data-grid tr:hover {
  background: linear-gradient(90deg, 
    rgba(165, 180, 252, 0.5) 0%,
    rgba(192, 132, 252, 0.5) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Actions container for buttons */
.family-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

/* Button styles with vibrant gradients */
.family-actions button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.family-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.family-actions button:hover::before {
  left: 100%;
}

.family-actions button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Specific button styles with vibrant gradients */
.family-actions .info-button {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.family-actions .info-button:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 1) 0%,
    rgba(37, 99, 235, 1) 100%);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.family-actions .edit-button {
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.95) 0%,
    rgba(147, 51, 234, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.family-actions .edit-button:hover {
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 1) 0%,
    rgba(147, 51, 234, 1) 100%);
  box-shadow: 
    0 10px 30px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.family-actions .delete-button {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.family-actions .delete-button:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Loader styling with vibrant modern design */
.loader {
  border: 15px solid rgba(249, 250, 251, 0.3);
  border-top: 15px solid rgba(99, 102, 241, 0.9);
  border-right: 15px solid rgba(168, 85, 247, 0.7);
  border-bottom: 15px solid rgba(236, 72, 153, 0.5);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  animation: spinGradient 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 
    0 0 40px rgba(99, 102, 241, 0.3),
    0 0 80px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loader::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spinGradient {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Modal styling - instant appearance with subtle dark overlay */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.3);
  /* Subtle dark transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 50px;
  width: 70%;
  max-width: 1920px;
  box-shadow: 
    0 25px 80px rgba(99, 102, 241, 0.3),
    0 15px 40px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1em;
  margin-right: 30px;
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(168, 85, 247, 1) 50%,
    rgba(236, 72, 153, 1) 100%);
}

.modal-content h2 {
  font-size: 2.5em;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(168, 85, 247, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.modal-content button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-content button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.close {
  color: #64748b;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.close:hover {
  color: white;
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 
    0 8px 25px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Modal form grid */
.form-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.form-column label {
  font-weight: bold;
  width: 100%;
  font-size: 1.2em;
  white-space: nowrap;
  /* Prevent text from wrapping to a new line */
  overflow: hidden;
  /* Hide any overflowing text */
  text-overflow: ellipsis;
  /* Add ellipsis (...) if the text overflows */
}


.form-column select,
.form-column textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 10px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-column select:focus,
.form-column textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 
    0 4px 20px rgba(168, 85, 247, 0.2),
    0 0 0 4px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.form-column select {
  font-size: 1em;
  font-weight: 500;
}

.form-column textarea {
  font-size: 1.5em;
}

.form-column input {
  width: 90%;
  padding: 12px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 10px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-column input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.2),
    0 0 0 4px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.scrollable-textarea {
  height: 30px;
  resize: none;
  /* Disable resizing */
  overflow-y: scroll;
}

textarea.scrollable-textarea {
  resize: none;
  /* Disable resizing */
  overflow-y: auto;
  /* Allow vertical scrolling */
}

input.error,
select.error,
textarea.error {
  border-color: red;
}

.families-error-message {
  color: red;
  font-size: 14px;
  display: block;
}

.families-mandatory-span {
  color: red;
  font-size: 14px;
  display: block;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  /* Ensure buttons span the full width */
  font-size: 2em;
}

.family-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Two columns */
  gap: 10px;
  /* Space between items */
  margin-top: 20px;
}

.family-details-grid p {
  margin: 0;
  /* Remove default margin */
  font-size: 1.5em;
  line-height: 1.5;
}

/* Modal overlay */
.delete-modal-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal content */
.delete-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 1000px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
}

.delete-modal h2 {
  font-size: 3em;
  color: #333;
  margin-bottom: 20px;
}

.delete-modal p {
  font-size: 2em;
  margin-bottom: 20px;
}

/* Modal actions */
.modal-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.yes-button {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  font-size: 2em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.yes-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.yes-button:hover::before {
  left: 100%;
}

.no-button {
  background: linear-gradient(135deg, 
    rgba(107, 114, 128, 0.95) 0%,
    rgba(75, 85, 99, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  font-size: 2em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(107, 114, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.no-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.no-button:hover::before {
  left: 100%;
}

.yes-button:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.no-button:hover {
  background: linear-gradient(135deg, 
    rgba(107, 114, 128, 1) 0%,
    rgba(75, 85, 99, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(107, 114, 128, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 16px;
  border: 2px solid rgba(204, 204, 204, 0.3);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.5);
}

.pagination button.active {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%,
    rgba(139, 92, 246, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 6px 25px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pagination button:disabled {
  background: rgba(240, 240, 240, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #cbd5e1;
  cursor: not-allowed;
  border: 2px solid rgba(204, 204, 204, 0.2);
  box-shadow: none;
}

.pagination-arrow {
  font-size: 16px;
  font-weight: bold;
}


.back-to-families {
  display: flex;
  justify-content: flex-start;
  /* Align to the right */
  margin-top: 10px;
  /* Add some spacing above */
  margin-bottom: 20px;
  /* Slightly move it to the left from the edge */
}

.families-search-bar {
  padding: 0 20px;
  width: 200px;
  height: 60px;
  border: 3px solid rgba(59, 130, 246, 0.75);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 242, 245, 0.8) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 16px;
  font-size: 24px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.families-search-bar:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 
    0 6px 30px rgba(59, 130, 246, 0.3),
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 0 20px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px) scale(1.02);
}

.families-search-bar::placeholder {
  color: rgba(59, 130, 246, 0.5);
  font-weight: 500;
}

.families-added-filter {
  padding: 12px 16px;
  width: 300px;
  border: 3px solid rgba(168, 85, 247, 0.75);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 242, 245, 0.8) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 
    0 4px 20px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.families-added-filter:focus-within {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 
    0 6px 30px rgba(168, 85, 247, 0.3),
    0 0 0 4px rgba(168, 85, 247, 0.2),
    0 0 20px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px) scale(1.02);
}

.families-added-filter label {
  font-size: 18px;
  font-weight: 700;
  color: #6b21a8;
  margin-right: 12px;
  margin-left: 0px;
  letter-spacing: 0.3px;
}

.families-added-filter select {
  padding: 10px 12px;
  width: 120px;
  border: 2px solid rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 242, 245, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.families-added-filter select:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.families-added-filter select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 
    0 4px 15px rgba(168, 85, 247, 0.25),
    0 0 0 3px rgba(168, 85, 247, 0.1);
}


.back-button {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* Blue background */
  color: white;
  /* White text */
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 600;
  /* Increase font size */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  direction: rtl;
  z-index: 2;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  /* Ensure proper alignment in RTL */
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.back-button:hover::before {
  left: 100%;
}

.back-button:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 1) 0%,
    rgba(37, 99, 235, 1) 100%);
  /* Darker blue on hover */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.init-family-date-input {
  padding: 12px;
  margin: 0;
  border: 3px solid rgba(99, 102, 241, 0.8);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%,
    rgba(240, 242, 245, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 200px;
  height: 50px;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 10px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  /* Adjust width as needed */
}

.init-family-date-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.9);
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.3),
    0 0 0 4px rgba(99, 102, 241, 0.2),
    0 0 20px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px) scale(1.02);
}

.create-task.init-family-data-button button:first-child {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.95) 0%,
    rgba(219, 39, 119, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(236, 72, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.create-task.init-family-data-button button:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.create-task.init-family-data-button button:first-child:hover::before {
  left: 100%;
}

.create-task.init-family-data-button button:first-child:hover {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 1) 0%,
    rgba(219, 39, 119, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(236, 72, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Add New Family button (second button) */
.create-task.init-family-data-button button:nth-child(2) {
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.95) 0%,
    rgba(14, 165, 233, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.create-task.init-family-data-button button:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.create-task.init-family-data-button button:nth-child(2):hover::before {
  left: 100%;
}

.create-task.init-family-data-button button:nth-child(2):hover {
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 1) 0%,
    rgba(14, 165, 233, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Refresh Families List button */
.refresh button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.refresh button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.refresh button:hover::before {
  left: 100%;
}

.refresh button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.families-row-added {
  background-color: #e6ffe6 !important;
}

/* Add to your CSS */
.button-disabled {
  background-color:
    /* light green */
    #eb8989 !important;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  border: 1px solid #aaa;
  transition: background-color 0.3s ease;
}

.td-scrollable {
  height: 4.8em;           /* About 4 lines, adjust as needed */
  overflow-y: auto;
  word-break: break-word;
  white-space: pre-line;
  line-height: 1.2em;
  padding-right: 4px;
}

.td-x-scrollable {
  max-width: 250px;      /* Adjust as needed */
  min-height: 2.4em;     /* About 2 lines, adjust as needed */
  height: 4.4em;         /* Fix the height so the scrollbar is always at the bottom */
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: break-all;
  display: flex;
  align-items: flex-start;  /* Align content to the bottom */
}


.error {
    color: red;
    margin-top: 10px;
    font-size: 1em !important;
}

.toggle-healthy-btn {
  background: linear-gradient(135deg, 
    rgba(251, 146, 60, 0.95) 0%,
    rgba(249, 115, 22, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(251, 146, 60, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.toggle-healthy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.toggle-healthy-btn:hover::before {
  left: 100%;
}

.toggle-healthy-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.toggle-healthy-btn.active {
  background: linear-gradient(135deg, 
    rgba(234, 88, 12, 0.95) 0%,
    rgba(194, 65, 12, 0.95) 100%) !important;
  box-shadow: 
    0 8px 30px rgba(234, 88, 12, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.toggle-mature-btn {
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.95) 0%,
    rgba(147, 51, 234, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.toggle-mature-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.toggle-mature-btn:hover::before {
  left: 100%;
}

.toggle-mature-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.refresh-volunteers-tutors-btn {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%) !important;
  color: white;
  padding: 12px 24px;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.refresh-volunteers-tutors-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.refresh-volunteers-tutors-btn:hover::before {
  left: 100%;
}

.refresh-volunteers-tutors-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.toggle-mature-btn.active {
  background: linear-gradient(135deg, 
    rgba(126, 34, 206, 0.95) 0%,
    rgba(107, 33, 168, 0.95) 100%) !important;
  box-shadow: 
    0 8px 30px rgba(126, 34, 206, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* In your CSS */
.families-status-filter-container {
  position: relative;
  display: inline-block;
}

.families-status-filter-label {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.95) 0%,
    rgba(22, 163, 74, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white !important;
  padding: 12px 24px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  margin-left: 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 6px 20px rgba(34, 197, 94, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  appearance: none;
  position: relative;
  overflow: hidden;
}

.families-status-filter-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.families-status-filter-label:hover::before {
  left: 100%;
}

.families-status-filter-label:hover {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 1) 0%,
    rgba(22, 163, 74, 1) 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 8px 30px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ===== InitialFamilyData Page Filter Layout ===== */
.filter-create-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px 20px 20px 80px;
  margin: 20px 180px 20px 40px;
  /* RTL: right margin for sidebar (280px + 40px), left margin for spacing */
  max-width: calc(100% - 400px);
  /* Account for wider sidebar and spacing */
}

.filter-create-container label {
  font-size: 18px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
}

/* Glass morphed refresh icon button */
.refresh-icon-button {
  background: rgba(168, 85, 247, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  box-shadow: 
    0 8px 32px 0 rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transform: scale(1.5);
}

.refresh-icon-button:hover:not(:disabled) {
  background: rgba(168, 85, 247, 1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px 0 rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}



.refresh-icon-button:disabled {
  opacity: 0.6;
}

.refresh-icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.refresh-icon-button svg.spinning {
  animation: spin 0.6s linear infinite reverse !important;
  opacity: 1 !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Refresh button styling */
.refresh-button {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.95) 0%,
    rgba(22, 163, 74, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 14px 28px;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.refresh-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.refresh-button:hover::before {
  left: 100%;
}

.refresh-button:hover {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 1) 0%,
    rgba(22, 163, 74, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 35px rgba(34, 197, 94, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Date range group styling */
.filter-create-container .init-family-date-input {
  flex-shrink: 0;
}

/* Date range visual grouping with connector */
.filter-create-container label[for="date-from"],
.filter-create-container label[for="date-to"] {
  font-size: 19px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.9) 0%,
    rgba(139, 92, 246, 0.9) 100%);
  padding: 10px 20px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.filter-create-container label[for="date-from"]:hover,
.filter-create-container label[for="date-to"]:hover {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(139, 92, 246, 1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Special styling for "Created At From" label */
.filter-create-container label[for="date-from"] {
  position: relative;
}

/* Arrow/dash connector between dates */
.filter-create-container label[for="date-to"] {
  position: relative;
  padding-left: 36px; /* reserve space for the arrow */
  padding-right: 24px;
}

.filter-create-container label[for="date-to"]::before {
  content: '←';
  position: absolute;
  left: 10px; /* distance from the left edge */
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: bold;
  color: white;
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ========================================
   AGE RANGE FILTER - GLASSMORPHISM DESIGN
   ======================================== */

/* Age Range Filter Wrapper */
.age-range-filter-wrapper {
  position: relative;
  display: inline-block;
}

/* Toggle Button for Age Filter */
.age-filter-toggle-btn {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%,
    rgba(168, 85, 247, 0.95) 100%);
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.age-filter-toggle-btn:hover {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(168, 85, 247, 1) 100%);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.age-filter-toggle-btn:active {
  transform: translateY(0);
}

.age-filter-toggle-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.age-filter-toggle-btn .arrow.open {
  transform: rotate(180deg);
}

/* Max Age Filter */
.max-age-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg,
    rgba(20, 184, 166, 0.95) 0%,
    rgba(13, 148, 136, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  min-width: 220px;
  box-shadow: 
    0 6px 20px rgba(20, 184, 166, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.max-age-filter:hover {
  background: linear-gradient(135deg,
    rgba(20, 184, 166, 1) 0%,
    rgba(13, 148, 136, 1) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(20, 184, 166, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.max-age-filter label {
  font-size: 24px;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
}

.age-slider-input {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
}

/* Chrome/Safari slider thumb */
.age-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(200, 240, 240, 1) 100%);
  border: 2px solid rgba(20, 184, 166, 0.8);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.age-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.age-slider-input::-webkit-slider-thumb:active {
  cursor: grabbing;
}

/* Firefox slider thumb */
.age-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(200, 240, 240, 1) 100%);
  border: 2px solid rgba(20, 184, 166, 0.8);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.age-slider-input::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.age-slider-input::-moz-range-thumb:active {
  cursor: grabbing;
}

/* Firefox track styling */
.age-slider-input::-moz-range-track {
  background: transparent;
  border: none;
}

.age-slider-input::-moz-range-progress {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}
/* Feedbacks.css */
.feedbacks-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.tutor-feedbacks-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    width: 90%;
    background: transparent;
}

.volunteer-feedbacks-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    width: 90%;
    background: transparent;
}

.feedbacks-page {
    padding: 20px;
    text-align: center;
}

.feedback-card {
    width: 450px;
    height: 400px;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.95) 0%,
        rgba(56, 142, 60, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(76, 175, 80, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feedback-card:hover::before {
    opacity: 1;
}

.feedback-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(76, 175, 80, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.feedback-card:active {
    transform: translateY(-10px) scale(1.02);
}

.feedbacks-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 1.5rem;
}

.feedback-card h2 {
    font-size: 48px;
    text-align: center;
    font-weight: 700;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    z-index: 1;
}

/* Parent container for reports */
.feedbacks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 300px;
    /* Space between reports */
    padding-right: 50px;
    /* Avoid sidebar overlap */
    justify-content: space-between;

    /* Align reports to the left */
    /* Enable vertical scrolling if needed */
    width: 1500px;
}

/* Scrollbar styles for feedbacks-container */
.feedbacks-container::-webkit-scrollbar {
    width: 0px;
    /* Narrower scrollbar */
}

.feedbacks-container::-webkit-scrollbar-track {
    background: transparent;
}

.feedbacks-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.feedbacks-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Individual feedback card */
.feedbacks-container .feedback {
    width: 300px;
    /* Fixed width for consistency */
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Pointer cursor for interactivity */
    transition: transform 0.2s ease-in-out;
}

.feedbacks-container .feedback:active {
    cursor: grabbing;
}

.feedbacks-container .feedback.dragging {
    transform: scale(1.05);
    /* Slightly enlarge when dragging */
    opacity: 0.8;
}

/* feedback title */
.feedbacks-container .feedback h2 {
    margin: 0;
}

/* feedback description */
.feedbacks-container .feedback p {
    margin: 5px 0;
}

/* Actions container for buttons */
.feedbacks-container .feedback .actions {
    margin-top: 10px;
    display: flex;
    /* Use flexbox for button layout */
    gap: 15px;
    /* Space between buttons */
    flex-wrap: wrap;
    /* Allow buttons to wrap if needed */
    justify-content: flex-start;
    /* Align buttons to the left */
}

/* Buttons inside actions */
.feedbacks-container .feedback .actions button {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    /* White text */
    padding: 10px 15px;
    /* Increase padding for larger buttons */
    border: none;
    /* Remove border */
    border-radius: 8px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    font-size: 1em;
    /* Increase font size */
    width: auto;
    /* Allow the button to adjust its width based on content */
    min-width: 120px;
    /* Set a minimum width for consistency */
    text-align: center;
    /* Center text */
    transition: transform 0.2s ease, background-color 0.3s ease;
    /* Smooth hover effect */
}

/* Hover effect for buttons */
.feedbacks-container .feedback .actions button:hover {
    background-color: #45a049;
    /* Slightly darker green on hover */
    transform: scale(1.05);
    /* Slightly enlarge on hover */
}

.no-permission {
    text-align: center;
    margin-top: 500px;
}

.no-permission h2 {
    font-size: 72px;
    color: #ff0000;
}

.feedbacks-page-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-grow: 1;
    margin-top: 150px;
    width: 100%;
    padding: 50px;
    flex-wrap: wrap;
}

.tutor-feedbacks-main-content .feedbacks-page-content {
    top: 0;
}

/* Scoped styles for the grid container in ActiveTutorsReport */
.feedbacks-page-content .feedbacks-grid-container,
.feedbacks-page-content .feedback-grid-container {
    width: 90%;
    height: calc(100vh - 345px);
    max-height: 95vh;
    min-height: 300px;
    direction: rtl;
    margin-bottom: -72px;
}

.feedbacks-page-content .feedbacks-data-grid th {
    border: 1px solid #ddd;
    padding: 12px;
    /* Increase padding */
    text-align: right;
    /* Align text to the right */
    font-size: 30px;
    /* Increase font size */
    white-space: nowrap;
    /* Prevent text from wrapping */
    /* Hide overflow if the text is too long */
    text-overflow: ellipsis;
    /* Add ellipsis for overflowing text */
    word-wrap: break-word;
    /* Allow text to wrap within cells */
    white-space: normal;
    /* Prevent text from overflowing */

}

.feedbacks-page-content .feedbacks-data-grid th {
    background-color: #4CAF50;
    /* Green header background */
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.feedbacks-page-content .feedbacks-data-grid td,
.feedbacks-data-grid td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
    font-size: 24px;
    color: #333;
    vertical-align: top;
    white-space: normal;
    text-overflow: ellipsis;
    scrollbar-width: thin;
    scrollbar-color: #ccc #fff;
}

.td-scroll {
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-line;
    /* Optional: for line breaks */
    scrollbar-width: thin;
    scrollbar-color: #ccc #fff;
}
.td-scroll::-webkit-scrollbar {
    width: 6px;
}
.td-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.feedbacks-page-content .feedbacks-data-grid td::-webkit-scrollbar {
    width: 6px;
}

.feedbacks-page-content .feedbacks-data-grid td::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.feedbacks-page-content .no-data {
    width: 100%;
    /* Make it span the full width */
    text-align: center;
    /* Center the text */
    font-size: 48px;
    /* Adjust font size for better visibility */
    font-weight: bold;
    /* Make the text bold */
    color: #555;
    /* Use a neutral color */
    /* no wrap */
    white-space: nowrap;
}

/* Ensure the checkbox is clickable */
.feedbacks-page-content .feedbacks-data-grid input[type="checkbox"] {
    width: 20px;
    /* Adjust checkbox size */
    height: 20px;
    /* Adjust checkbox size */
    cursor: pointer;
    /* Pointer cursor for checkboxes */
    margin-right: 10px;
    /* Space between checkbox and label */
    position: relative;
    /* Ensure the checkbox is positioned correctly */
    z-index: 1;
    /* Bring the checkbox to the front */
}

.feedbacks-page-content .feedbacks-data-grid label {
    cursor: pointer;
}

.feedbacks-actions {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feedbacks-actions button {
    margin-right: 2px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination {
    margin-top: 20px;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

/* Style for the date inputs with glassmorphism */
.feedbacks-date-input {
    padding: 10px 15px;
    font-size: 20px;
    font-weight: 500;
    margin: 0 10px;
    border: 3px solid rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, 
        rgba(240, 242, 245, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    color: #333;
}

.feedbacks-date-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Style for the filter button with glassmorphism */
.feedbacks-filter-button {
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.95) 0%,
        rgba(0, 86, 179, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feedbacks-filter-button:hover {
    background: linear-gradient(135deg, 
        rgba(0, 86, 179, 1) 0%,
        rgba(0, 62, 135, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 123, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Style for the refresh button with glassmorphism */
.feedbacks-refresh-button {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.95) 0%,
        rgba(11, 125, 218, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    margin-left: 30px;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feedbacks-refresh-button:hover {
    background: linear-gradient(135deg, 
        rgba(11, 125, 218, 1) 0%,
        rgba(8, 95, 165, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(33, 150, 243, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


/* Grid section with glassmorphism */
.feedbacks-grid-container,
.feedback-grid-container {
    overflow-y: auto;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 8px 25px rgba(99, 102, 241, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    padding: 20px;
}



/* Feedbacks data grid */
.feedbacks-data-grid {
    transform: scale(0.9);
    /* Allow horizontal scrolling if needed */
    width: 100%;
    /* Ensure the table takes up the full width of its container */
    border-collapse: collapse;
    font-size: 30px;
    /* Increase font size */
    font-family: Arial, sans-serif;
    /* Use a sans-serif font for better readability */
    background-color: #fff;
    /* White background for the table */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow for depth */
    border-radius: 8px;
    /* Rounded corners for the table */
    /* Ensure rounded corners are visible */
    /* Limit height to avoid overflow */
    direction: rtl;
    margin-right: 0;
    margin-top: -30px;
    /* Align the grid to the right for right-to-left languages */
}

/* Table headers */
.feedbacks-data-grid th {
    background-color: #4caf50;
    /* Green header background */
    color: white;
    /* White text */
    font-weight: bold;
    /* Bold text */
    font-size: 30px;
    /* Increase font size */
    text-align: right;
    /* Align text to the right */
    padding: 12px;
    /* Add padding */
    border: 1px solid #ddd;
    /* Border for clarity */
}

/* Table cells scrollbar styles */
.feedbacks-data-grid td::-webkit-scrollbar {
    width: 6px;
}

.feedbacks-data-grid td::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* No data message */
.feedbacks-grid-container .no-data {
    width: 100%;
    /* Make it span the full width */
    text-align: center;
    /* Center the text */
    font-size: 48px;
    /* Adjust font size for better visibility */
    font-weight: bold;
    /* Make the text bold */
    color: #555;
    /* Use a neutral color */
}

/* Checkbox styles */
.feedbacks-data-grid input[type="checkbox"] {
    width: 20px;
    /* Adjust checkbox size */
    height: 20px;
    /* Adjust checkbox size */
    cursor: pointer;
    /* Pointer cursor for checkboxes */
    margin-right: 10px;
    /* Space between checkbox and label */
    position: relative;
    /* Ensure the checkbox is positioned correctly */
    z-index: 1;
    /* Bring the checkbox to the front */
}

.large-slider {
    width: 400px;
    /* Increase the width */
    height: 10px;
    /* Increase the height */
    appearance: revert;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.large-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    /* Increase thumb size */
    height: 20px;
    background: #4caf50;
    /* Green thumb */
    border-radius: 50%;
    cursor: pointer;
}

.large-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.back-to-feedbacks {
    display: flex;
    justify-content: flex-start;
    margin-right: 150px;
    margin-bottom: 20px;
    margin-top: 20px;
}

@media (max-width: 1800px) {
    .feedbacks-filter-create-container {
        right: 350px;
        top: 250px;
    }

    .tutor-feedbacks-main-content .back-to-feedbacks,
    .volunteer-feedbacks-main-content .back-to-feedbacks {
        display: flex;
        justify-content: flex-start;
        margin-top: 10px;
        margin-right: 0;
        width: 70%;
    }

    .feedbacks-page-content .feedbacks-grid-container {
        width: calc(100% - 1000px);
        margin-left: 400px;
        transform-origin: top right;
        margin-right: 0;
        bottom: 200px;
    }

    .feedbacks-container {
        gap: 90px;
        margin-right: 200px;
    }
}


.feedbacks-back-button {
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.95) 0%,
        rgba(0, 86, 179, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    z-index: 2;
    box-shadow: 
        0 4px 15px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-right: 0;
    margin-top: 0;
    height: 45px;
}

.feedbacks-back-button:hover {
    background: linear-gradient(135deg, 
        rgba(0, 86, 179, 1) 0%,
        rgba(0, 62, 135, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 123, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feedbacks-wide-column {
    width: 300px;
    /* Adjust width as needed */
}


.feedbacks-filter-create-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    position: fixed;
    top: 220px;
    right: 350px;
    /* Move a bit to the right from user POV (less to the left in RTL) */
    font-size: 1em;
    padding: 20px 30px;
    transform: scale(0.9);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(99, 102, 241, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

/* Style the buttons and dropdowns */
.feedbacks-actions .create-feedback button {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    /* Ensure font size is 2em */
    margin-right: 20px;
    /* Add space between the "Create Task" button and the others */
}

.feedbacks-actions .create-feedback button:hover {
    background-color: #45a049;
    /* Slightly darker green on hover */
}


.feedbacks-edit-button,
.feedbacks-delete-button,
.feedbacks-info-button {
    padding: 8px 16px;
    margin-right: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feedbacks-edit-button {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.95) 0%,
        rgba(11, 125, 218, 0.95) 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedbacks-edit-button:hover {
    background: linear-gradient(135deg, 
        rgba(11, 125, 218, 1) 0%,
        rgba(8, 95, 165, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(33, 150, 243, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feedbacks-delete-button {
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.95) 0%,
        rgba(218, 25, 11, 0.95) 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(244, 67, 54, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedbacks-delete-button:hover {
    background: linear-gradient(135deg, 
        rgba(218, 25, 11, 1) 0%,
        rgba(183, 28, 28, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(244, 67, 54, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feedbacks-info-button {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.95) 0%,
        rgba(69, 160, 73, 0.95) 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedbacks-info-button:hover {
    background: linear-gradient(135deg, 
        rgba(69, 160, 73, 1) 0%,
        rgba(56, 142, 60, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feedbacks-modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 600px;
    margin: auto;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
}

/* Modal overlay with subtle transparent background */
.feedbacks-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedbacks-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 20px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 900px;
    max-width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(99, 102, 241, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    height: 100%;
    display: flex;
    max-height: fit-content;
    flex-direction: column;
}

.feedbacks-modal-content h2 {
    margin: 0;
    color: #4caf50;
    font-size: 52px;
    text-align: center;
    margin-bottom: 20px;
}

.feedbacks-modal-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.feedbacks-close {
    color: #333;
    /* Darker color for better visibility */
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    /* Smooth hover effect */
}

.feedbacks-textarea {
    width: 90%;
    height: 60px;
    padding: 10px;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
}

.feedbacks-textarea-shrink {
    height: 20px !important;
}

.feedbacks-modal-content-shrink {
    height: 70% !important;
}

.feedbacks-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedbacks-form-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 0;
    margin-top: 50px;
    position: relative;
    bottom: 20px;
    left: 0;
    width: 100%;

}

.feedbacks-select__control,
.feedbacks-select__menu,
.feedbacks-select__option,
.feedbacks-select__single-value,
.feedbacks-select__input input {
    font-size: 22px !important;
}

.feedbacks-form-actions button {
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.feedbacks-form-actions button:first-child {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.95) 0%,
        rgba(56, 142, 60, 0.95) 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedbacks-form-actions button:first-child:hover {
    background: linear-gradient(135deg, 
        rgba(56, 142, 60, 1) 0%,
        rgba(46, 125, 50, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feedbacks-form-actions button:last-child {
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.95) 0%,
        rgba(218, 25, 11, 0.95) 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(244, 67, 54, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feedbacks-form-actions button:last-child:hover {
    background: linear-gradient(135deg, 
        rgba(218, 25, 11, 1) 0%,
        rgba(183, 28, 28, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(244, 67, 54, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Form Row for Two-Column Layout */
.feedbacks-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 10px;
}

.feedbacks-form-row label,
.feedbacks-form-row input,
.feedbacks-form-row select {
    font-size: 24px;
    color: #333;
}

.feedbacks-filter-pair {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.feedbacks-filter-pairs {
    flex-direction: column;
}

.feedbacks-filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    margin-right: 10px;
    align-items: center;
}

.feedbacks-filter-row label {
    font-size: 24px;
    font-weight: 600;
    color: rgba(99, 102, 241, 0.9);
    text-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
    margin-left: 10px;
    white-space: nowrap;
}

.feedbacks-filter-row select {
    padding: 8px 15px;
    font-size: 20px;
    font-weight: 500;
    border: 3px solid rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, 
        rgba(240, 242, 245, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    color: #333;
    cursor: pointer;
}

.feedbacks-filter-row select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.feedbacks-type-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    margin-left: 20px;
    align-items: center;
}

.feedbacks-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    gap: 10px;
    /* Space between items */
    margin-top: 20px;
}

.feedbacks-info-grid p {
    margin: 0;
    /* Remove default margin */
    font-size: 1.5em;
    line-height: 1.5;
}

.feedbacks-info-grid h3,
.feedbacks-form-col-initial-family h3 {
    margin: 0;
    /* Remove default margin */
    font-size: 2em;
    line-height: 1.5;
    color: #4caf50;
}

.feedbacks-modal-content-tall {
    height: 105%;
    /* or whatever height you need */
    transform: scale(0.9);
}

.feedbacks-modal-content-tall.feedbacks-modal-content-scale {
    /* Only apply the scale from .feedbacks-modal-content-scale */
    transform: scale(0.85) !important;
}

.feedbacks-modal-content-tall .feedbacks-form-actions {
    padding-top: 0;
    margin-top: 50px;
}

.additional-volunteers-dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.additional-volunteers-dropdown-button {
    width: 90%;
    text-align: right;
    font-size: 24px;
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.additional-volunteers-dropdown {
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.additional-volunteers-dropdown-item {
    padding: 4px 8px;
    cursor: pointer;
}

.additional-volunteers-dropdown-item input[type="checkbox"] {
    width: 28px;
    height: 28px;
    accent-color: #4caf50;
    /* Optional: makes the checkbox green in supported browsers */
    margin-right: 10px;
    vertical-align: middle;
}

.feedbacks-form-grid-2col {
    display: grid;
    grid-template-columns: 400;
    gap: 20px;
}

.feedbacks-form-grid-3col {
    display: grid;
    grid-template-columns: 900px;
    gap: 20px;
    direction: rtl;
    /* 💥 ADD THIS */
}

.feedbacks-form-col-initial-family {
    grid-column: 1;
    /* 💥 WAS 3, set to 1 because direction is now LTR */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feedbacks-form-col-main {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feedbacks-modal-content-wide {
    min-width: 900px;
}

.validation-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff;
    border: 2px solid #e53935;
    border-radius: 8px;
    z-index: 9999;
    min-width: 350px;
    max-width: 90vw;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    padding: 0 0 20px 0;
    text-align: center;
}

.validation-popup-header.error-ribbon {
    background: #e53935;
    color: #fff;
    font-weight: bold;
    padding: 12px 0;
    border-radius: 8px 8px 0 0;
    font-size: 48px;
}

.validation-popup ul {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 0 24px;
    color: #e53935;
    font-size: 32px;
}

.validation-popup-close {
    margin-top: 18px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 24px;
}
/* ===== MODERN BENTO BOX DASHBOARD DESIGN ===== */

/* 1. The Container - Locked to Screen Height */
.reports-page {
    height: calc(100vh - 80px);
    width: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.reports-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 2. The Bento Grid */
.reports-container {
    display: grid;
    width: 100%;
    max-width: 1800px;
    height: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* 3. The Card Style */
.reports-container .report,
.report-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 30px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism shine effect */
.reports-container .report::before,
.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover Effect */
.reports-container .report:hover,
.report-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(143, 117, 239, 0.5);
    background: rgba(255, 255, 255, 1);
}

.reports-container .report:hover::before,
.report-card:hover::before {
    opacity: 1;
}

/* Typography */
.reports-container .report h2,
.report-card h2 {
    font-family: 'Rubik', 'Heebo', Arial, sans-serif;
    font-size: 1.5rem;
    color: #2d3748;
    margin: 15px 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reports-container .report p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Icons (Add icon support) */
.reports-container .report-icon,
.report-card .report-icon {
    font-size: 3rem;
    color: #8f75ef;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.reports-container .report:hover .report-icon,
.report-card:hover .report-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 4. Special Sizes (The "Bento" Magic) */

/* Make important reports wider */
.reports-container .report.wide,
.report-card.wide {
    grid-column: span 2;
    background: linear-gradient(135deg, 
        rgba(143, 117, 239, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Change text color for wide/colored cards */
.reports-container .report.wide h2,
.report-card.wide h2,
.reports-container .report.wide p,
.report-card.wide p,
.reports-container .report.wide .report-icon,
.report-card.wide .report-icon {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.reports-container .report.wide:hover,
.report-card.wide:hover {
    background: linear-gradient(135deg, 
        rgba(143, 117, 239, 1) 0%, 
        rgba(118, 75, 162, 1) 100%);
    box-shadow: 
        0 20px 60px rgba(118, 75, 162, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Tall cards option */
.reports-container .report.tall,
.report-card.tall {
    grid-row: span 2;
}

/* Remove button container if present */
.reports-container .report .actions {
    display: none;
}

/* RESPONSIVE DESIGN */

/* Large screens */
@media (max-width: 2400px) {
    .reports-container {
        max-width: 1600px;
        gap: 18px;
    }
    
    .reports-container .report h2,
    .report-card h2 {
        font-size: 1.4rem;
    }
}

/* Medium screens - 3 columns */
@media (max-width: 1800px) {
    .reports-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        max-width: 1400px;
        gap: 16px;
    }
    
    .reports-page {
        padding: 30px 40px;
    }
}

/* Smaller screens - 2 columns */
@media (max-width: 1400px) {
    .reports-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        max-width: 1000px;
    }
}

/* If screen is too short (laptops) */
@media (max-height: 900px) {
    .reports-container .report h2,
    .report-card h2 {
        font-size: 1.2rem;
        margin: 10px 0 8px 0;
    }
    
    .reports-container .report p {
        font-size: 0.85rem;
    }
    
    .reports-container .report-icon,
    .report-card .report-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .reports-page {
        padding: 20px 30px;
    }
    
    .reports-container {
        gap: 12px;
    }
}

/* Very short screens */
@media (max-height: 800px) {
    .reports-container .report h2,
    .report-card h2 {
        font-size: 1rem;
    }
    
    .reports-container .report-icon,
    .report-card .report-icon {
        font-size: 1.8rem;
    }
    
    .reports-page {
        padding: 10px 20px;
    }
}

/* Clean up old styles */
.reports-row {
    display: none;
}

.sys-mgmt-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.reports-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.loc-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.active-tutors-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.families-waiting-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.new-families-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 230px 40px 40px 40px;
    margin-right: 280px;
    background: transparent;
}

.possible-matches-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the content vertically */
    flex-grow: 1;
    /* Allow it to take up available space */
    margin-top: 100px;
    /* Add some spacing below the fixed header */
}

@media (max-width: 2400px) {
    .possible-matches-report-main-content {
        margin-right: 80px;
        /* Adjust margin for smaller screens */
    }

    .reports-container {
        gap: 90px;
        margin-right: 200px;
    }
}

.tutor-feedback-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the content vertically */
    flex-grow: 1;
    /* Allow it to take up available space */
    margin-top: 100px;
    /* Add some spacing below the fixed header */
    width: 90%;
    padding-right: 250px;
}

.volunteer-feedback-report-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the content vertically */
    flex-grow: 1;
    /* Allow it to take up available space */
    margin-top: 100px;
    /* Add some spacing below the fixed header */
    width: 90%;
}

/* Parent container for reports - Bento Box Grid */
.reports-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 2600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 2400px) {
    .reports-container {
        max-width: 2400px;
        gap: 20px;
    }
}

@media (max-width: 1800px) {
    .reports-container {
        max-width: 1800px;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 18px;
    }
}

/* Individual report - Bento Box Card */
.reports-container .report {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reports-container .report::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reports-container .report:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.reports-container .report:hover::before {
    opacity: 1;
}

.reports-container .report:active {
    transform: translateY(-4px);
}

.reports-container .report.dragging {
    opacity: 0.7;
    transform: rotate(2deg);
}

/* Report content structure */
.reports-container .report > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* report title */
.reports-container .report h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

/* report description */
.reports-container .report p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Actions container for buttons */
.reports-container .report .actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Buttons inside actions */
.reports-container .report .actions button {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reports-container .report .actions button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.reports-container .report .actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-card {
    background: #8f75ef;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: #af9cf0;
    color: #dedcdc;
}

.reports-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.report-card h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    align-items: center;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 2.5;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-permission {
    text-align: center;
    margin-top: 50px;
}

.no-permission h2 {
    font-size: 72px;
    color: #ff0000;
}

/* Scoped styles for the grid container in ActiveTutorsReport */
.page-content .grid-container {
    width: calc(100% - 100px);
    /* Adjust width to leave space for the sidebar */
    margin-left: 900px;
    /* Remove unnecessary left margin */
    height: calc(100vh - 4000px);
    top: 50px;
    /* Adjust height based on available space */
    padding: 20px;
    /* Add padding inside the grid container */
    direction: rtl;
    /* Align the grid container to the right */
    max-width: 100%;
    /* Ensure the grid does not exceed the visible area */
    overflow-y: hidden !important;

}

/* Styles for medium screens (e.g., laptops) */
@media (max-width: 2400px) {
    .page-content .grid-container {
        width: calc(100% - 50px);
        height: calc(100% - 3000px);
        /* Reduce width for smaller screens */
        margin-right: 300px;
        /* Adjust margin for smaller screens */
        /* max zoom out should be 0.8 */
        transform: scale(0.95);
        /* Zoom out the grid */
        transform-origin: top right;
        /* Set the origin for scaling */
        overflow-y: hidden !important;

    }

    .reports-container {
        gap: 50px;
    }
}

@media (max-width: 1800px) {
    .page-content .grid-container {
        width: 2000px;
        height: 800px;
        margin-right: 100px;
        margin-left: 10px;
        overflow-y: hidden !important;

        /* Add some spacing below the fixed header */
    }
    .active-tutors-report-main-content .page-content .grid-container {
        width: 1500px;   /* Add some spacing below the fixed header */
    }
    .volunteer-feedback-report-main-content .page-content {
        margin-right: 200px;
        overflow: hidden;
    }
    
    .tutor-feedback-report-main-content .page-content {
        overflow: hidden;
    }
}

/* Style for the data grid */
.page-content .data-grid {
    width: 100%;
    /* Ensure the table takes up the full width of its container */
    border-collapse: collapse;
    font-size: 30px;
    /* Increase font size */
    font-family: Arial, sans-serif;
    /* Use a sans-serif font for better readability */
    background-color: #fff;
    /* White background for the table */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow for depth */
    border-radius: 8px;
    /* Rounded corners for the table */
    overflow: hidden !important;
    /* Ensure rounded corners are visible */
    max-height: 80vh;
    /* Limit height to avoid overflow */
    direction: rtl;
    transform: scale(0.9);
    /* Align the grid to the right for right-to-left languages */
}

.volunteer-feedback-report-main-content .data-grid,
.tutor-feedback-report-main-content .data-grid {
    overflow-y: auto!important;

}

.page-content .data-grid th,
.page-content .data-grid td {
    border: 1px solid #ddd;
    padding: 12px;
    /* Increase padding */
    text-align: right;
    /* Align text to the right */
    font-size: 24px;
    /* Increase font size */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide overflow if the text is too long */
    text-overflow: ellipsis;
    /* Add ellipsis for overflowing text */
    word-wrap: break-word;
    /* Allow text to wrap within cells */
    white-space: normal;
    /* Prevent text from overflowing */

}

.page-content .data-grid th {
    background-color: #4CAF50;
    /* Green header background */
    color: white;
    font-weight: bold;
    font-size: 30px;
}

.page-content .data-grid td {
    position: relative;
    /* Ensure the cell does not block interaction */
    z-index: 0;
    /* Keep the cell behind the checkbox */
    color: #333;
}

.page-content .no-data {
    width: 100%;
    /* Make it span the full width */
    text-align: center;
    /* Center the text */
    font-size: 48px;
    /* Adjust font size for better visibility */
    font-weight: bold;
    /* Make the text bold */
    color: #555;
    /* Use a neutral color */
    /* no wrap */
    white-space: nowrap;
}

/* Ensure the checkbox is clickable */
.page-content .data-grid input[type="checkbox"] {
    width: 20px;
    /* Adjust checkbox size */
    height: 20px;
    /* Adjust checkbox size */
    cursor: pointer;
    /* Pointer cursor for checkboxes */
    margin-right: 10px;
    /* Space between checkbox and label */
    position: relative;
    /* Ensure the checkbox is positioned correctly */
    z-index: 1;
    /* Bring the checkbox to the front */
}

.page-content .data-grid label {
    cursor: pointer;
}

.actions {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.actions button {
    margin-right: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.actions .export-button img {
    width: 50px;
    height: 50px;
}

.actions .export-map-button {
    background-color:
        /* citron orange*/
        #f0ad4e;
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.actions .export-map-button:hover {
    background-color: #e0a800;
    /* Darker yellow on hover */
}

.loader {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

.families-grid-container-loader {
    border: 15px solid #f3f3f3;
    /* Thicker border */
    border-top: 15px solid #3498db;
    /* Thicker border */
    border-right: 15px solid #3498db;
    /* Extend the arc */
    border-radius: 50%;
    width: 200px;
    /* Wider loader */
    height: 200px;
    /* Wider loader */
    animation: spin 1s linear infinite;
    /* Slower spin for better visibility */
    position: absolute;
    /* Position relative to the parent container */
    top: 30%;
    /* Center vertically */
    left: 60%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for exact centering */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    /* Adjust font size as needed */
    text-align: center;
}

/* Style for the date inputs */
.date-input {
    padding: 10px;
    font-size: 16px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Style for the filter button */
.filter-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 24px;
}

.filter-button:hover {
    background-color: #0056b3;
}

.reset-date-button {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.reset-date-button:hover {
    background-color: #495057;
}

/* Style for the refresh button */
.refresh-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 24px;
}

.refresh-button:hover {
    background-color: #218838;
}

/* Container for map and grid */
.families-report-container {
    display: flex;
    height: calc(100vh - 400px);
    /* Adjust height to fit the viewport minus header and filters */
    gap: 50px;
    /* Space between map and grid */
    direction: rtl;
    /* Align content for RTL languages */
    padding: 20px;
    /* Add padding inside the container */
    background-color: #f9f9f9;
    /* Light background for better contrast */
    border-radius: 8px;
    /* Rounded corners for the container */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    overflow: hidden;
    /* Prevent overflow */
    width: 1500px;
    transform: scale(0.9);
}

@media (max-width: 1800px) {
    .families-report-container {
        height: calc(100vh - 200px);
        transform: scale(0.95);
        width: 1700px;
        margin-right: 20px;
    }

    .back-to-reports {
        margin-right: 20px !important;
        /* Slightly move it to the left from the edge */
    }

}


/* Map section */
.families-map-container {
    flex: 1;
    /* Take up 1 part of the available space */
    height: 100%;
    /* Full height of the container */
    width: 100%;
    /* Full width of the container */
    position: relative;
    /* Position relative for absolute children */
    border: 1px solid #ddd;
    /* Optional border for clarity */
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensure the map doesn't overflow */
    background-color: #fff;
    /* White background for the map */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

/* Grid section */
.families-grid-container {
    flex: 2;
    /* Take up 2 parts of the available space */
    overflow-x: auto;
    /* Allow horizontal scrolling if needed */
    background-color: #fff;
    /* White background for the grid */
    border: 1px solid #ddd;
    /* Border for clarity */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    padding: 20px;
    /* Add padding inside the grid container */
    max-height: 100%;
    /* Ensure the grid doesn't overflow vertically */
    /* overflow-y: auto; */
    /* Enable vertical scrolling if needed */
}

.families-location-grid-container {
    flex: 2;
    /* Take up 2 parts of the available space */
    overflow-x: auto;
    /* Allow horizontal scrolling if needed */
    background-color: #fff;
    /* White background for the grid */
    border: 1px solid #ddd;
    /* Border for clarity */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    padding: 20px;
    /* Add padding inside the grid container */
    max-height: 100%;
    /* Ensure the grid doesn't overflow vertically */
    overflow-y: auto;
    /* Enable vertical scrolling if needed */
}

/* Families data grid */
.families-data-grid {
    width: 100%;
    /* Full width of the container */
    border-collapse: collapse;
    /* Remove gaps between table cells */
    font-size: 30px;
    /* Increase font size for readability */
    font-family: Arial, sans-serif;
    /* Use a sans-serif font for better readability */
    background-color: #fff;
    /* White background for the table */
    border-radius: 8px;
    /* Rounded corners for the table */
    overflow: hidden;
    /* Ensure rounded corners are visible */
    direction: rtl;
    /* Align the grid to the right for RTL languages */
}

/* Table headers */
.families-data-grid th {
    background-color: #4caf50;
    /* Green header background */
    color: white;
    /* White text */
    font-weight: bold;
    /* Bold text */
    font-size: 30px;
    /* Increase font size */
    text-align: right;
    /* Align text to the right */
    padding: 12px;
    /* Add padding */
    border: 1px solid #ddd;
    /* Border for clarity */
}

/* Table cells */
.families-data-grid td {
    border: 1px solid #ddd;
    /* Border for clarity */
    padding: 12px;
    /* Add padding */
    text-align: right;
    /* Align text to the right */
    font-size: 24px;
    /* Increase font size */
    color: #333;
    /* Dark text color */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide overflow if the text is too long */
    text-overflow: ellipsis;
    /* Add ellipsis for overflowing text */
}

/* No data message */
.families-grid-container .no-data {
    width: 100%;
    /* Make it span the full width */
    text-align: center;
    /* Center the text */
    font-size: 48px;
    /* Adjust font size for better visibility */
    font-weight: bold;
    /* Make the text bold */
    color: #555;
    /* Use a neutral color */
}

/* Checkbox styles */
.families-data-grid input[type="checkbox"] {
    width: 20px;
    /* Adjust checkbox size */
    height: 20px;
    /* Adjust checkbox size */
    cursor: pointer;
    /* Pointer cursor for checkboxes */
    margin-right: 10px;
    /* Space between checkbox and label */
    position: relative;
    /* Ensure the checkbox is positioned correctly */
    z-index: 1;
    /* Bring the checkbox to the front */
}

.leaflet-container {
    height: 100%;
    /* Ensure the Leaflet map fills the container */
    width: 100%;
    position: absolute;
    /* Ensure it stretches within its parent */
    top: 0;
    left: 0;
    background-color: #e6e6e6;
}

.leaflet-tile {
    background-color: transparent;
    /* Ensure no background color on tiles */
    border: none;
    /* Remove any borders */
    box-shadow: none;
    /* Remove any shadows */
}

.large-slider {
    width: 400px;
    /* Increase the width */
    height: 10px;
    /* Increase the height */
    appearance: revert;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.large-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    /* Increase thumb size */
    height: 20px;
    background: #4caf50;
    /* Green thumb */
    border-radius: 50%;
    cursor: pointer;
}

.large-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

.map-error {
    text-align: center;
    color: red;
    font-size: 2rem;
    margin-top: 200px;
}

.map-loader {
    border: 15px solid #f3f3f3;
    /* Thicker border */
    border-top: 15px solid #3498db;
    /* Thicker border */
    border-right: 15px solid #3498db;
    /* Extend the arc */
    border-radius: 50%;
    width: 200px;
    /* Wider loader */
    height: 200px;
    /* Wider loader */
    animation: spin 1s linear infinite;
    /* Slower spin for better visibility */
    position: absolute;
    /* Position relative to the parent container */
    top: 30%;
    /* Center vertically */
    left: 30%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for exact centering */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    /* Adjust font size as needed */
    text-align: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.back-to-reports {
    display: flex;
    justify-content: flex-start;
    /* Align to the right */
    margin-top: -80px;
    /* Add some spacing above */
    margin-right: 100px;
    /* Slightly move it to the left from the edge */
}

.active-tutors-back-to-reports {
    display: flex;
    justify-content: flex-start;
    /* Align to the right */
    margin-top: 10px;
    /* Add some spacing above */
    margin-right: 50px;
    /* Slightly move it to the left from the edge */
}

@media (max-width: 2400px) {

    
    .possible-matches-report-main-content .back-to-reports,
    .new-families-report-main-content .back-to-reports,
    .active-tutors-report-main-content .back-to-reports {
        display: flex;
        justify-content: flex-start;
        /* Align to the right */
        margin-top: 50px;
        margin-right: 50px;
        /* Add some spacing above */
        /* Slightly move it to the left from the edge */
    }


    .tutor-feedback-report-main-content .back-to-reports,
    .volunteer-feedback-report-main-content .back-to-reports {
        margin-right: 500px !important;
        margin-top: 50px;
        margin-bottom: -100px;
    }


    .active-tutors-report-main-content .active-tutors-back-to-reports {
        margin-right: 20px;
        margin-top: -80px;
    }

    .families-waiting-report-main-content .families-tutorship-stats-back-to-reports {
        margin-right: 200px !important;
        margin-top: -150px;
        /* Slightly move it to the left from the edge */
    }

    .pending-tutors-report-main-content .pending-tutors-stats-back-to-reports {
        margin-right: 550px !important;
        margin-top: 100px;
        /* Slightly move it to the left from the edge */
    }
}



.back-button {
    background-color: #007bff;
    /* Blue background */
    color: white;
    /* White text */
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 24px;
    /* Increase font size */
    cursor: pointer;
    transition: background-color 0.3s ease;
    direction: rtl;
    z-index: 2;
    /* Ensure proper alignment in RTL */
}

.back-button:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.wide-column {
    width: 300px !important;
    /* Adjust width as needed */
}

.date-input {
    width: 200px;
    font-size: 20px;
    /* Adjust width as needed */
}

.popup-text {
    font-size: 24px;
    /* Adjust the size as needed */
}

@keyframes export-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-export-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-inline-end: 8px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: export-spinner-spin 0.8s linear infinite;
    vertical-align: middle;
}

@media (max-width: 1800px) {
    .families-location-grid-container.grid-export-mode {
        width: 1200px !important;
        font-size: 20px;
        letter-spacing: 1px;
    }

    .families-location-grid-container.grid-export-mode .families-data-grid th,
    .families-location-grid-container.grid-export-mode .families-data-grid td {
        font-size: 20px;
        letter-spacing: 2px;
        padding: 10px 8px;
        font-family: Rubik;
    }

    .leaflet-container.map-export-mode {
        width: 1000px !important;
        height: 1000px !important;
    }
}

.td-scrollable {
    height: 4.8em;
    /* About 4 lines, adjust as needed */
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-line;
    line-height: 1.2em;
    padding-right: 4px;
    width: 250px;
}

.td-x-scrollable {
    max-width: 250px;
    /* Adjust as needed */
    min-height: 2.4em;
    /* About 2 lines, adjust as needed */
    height: 4.4em;
    /* Fix the height so the scrollbar is always at the bottom */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    word-break: break-all;
    display: flex;
    align-items: flex-start;
    /* Align content to the bottom */
}

/* ===== TUTOR FEEDBACK REPORT GRID STYLES ===== */
.page-content .tutor-feedback-report-grid-container {
    width: 100%;
    margin-right: 30px !important;
    height: calc(100vh - 400px);
    padding: 20px;
    direction: rtl;
    max-width: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    top: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transform: scale(0.9) !important;

}

@media (max-width: 1920px) {
    .page-content .tutor-feedback-report-grid-container {
        padding: 10px;
        height: calc(100vh - 300px);
        width: 100%;
        margin-left: 0;
        overflow-y: auto;
        top: auto;
        transform: scale(0.75) !important;
        margin-right: 30px !important;
        margin-top: 50px !important;

    }

    .page-content .tutor-feedback-report-data-grid {
        font-size: 10px;
        overflow-y: auto !important;
    }

    .page-content .tutor-feedback-report-data-grid th,
    .page-content .tutor-feedback-report-data-grid td {
        padding: 6px;
        font-size: 10px;
    }
}

@media (max-width: 2400px) {
    .page-content .tutor-feedback-report-grid-container {
        height: auto;
        width: 100%;
        margin-right: 0;
        transform: scale(0.9);
        margin-right: 30px;

    }

    .page-content .tutor-feedback-report-data-grid {
        font-size: 12px;
    }

    .page-content .tutor-feedback-report-data-grid th,
    .page-content .tutor-feedback-report-data-grid td {
        padding: 4px;
    }
}

.page-content .tutor-feedback-report-data-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-y: auto !important;
    direction: rtl;
    table-layout: auto;
}

.page-content .tutor-feedback-report-data-grid th,
.page-content .tutor-feedback-report-data-grid td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-content .tutor-feedback-report-data-grid th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-content .tutor-feedback-report-data-grid td {
    position: relative;
    z-index: 0;
    color: #333;
    font-size: 20px;
    font-weight: normal;
}

.page-content .tutor-feedback-report-data-grid input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.page-content .tutor-feedback-report-data-grid label {
    cursor: pointer;
}

.page-content .tutor-feedback-report-grid-container::-webkit-scrollbar {
    width: 12px;
}

.page-content .tutor-feedback-report-grid-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8f75ef 0%, #764ba2 100%);
    border-radius: 10px;
}

.page-content .tutor-feedback-report-grid-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}


/* ===== VOLUNTEER FEEDBACK REPORT GRID STYLES ===== */
.page-content .volunteer-feedback-report-grid-container {
    width: 100%;
    margin-left: 0;
    height: calc(100vh - 400px);
    padding: 20px;
    direction: rtl;
    max-width: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    top: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

@media (max-width: 1920px) {
    .page-content .volunteer-feedback-report-grid-container {
        padding: 10px;
        height: calc(100vh - 300px);
        width: 100%;
        margin-left: 0;
        overflow-y: auto;
        margin-top: -150px  !important;
        transform: scale(0.85) !important;
        margin-right: 200px !important;
        margin-top: 100px !important;
    }

    .page-content .volunteer-feedback-report-data-grid {
        font-size: 10px;
        width: 100%;
    }

    .page-content .volunteer-feedback-report-data-grid th,
    .page-content .volunteer-feedback-report-data-grid td {
        padding: 6px;
        font-size: 10px;
    }
}

@media (max-width: 2400px) {
    .page-content .volunteer-feedback-report-grid-container {
        height: auto;
        width: 100%;
        margin-right: 0;
    }

    .page-content .volunteer-feedback-report-data-grid {
        font-size: 12px;
    }

    .page-content .volunteer-feedback-report-data-grid th,
    .page-content .volunteer-feedback-report-data-grid td {
        padding: 4px;
    }
}

.page-content .volunteer-feedback-report-data-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-y: auto !important;
    direction: rtl;
    table-layout: auto;
}

.page-content .volunteer-feedback-report-data-grid th,
.page-content .volunteer-feedback-report-data-grid td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-content .volunteer-feedback-report-data-grid th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-content .volunteer-feedback-report-data-grid td {
    position: relative;
    z-index: 0;
    color: #333;
    font-size: 20px;
    font-weight: normal;
}

.page-content .volunteer-feedback-report-data-grid input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.page-content .volunteer-feedback-report-data-grid label {
    cursor: pointer;
}

.page-content .volunteer-feedback-report-grid-container::-webkit-scrollbar {
    width: 12px;
}

.page-content .volunteer-feedback-report-grid-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8f75ef 0%, #764ba2 100%);
    border-radius: 10px;
}

.page-content .volunteer-feedback-report-grid-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.tutorships-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  padding: 230px 40px 40px 40px;
  margin-right: 280px;
  background: transparent;
}

.matches-modal {
  top: -72px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  padding: 3rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 90%;
  height: 800px;
  margin: auto;
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(99, 102, 241, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
  z-index: 9999 !important;
  transform: scale(0.9);
}

.matches-modal h2 {
  font-size: 52px;
  /* green color */
  color: #4CAF50;
  /* Adjust font size for the title */
  margin-bottom: 1rem;
  /* Add space below the title */
  text-align: center;
  /* Center the title */
}

.match-modal-content {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping on smaller screens */
  gap: 1rem;
  width: 100%;
  height: 60%;
}

.map-match-container {
  flex: 1;
  width: 100%;
  /* Ensure the container takes the full width */
  height: 400px;
  /* Set a fixed height for the map container */
  background-color: #f0f0f0;
  /* Optional: Background color for the container */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Ensure the map is positioned relative to this container */
  overflow: hidden;
  /* Prevent overflow issues */
}

.grid-container {
  flex: 1;
  min-width: 300px;
  /* Ensure the grid has a minimum width */
  max-width: 100%;
  /* Limit the grid width to half the modal */
  overflow-y: auto;
  /* Add vertical scrolling if needed */
  height: 100%;
}



/* Scoped styles for the grid container in ActiveTutorsReport */
.page-content .tutorship-matching-grid-container {
  width: calc(100% - 50px);
  /* Adjust width to leave space for the sidebar */
  margin-left: 400px;
  /* Remove unnecessary left margin */
  height: calc(100vh - 400px);
  /* Adjust height based on available space */
  padding: 20px;
  /* Add padding inside the grid container */
  direction: rtl;
  /* Align the grid container to the right */
  max-width: 100%;
  /* Ensure the grid does not exceed the visible area */
  overflow-y: auto;
  top: auto;
}

@media (max-width: 2400px) {
  .matches-modal {
    margin-right: 200px;
  }
}


@media (max-width: 1920px) {
  .page-content .tutorship-matching-grid-container {
    padding: 10px;
    /* Reduce padding */
    height: calc(100vh - 300px);
    /* Adjust height */
    width: calc(100% - 150px);
    /* Adjust width to leave space for the sidebar */
    margin-left: 100px;
    /* Adjust left margin for smaller screens */
    margin-right: 80px;
    /* Adjust right margin for smaller screens */
    overflow-y: auto;
    top: auto;
  }

  .page-content .tutorship-matching-data-grid {
    font-size: 30px;
    margin-top: -100px;
    /* Reduce font size */
  }

  .page-content .tutorship-matching-data-grid th,
  .page-content .tutorship-matching-data-grid td {
    padding: 6px;
    /* Reduce padding */
    font-size: 66px;
    /* Reduce font size */
  }
}

@media (max-width: 768px) {
  .page-content .tutorship-matching-grid-container {
    height: auto;
    /* Allow the grid to grow based on content */
    width: calc(100% - 300px);
    /* Adjust width to leave space for the sidebar */
    margin-left: 400px;
  }

  .page-content .tutorship-matching-data-grid {
    font-size: 32px;
    /* Further reduce font size */
  }

  .page-content .tutorship-matching-data-grid th,
  .page-content .tutorship-matching-data-grid td {
    padding: 4px;
    /* Further reduce padding */
  }
}

/* Style for the data grid */
.page-content .tutorship-matching-data-grid {
  width: 100%;
  /* Ensure the table takes up the full width of its container */
  border-collapse: collapse;
  font-size: 32px;
  /* Adjust font size for readability */
  font-family: Arial, sans-serif;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  direction: rtl;
  /* Align the grid to the right for right-to-left languages */
  table-layout: auto;
  /* Allow columns to adjust based on content */
}

.page-content .tutorship-matching-data-grid th,
.page-content .tutorship-matching-data-grid td {
  border: 1px solid #ddd;
  padding: 8px;
  /* Adjust padding for smaller screens */
  text-align: right;
  white-space: nowrap;
  /* Prevent text from wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 66px;
  /* Add ellipsis for overflowing text */
}

.page-content .tutorship-matching-data-grid th {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  font-size: 30px;
  /* Adjust font size for headers */
}

.page-content .tutorship-matching-data-grid td {
  position: relative;
  /* Ensure the cell does not block interaction */
  z-index: 0;
  /* Keep the cell behind the checkbox */
  color: #333;
  font-size: 28px;
  /* Adjust font size for table data */
  font-weight: normal;
}

/* Ensure the checkbox is clickable */
.page-content .tutorship-matching-data-grid input[type="checkbox"] {
  width: 20px;
  /* Adjust checkbox size */
  height: 20px;
  /* Adjust checkbox size */
  cursor: pointer;
  /* Pointer cursor for checkboxes */
  margin-right: 10px;
  /* Space between checkbox and label */
  position: relative;
  /* Ensure the checkbox is positioned correctly */
  z-index: 1;
  /* Bring the checkbox to the front */
}

.page-content .tutorship-matching-data-grid label {
  cursor: pointer;
}

/* Actions container for buttons */
.tutorship-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.approval-span {
  font-size: 24px;
  color:
    /* black */
    #333;
  margin-top: 20px;
  text-align: center;
}

/* Button styles */
.tutorship-actions button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.tutorship-actions button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.tutorship-actions button:hover::before {
  width: 300px;
  height: 300px;
}

.tutorship-actions button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(76, 175, 80, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.tutorship-actions .delete-button {
  background: linear-gradient(135deg, 
    rgba(255, 77, 77, 0.95) 0%,
    rgba(209, 26, 42, 0.95) 100%);
  box-shadow: 
    0 8px 20px rgba(255, 77, 77, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tutorship-actions .delete-button:hover {
  box-shadow: 
    0 12px 30px rgba(255, 77, 77, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


/* Modal grid */
.match-modal-content .data-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: Arial, sans-serif;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  direction: rtl;
  table-layout: auto;
}

.match-modal-content .data-grid th,
.match-modal-content .data-grid td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-modal-content .data-grid th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 24px;
}

.match-modal-content .data-grid td {
  font-size: 24px;
}


.match-modal-content .data-grid tr {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.match-modal-content .data-grid tr:hover {
  background-color: #f0f8ff;
  /* Light blue background on hover */
  color: #000;
  /* Darker text color on hover */
}

.match-modal-content .data-grid tr:active {
  background-color: #add8e6;
  /* Slightly darker blue on click */
  color: #000;
  /* Keep text color consistent */
}

.match-modal-content .data-grid tr.selected {
  background-color: #add8e6;
  /* Same as active state */
  color: #000;
  /* Keep text color consistent */
}

@media (max-width: 768px) {
  .match-modal-content {
    flex-direction: column;
    /* Stack grid and map vertically */
  }

  .grid-container,
  .map-container {
    max-width: 100%;
    /* Allow full width for smaller screens */
    min-width: 100%;
    /* Ensure full width for smaller screens */
  }

  .page-content .tutorship-matching-grid-container {
    margin-left: 0;
    /* Remove left margin for smaller screens */
    width: 100%;
    /* Use full width */
  }

  .page-content .tutorship-matching-data-grid th,
  .page-content .tutorship-matching-data-grid td {
    font-size: 66px;
    /* Reduce font size */
    padding: 4px;
    /* Reduce padding */
  }
}

.loader {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin: 20px 0;
}

.map-match-loader {
  border: 15px solid #f3f3f3;
  /* Thicker border */
  border-top: 15px solid #3498db;
  /* Thicker border */
  border-right: 15px solid #3498db;
  /* Extend the arc */
  border-radius: 70%;
  width: 100px;
  /* Wider loader */
  height: 100px;
  /* Wider loader */
  animation: spin 1s linear infinite;
  /* Slower spin for better visibility */
  position: absolute;
  /* Position relative to the parent container */
  top: 30%;
  /* Center vertically */
  left: 40%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Adjust for exact centering */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  /* Adjust font size as needed */
  text-align: center;
}

.grid-loader {
  border: 15px solid #f3f3f3;
  /* Thicker border */
  border-top: 15px solid #3498db;
  /* Thicker border */
  border-right: 15px solid #3498db;
  /* Extend the arc */
  border-radius: 50%;
  width: 200px;
  /* Wider loader */
  height: 200px;
  /* Wider loader */
  animation: spin 1s linear infinite;
  /* Slower spin for better visibility */
  position: absolute;
  /* Position relative to the parent container */
  top: 40%;
  /* Center vertically */
  left: 70%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Adjust for exact centering */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  /* Adjust font size as needed */
  text-align: center;
}

.info-icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.info-icon {
  font-size: 16px;
  color: #007bff;
  border: 1px solid #007bff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip {
  visibility: hidden;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  /* Position above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.info-icon-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.modal-actions {
  margin-top: 20px !important
  /* Add some space above the buttons */
}

.modal-actions .calc-match-button {
  background: linear-gradient(135deg, 
    rgba(0, 123, 255, 0.95) 0%,
    rgba(0, 86, 179, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 2em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(0, 123, 255, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-actions .create-tutorship-button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 2em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-actions .close-info-button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 2em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-actions .calc-match-button::before,
.modal-actions .create-tutorship-button::before,
.modal-actions .close-info-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.modal-actions .create-tutorship-button:hover,
.modal-actions .close-info-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(76, 175, 80, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-actions .calc-match-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(0, 123, 255, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-actions .calc-match-button:hover::before,
.modal-actions .create-tutorship-button:hover::before,
.modal-actions .close-info-button:hover::before {
  width: 300px;
  height: 300px;
}

.info-modal-content .close ,
.match-modal-content .close {
  color: #333;
  /* Darker color for better visibility */
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  /* Smooth hover effect */
}

.matches-modal-header .matches-close {
  background: linear-gradient(135deg, 
    rgba(255, 77, 77, 0.95) 0%,
    rgba(209, 26, 42, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  position: absolute;
  top: 72px !important;
  right: 20px;
  font-size: 3em !important;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(255, 77, 77, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.matches-modal-header .matches-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.matches-modal-header .matches-close:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(255, 77, 77, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.matches-modal-header .matches-close:hover::before {
  width: 300px;
  height: 300px;
}

.info-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  height: 90%;
}

.info-column {
  flex: 1;
  border-right: 1px solid #ddd;
  padding-right: 20px;
  align-items: right;
}

.info-column h2 {
  font-size: 52px;
  /* green color */
  color: #4CAF50;
  /* Adjust font size for the title */
  margin-bottom: 1rem;
  /* Add space below the title */
  text-align: center;
  /* Center the title */
}

.info-table-scroll {
  overflow-y: auto;
  max-height: 70vh;
  /* Or whatever fits your modal */
  /* Optional: add padding or background if needed */
}


.info-column:last-child {
  border-right: none;
  padding-right: 0;
}

.close-matches-modal-button {
  background: linear-gradient(135deg, 
    rgba(255, 77, 77, 0.95) 0%,
    rgba(209, 26, 42, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(255, 77, 77, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.close-matches-modal-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.close-matches-modal-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(255, 77, 77, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.close-matches-modal-button:hover::before {
  width: 300px;
  height: 300px;
}

@keyframes flicker {
  0% {
    stroke-dasharray: 5, 10;
  }

  50% {
    stroke-dasharray: 10, 5;
  }

  100% {
    stroke-dasharray: 5, 10;
  }
}

.leaflet-interactive {
  animation: flicker 1s infinite;
}

.leaflet-popup-content {
  font-size: 24px !important;
  /* Adjust font size for better readability */
  color: #333;
  /* Darker text color */
}

.leaflet-container a.leaflet-popup-close-button {
  display: none;
}


.custom-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid black;
}

.custom-pin.red {
  background-color: red;
  /* Red for distance > 100 km */
}

.custom-pin.yellow {
  background-color: yellow;
  /* Yellow for distance between 50 and 100 km */
}

.custom-pin.green {
  background-color: green;
  /* Green for distance < 50 km */
}

.sort-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-left: 5px;
  margin-right: 10px;
  color:
    /*white*/
    #fdfbfb;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.filter-container label {
  font-size: 12px;
  color: #555;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.filter-controls label {
  font-size: 24px;
  color: #555;
}

.custom-slider {
  width: 200px;
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  position: relative;
}

.custom-slider-track {
  height: 100%;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
}

.custom-slider-thumb {
  height: 20px;
  width: 20px;
  background: #007bff;
  /* Blue thumb */
  border-radius: 0%;
  cursor: pointer;
  position: relative;
  top: -8px;
}

.filter-value {
  font-size: 24px;
  color: #333;
}

.info-column p {
  margin: 0;
  margin-bottom: 5px;
  font-size: 18px;
  color: #333;
  font-weight: normal;
  text-align: center;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.info-table td:first-child {
  font-weight: bold;
  width: 40%;
  /* Adjust column width as needed */
}

.info-table td:last-child .info-table td:first-child {

  text-align: center;
}

.approval-modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 1000px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.approval-modal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.approval-modal h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.approval-modal p {
  font-size: 20px;
  margin-bottom: 20px;
}

.approval-modal yes-button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.approval-modal yes-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(76, 175, 80, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.approval-modal no-button {
  background: linear-gradient(135deg, 
    rgba(255, 77, 77, 0.95) 0%,
    rgba(209, 26, 42, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(255, 77, 77, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.approval-modal no-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(255, 77, 77, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Style for disabled buttons */
button:disabled {
  background-color:
    /* light green */
    #e0e0e0;
  /* Light gray background */
  color: #666;
  /* Dark gray text */
  cursor: not-allowed;
  /* Show "not allowed" cursor */
  opacity: 0.6;
  /* Make it slightly transparent */
  border: 1px solid #aaa;
  /* Optional: Add a border */
  transition: background-color 0.3s ease;
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

.pagination button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.pagination button:disabled {
  background-color: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
}

.pagination-arrow {
  font-size: 16px;
  font-weight: bold;
}

/* Default text style */
.info-columns td {
  transition: transform 0.2s ease, font-size 0.2s ease;
}

/* Magnify effect when active */
.magnify-active td:hover {
  transform: scale(3.2);
  /* Enlarge the text and adjust position */
  transform-origin: right;
  /* Adjust origin for scaling */
  cursor: zoom-in;
  /* Change cursor to indicate zoom */
  position: relative;
  /* Ensure positioning works */
  z-index: 10;
  /* Bring the text to the front */
  transition: transform 0.2s ease;
}

.info-modal-content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 50px;
  width: 70%;
  /* Increase the width to make the modal wider */
  max-width: 1920px;
  /* Increase the maximum width */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  /* animation: fadeIn 0.3s ease-in-out; */
  font-size: 1em;
  margin-right: 30px;
  /* Add some space on the right */
  /* Allow wrapping on smaller screens */
  gap: 1rem;
  height: 90%;
  max-height: 90%;
  transform: scale(0.95);
}

.info-modal-content .magnify-button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.info-modal-content .magnify-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.info-modal-content .magnify-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(76, 175, 80, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.info-modal-content .magnify-button:hover::before {
  width: 300px;
  height: 300px;
}

.info-column .info-table td {
  font-size: 1.5em;
  /* Default font size */
}

.grade-tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  z-index: 3;
}

.grade-tooltip-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #e0e0e0;
  color: #333;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #bbb;
  margin-left: 2px;
  transition: background 0.2s;
}

.grade-tooltip-icon:hover,
.grade-tooltip-icon:focus {
  background: #d0d0d0;
}

.grade-tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 500px;
  background-color: #fff;
  color: #222;
  text-align: right;
  border-radius: 8px;
  border: 1px solid #bbb;
  padding: 12px;
  position: fixed;
  /* <-- changed from absolute */
  z-index: 9999;
  /* <-- very high z-index */
  top: 100px;
  /* <-- adjust as needed */
  left: 70%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 24px;
  font-family: Rubik;
  white-space: pre-line;
  pointer-events: none;
  transition: opacity 0.2s;
}

.grade-tooltip-container:hover .grade-tooltip-text,
.grade-tooltip-icon:focus+.grade-tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.map-legend {
  display: flex;
  gap: 18px;
  margin: 12px 0 0 0;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  width: fit-content;
  z-index: 1000;
  margin-top: 350px;
}

.legend-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 5px;
  border: 1px solid #bbb;
  vertical-align: middle;
}

.legend-dot-green {
  background: #3bb143;
}

.legend-dot-yellow {
  background: #ffe066;
  border-color: #e6c200;
}

.legend-dot-red {
  background: #e74c3c;
}

.matches-search-bar {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 24px;
}

.pending-distances-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
}

.pending-distances-warning button {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.95) 0%,
    rgba(255, 160, 0, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(255, 193, 7, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.pending-distances-warning button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.pending-distances-warning button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(255, 193, 7, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.pending-distances-warning button:hover::before {
  width: 300px;
  height: 300px;
}


.short-match-modal-content {
  height: 53% !important;
}

.refresh-now-btn {
  opacity: 0;
  transition: opacity 0.8s;
  margin-right: 8px;
}

.refresh-now-btn.visible {
  opacity: 1;
}

/* Add to your CSS file */
.urgent-row {
  background-color: #e53935 !important;
  color: #fff !important;
  font-weight: bold;
}

/* In your CSS */
.status-filter-container {
  position: relative;
  display: inline-block;
}

.status-filter-label {
  margin-right: 8px;
  font-size: 24px;
  vertical-align: right;
}

.funnel-icon {
  width: 63px;
  height: 63px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 8px;
}

.funnel-icon-svg {
  width: 96px !important;
  height: 96px !important;
}

.status-filter-select {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 1000;
  min-width: 140px;
  font-size: 24px;
  font-family: Rubik, sans-serif;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 4px 8px;
  direction: rtl;
}

.status-filter-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 9999;
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  overflow: visible;
  border: 1px solid #ddd;
}

.status-filter-option {
  padding: 12px 18px;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid #eee;
}

.status-filter-option:last-child {
  border-bottom: none;
}

.status-filter-option.selected {
  background: #add8e6 !important;
  color: #111 !important;
  font-weight: bold;
}

.custom-slider-threshold-thumb {
  width: 32px;
  height: 32px;
  background: #1976d2;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
  font-size: 1.3em;
  cursor: grab;
  z-index: 2;
  position: relative;
  top: -14px; /* Adjust to position above the track */
}

.selected-row {
  background: #add8e6 !important;
  color: #111 !important;
  font-weight: normal !important;
}

/* Glassmorphism styles for Open Matching Wizard and Refresh buttons */
.create-task button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: white;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(76, 175, 80, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.create-task button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.create-task button:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4), 0 6px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.create-task button:hover::before {
  width: 300px !important;
  height: 300px !important;
}

.refresh button {
  background: linear-gradient(135deg, 
  /* cyan and darker cyan */
    rgba(3, 169, 244, 0.95) 0%,
    rgba(66, 165, 245, 0.95) 100%) !important;
  backdrop-filter: blur(15px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
  color: white !important;
  padding: 12px 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 8px 20px rgba(3, 169, 244, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.refresh button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.refresh button:hover {
  background: linear-gradient(135deg, 
    rgba(3, 169, 244, 0.95) 0%,
    rgba(66, 165, 245, 0.95) 100%) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(3, 169, 244, 0.4), 0 6px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.refresh button:hover::before {
  width: 300px !important;
  height: 300px !important;
}

/* Inactive tutorship row styling - entire row disabled */
.inactive-tutorship-row {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.inactive-tutorship-row td {
  background-color: #84848b !important;
  color: #363434;
}

.inactive-tutorship-row .info-icon-container {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  color: #4513eb !important;
  background-color: #ffffff !important;
}
/* Tutorship Activation Status Filter - Dropdown Style */
.tutorship-activation-filter-container {
  position: relative;
  display: inline-block;
}

.tutorship-activation-filter-button {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.95) 0%,
    rgba(118, 75, 162, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 20px rgba(102, 126, 234, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
  min-width: 200px;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.tutorship-activation-filter-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.tutorship-activation-filter-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(102, 126, 234, 0.4),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.tutorship-activation-filter-button:hover::before {
  width: 300px;
  height: 300px;
}

.tutorship-activation-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-direction: row;
  white-space: nowrap;
}

.tutorship-activation-filter-item {
  display: flex;
  align-items: center;
  margin-left: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}

.tutorship-activation-filter-item:hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
}

.tutorship-activation-filter-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4caf50;
  cursor: pointer;
  margin: 0;
  margin-left: 8px;
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/assets/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/assets/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/assets/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

.staff-page-content {
  margin-top: 60px;
  /* תלוי בגובה של ההדר + מרווח קטן */
  padding: 20px;
  /* קצת רווח פנימי */
}

.staff-grid-container {
  margin-top: 20px;
}

.staff-page-content .search-bar {
  margin-bottom: 40px;
  margin-left: 10px;
  margin-top: 40px;
}

.staff-page-content .refresh-button {
  font-weight: 600;
}

.staff-grid-container .no-data {
  text-align: center;
  font-size: 48px;
  font-weight: bold;
  color: /*black */#333;
  margin-top: 20px;
}

.staff-data-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.65) 0%,
    rgba(245, 245, 245, 0.55) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.3),
    0 10px 30px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.staff-data-grid th,
.staff-data-grid td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 24px;
}

.staff-data-grid th {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(139, 92, 246, 1) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  font-weight: 700;
  color: white;
  position: sticky !important;
  top: 0;
  z-index: 2;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  text-align: right;
}

.staff-data-grid tr:nth-child(even) {
  background: linear-gradient(90deg, 
    rgba(240, 242, 245, 0.8) 0%,
    rgba(230, 232, 236, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.staff-data-grid tr:hover {
  background: linear-gradient(90deg, 
    rgba(165, 180, 252, 0.5) 0%,
    rgba(192, 132, 252, 0.5) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-data-grid tr:hover td {
  background-color: transparent !important;
}

.staff-data-grid tr.selected {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%,
    rgba(139, 92, 246, 0.95) 100%);
  color: white;
  transition: all 0.3s ease;
}

.staff-data-grid td {
  text-align: center;
  background-color: white;
  color: black;
  font-weight: normal;
}

/* Inactive user row styling */
.inactive-user-row td {
  background-color: #84848b !important; 
  color: #363434;
}

/* Buttons in inactive rows should look normal */
.inactive-user-row .edit-button,
.inactive-user-row .delete-button {
  opacity: 1 !important;
}


.staff-modal {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  padding: 3rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 650px;
  margin: auto;
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(99, 102, 241, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1000;
}

/* Modal overlay */
.staff-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.staff-modal-content {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  padding: 20px;
  border-radius: 16px;
  width: 900px;
  max-width: 90%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(102, 126, 234, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.staff-modal-content h2 {
  margin: 0;
  color: #4caf50;
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
}

.staff-modal-content p {
  font-size: 24px;
  margin-bottom: 20px;
}

.staff-close {
  color: #333;
  /* Darker color for better visibility */
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  /* Smooth hover effect */
}

.staff-form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.staff-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.staff-form-actions button {
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.staff-form-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.staff-form-actions button:hover::before {
  left: 100%;
}

.staff-form-actions button:first-child {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.staff-form-actions button:first-child:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.staff-form-actions button:last-child {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.staff-form-actions button:last-child:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.controls {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}


.audit-log-date-input {
  padding: 10px 15px;
  margin: 0;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  width: 200px;
  height: 50px;
  font-size: 20px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
}

.audit-log-date-input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.audit-log-data-button {
  background: linear-gradient(135deg, 
    rgba(197, 48, 18, 0.95) 0%,
    rgba(150, 20, 0, 0.95) 100%);
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  color: white;
  padding: 12px 20px;
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(197, 48, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  order: 999;
}

.audit-log-data-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.audit-log-data-button:hover::before {
  left: 100%;
}

.audit-log-data-button:hover {
  background: linear-gradient(135deg, 
    rgba(197, 48, 18, 1) 0%,
    rgba(150, 20, 0, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(197, 48, 18, 0.4) !important;
}

.dashboard-button {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.95) 0%,
    rgba(78, 96, 204, 0.95) 100%);
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  color: white;
  padding: 12px 20px;
  font-size: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.dashboard-button:hover::before {
  left: 100%;
}

.dashboard-button:hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 1) 0%,
    rgba(78, 96, 204, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

.dashboard-button svg {
  flex-shrink: 0;
}


.search-bar {
  padding: 10px 15px;
  width: 300px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  font-size: 24px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
}

.search-bar:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.add-button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin-left: 0;
}

.add-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.add-button:hover::before {
  left: 100%;
}

.add-button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filter-inactive-button {
  background: linear-gradient(135deg, 
    rgba(107, 114, 128, 0.95) 0%,
    rgba(75, 85, 99, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(107, 114, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin-left: 0;
}

.filter-inactive-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.filter-inactive-button:hover::before {
  left: 100%;
}

.filter-inactive-button:hover {
  background: linear-gradient(135deg, 
    rgba(107, 114, 128, 1) 0%,
    rgba(75, 85, 99, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(107, 114, 128, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filter-inactive-button.active {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.filter-inactive-button.active:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.edit-button,
.delete-button {
  padding: 12px 20px;
  margin-right: 5px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.edit-button::before,
.delete-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.edit-button:hover::before,
.delete-button:hover::before {
  left: 100%;
}

.edit-button {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.edit-button:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 1) 0%,
    rgba(37, 99, 235, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.delete-button {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.delete-button:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 14px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.pagination button:hover:not(:disabled) {
  border-color: rgba(102, 126, 234, 0.9);
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.pagination button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination button:disabled {
  background: rgba(240, 242, 245, 0.5);
  color: #ccc;
  cursor: not-allowed;
  border-color: rgba(102, 126, 234, 0.2);
  opacity: 0.6;
}

.pagination-arrow {
  font-size: 16px;
  font-weight: bold;
}

.refresh-button {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  margin-left: 0 !important;
  font-size: 24px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
  position: relative;
  overflow: hidden;
  padding: 12px 20px !important;
}

.refresh-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.refresh-button:hover::before {
  left: 100%;
}

.refresh-button:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 1) 0%,
    rgba(37, 99, 235, 1) 100%) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4) !important;
}

.delete-modal {
  width: 600px;
  margin: auto;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(102, 126, 234, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.delete-modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.modal-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.yes-button {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.yes-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.yes-button:hover::before {
  left: 100%;
}

.yes-button:hover {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 1) 0%,
    rgba(220, 38, 38, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.no-button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.no-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.no-button:hover::before {
  left: 100%;
}

.no-button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Form Row for Two-Column Layout */
.staff-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 10px;
}

.staff-form-row label,
.staff-form-row input,
.staff-form-row select {
  font-size: 24px;
  color: #333;
}

.staff-form-row input,
.staff-form-row select {
  padding: 10px 15px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.staff-form-row input:focus,
.staff-form-row select:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Dropdown Container */
.roles-dropdown-container {
  position: relative;
}

/* Dropdown Button */
.roles-dropdown-button {
  padding: 10px 15px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  cursor: pointer;
  width: 100%;
  text-align: right;
  font-size: 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  color: #333;
}

.roles-dropdown-button:hover {
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Dropdown Menu */
.roles-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 24px;
}

/* Dropdown Item */
.roles-dropdown-item {
  font-size: 24px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.roles-dropdown-item:hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
}

.roles-dropdown-item input {
  margin-right: 10px;
}

.roles-dropdown-item input[type="checkbox"] {
    width: 28px;
    height: 28px;
    accent-color: #4caf50; /* Optional: makes the checkbox green in supported browsers */
    margin-right: 10px;
    vertical-align: middle;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  font-size: 16px;
  text-align: right;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
}

.password-input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Eye Icon Style */
.eye-icon {
  position: absolute;
  left: 10px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.3s ease, color 0.3s;
  opacity: 0.7;
}

.eye-icon:hover {
  color: #007bff;
  transform: scale(1.2);
  opacity: 1;
}

.eye-icon.open {
  transform: rotateY(180deg);
  color: #007bff;
}

/* Animate eye in on input focus */
.password-input:focus ~ .eye-icon {
  animation: slide-in-fade 0.4s ease;
}

@keyframes slide-in-fade {
  0% {
    transform: translateX(10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it appears above everything */
}

.sys-mgmt-mandatory-span {
  color: red;
  font-size: 32px;
  display: block;
}

.staff-error {
  border: 1px solid red;
}

.staff-error-message {
  color: red;
  font-size: 24px;
  margin-top: 4px;
}

.totp-verification-section {
  text-align: center;
  padding: 2rem;
}

.totp-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.totp-input-box {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  outline: none;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
}

.totp-input-box:focus {
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.totp-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Modal Overlay for Deactivation and Reactivation Modals */
.modal-overlay {
  z-index: 1000 !important;
  background: transparent !important;
}

/* Modal Portal for proper z-index stacking */
.modal-portal {
  position: fixed;
  z-index: 1000 !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-right: 500px;
  font-size: 24px;
}

/* Ensure modal content is visible and focusable */
.modal-portal .ReactModal__Content {
  z-index: 1001 !important;
  position: relative;
  outline: none;
  font-size: 24px;
  box-shadow: none !important;
}

/* Deactivation Modal Styles */
.deactivation-modal-header {
  margin-bottom: 15px;
}

.deactivation-modal-warning {
  color: #d32f2f;
  margin-top: 10px;
  font-weight: bold;
  line-height: 1.5;
}

.deactivation-reason-container {
  margin-top: 20px;
}

.deactivation-reason-label {
  display: block;
  margin-bottom: 5px;
}

.deactivation-reason-label span {
  color: red;
  margin-left: 3px;
}

.deactivation-reason-textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  font-size: 24px;
  resize: vertical;
  min-height: 100px;
}

.deactivation-reason-counter {
  font-size: 24px;
  color: #666;
}

.deactivation-reason-error {
  color: #d32f2f;
  margin-top: 10px;
  font-size: 24px;
}

.deactivation-button {
  background: linear-gradient(135deg, 
    rgba(211, 47, 47, 0.95) 0%,
    rgba(192, 0, 0, 0.95) 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.deactivation-button:hover {
  background: linear-gradient(135deg, 
    rgba(192, 0, 0, 1) 0%,
    rgba(155, 0, 0, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

/* Reactivation Modal Styles */
.reactivation-modal-header {
  margin-bottom: 15px;
}

.reactivation-modal-info {
  margin-top: 50px;
  color: #666;
  font-size: 24px;
  line-height: 1.6;
}

.reactivation-button {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.95) 0%,
    rgba(56, 142, 60, 0.95) 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.reactivation-button:hover {
  background: linear-gradient(135deg, 
    rgba(56, 142, 60, 1) 0%,
    rgba(27, 94, 32, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Modal Actions Container */
.modal-actions-deactivation {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-top: 20px;
}
/* Scoped styles for the grid container in ActiveTutorsReport */
.page-content .tutorship-pending-grid-container {
    width: 100%;
    /* Adjust width to leave space for the sidebar */
    margin-left: 400px;
    /* Remove unnecessary left margin */
    height: calc(100vh - 400px);
    /* Adjust height based on available space */
    padding: 20px;
    /* Add padding inside the grid container */
    direction: rtl;
    /* Align the grid container to the right */
    max-width: 100%;
    /* Ensure the grid does not exceed the visible area */
    overflow-y: auto;
    top: auto;
}

@media (max-width: 1920px) {
    .page-content .tutorship-pending-grid-container {
        padding: 10px; /* Reduce padding */
        height: calc(100vh - 300px); /* Adjust height */
        width: 100%; /* Adjust width to leave space for the sidebar */
        margin-left: 100px; /* Adjust left margin for smaller screens */
        margin-right: 80px; /* Adjust right margin for smaller screens */
        overflow-y: auto;
        top: auto;
    }

    .page-content .tutorship-pending-data-grid {
        font-size: 10px; /* Reduce font size */
    }

    .page-content .tutorship-pending-data-grid th,
    .page-content .tutorship-pending-data-grid td {
        padding: 6px; /* Reduce padding */
        font-size: 10px; /* Reduce font size */
    }
}

@media (max-width: 2400px) {
    .page-content .tutorship-pending-grid-container {
        height: 500px; /* Allow the grid to grow based on content */
        width: 100%;
        /* Adjust width to leave space for the sidebar */
        margin-right: 100px;
        transform: scale(0.95);
    }
    .new-families-report-main-content .page-content .tutorship-pending-grid-container {
      height: 500px; /* Allow the grid to grow based on content */
      width: 1500px;
      /* Adjust width to leave space for the sidebar */
      margin-right: 150px;
  }

    .page-content .tutorship-pending-data-grid {
        font-size: 12px; /* Further reduce font size */
    }

    .page-content .tutorship-pending-data-grid th,
    .page-content .tutorship-pending-data-grid td {
        padding: 4px; /* Further reduce padding */
    }
    .reports-container {
      gap: 30px;
  }
}

/* Style for the data grid */
.page-content .tutorship-pending-data-grid  {
    width: 100%; /* Ensure the table takes up the full width of its container */
    border-collapse: collapse;
    font-size: 16px; /* Adjust font size for readability */
    font-family: Arial, sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    direction: rtl; /* Align the grid to the right for right-to-left languages */
    table-layout: auto; /* Allow columns to adjust based on content */
}

.page-content .tutorship-pending-data-grid th,
.page-content .tutorship-pending-data-grid td {
    border: 1px solid #ddd;
    padding: 8px; /* Adjust padding for smaller screens */
    text-align: right;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
}

.page-content .tutorship-pending-data-grid th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 30px; /* Adjust font size for headers */
}

.page-content .tutorship-pending-data-grid td {
    position: relative;
    /* Ensure the cell does not block interaction */
    z-index: 0;
    /* Keep the cell behind the checkbox */
    color: #333;
    font-size: 20px; /* Adjust font size for table data */
    font-weight: normal;
}

/* Ensure the checkbox is clickable */
.page-content .tutorship-pending-data-grid input[type="checkbox"] {
    width: 20px;
    /* Adjust checkbox size */
    height: 20px;
    /* Adjust checkbox size */
    cursor: pointer;
    /* Pointer cursor for checkboxes */
    margin-right: 10px;
    /* Space between checkbox and label */
    position: relative;
    /* Ensure the checkbox is positioned correctly */
    z-index: 1;
    /* Bring the checkbox to the front */
}

.page-content .tutorship-pending-data-grid label {
    cursor: pointer;
}

.min-grade-container {
    display: flex;
    flex-direction: column; /* Stack the label, slider, and value vertically */
    gap: 8px; /* Add spacing between elements */
    margin-left: 20px; /* Add spacing to the left of the container */
    margin-top: 16px; /* Add spacing above the container */
  }
  
  .min-grade-slider {
    width: 100%;
    max-width: 200px; /* Limit the width for better alignment */
    appearance: none; /* Remove default browser styles */
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s ease;
  }
  
  .min-grade-slider:hover {
    background: #ccc; /* Change background on hover */
  }
  
  .min-grade-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4caf50; /* Green thumb */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .min-grade-slider::-webkit-slider-thumb:hover {
    background: #45a049; /* Darker green on hover */
  }
  
  .min-grade-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .min-grade-slider::-moz-range-thumb:hover {
    background: #45a049;
  }
  
  .actions {
    display: flex;
    flex-wrap: wrap; /* Ensure buttons and sliders wrap if needed */
    gap: 16px; /* Add spacing between elements */
    padding-left: 20px; /* Add padding to separate the "Refresh" button */
  }

  .distance-slider + span {
    margin-left: 20px; /* Add spacing after the slider's span */
  }
/* Main container for the report */
.families-waiting-report-main-content {
  min-height: 100vh;
  background: #f7f7fa;
  display: flex;
  flex-direction: row;
}

/* Page content area */
.families-tutorship-stats-page-content {
  flex: 1;
  margin-top: 180px;
}

/* Container for the filter and actions */
.filter-create-container {
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Loader styling */
.loader {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-top: 40px;
}

/* Back to reports button container */
.families-tutorship-stats-back-to-reports {
  display: flex;
  justify-content: flex-start;
  /* Align to the right */

  /* Add some spacing above */
  margin-right: 500px;
  /* Slightly move it to the left from the edge */
}

.families-tutorship-stats-back-button {
  background-color: #007bff;
  /* Blue background */
  color: white;
  /* White text */
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 24px;
  /* Increase font size */
  cursor: pointer;
  transition: background-color 0.3s ease;
  direction: rtl;
  z-index: 2;
  /* Ensure proper alignment in RTL */
}

.families-tutorship-stats-back-button:hover {
  background-color: #0056b3;
  /* Darker blue on hover */
}


/* Graph container */
.families-stats-graph-container {
  margin: 0 auto;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 32px;
  transform: scale(0.8);
}

.families-stats-graph-container h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  color: #333;
}

/* No permission message */
.no-permission {
  margin: 60px auto;
  text-align: center;
  color: #c62828;
  font-size: 1.2rem;
}
.pending-tutors-report-main-content {
  min-height: 100vh;
  background: #f7f7fa;
  display: flex;
  flex-direction: row;
}

/* Page content area */
.pending-tutors-stats-page-content {
  flex: 1;
  margin-top: 200px;
}

/* Container for the filter and actions */
.filter-create-container {
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Loader styling */
.loader {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-top: 40px;
}

/* Back to reports button container */
.pending-tutors-stats-back-to-reports {
  display: flex;
  justify-content: flex-start;
  /* Align to the right */
  margin-right: 500px;
  margin-top: 20px;
  /* Slightly move it to the left from the edge */
}

.pending-tutors-stats-back-button {
  background-color: #007bff;
  /* Blue background */
  color: white;
  /* White text */
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 24px;
  /* Increase font size */
  cursor: pointer;
  transition: background-color 0.3s ease;
  direction: rtl;
  z-index: 2;
  /* Ensure proper alignment in RTL */
}

.pending-tutors-stats-back-button:hover {
  background-color: #0056b3;
  /* Darker blue on hover */
}


/* Graph container */
.pending-tutors-stats-graph-container {
  margin: 0 auto;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 32px;
  transform: scale(0.8);
}

.pending-tutors-stats-graph-container h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  color: #333;
}

/* No permission message */
.no-permission {
  margin: 60px auto;
  text-align: center;
  color: #c62828;
  font-size: 1.2rem;
}
.roles-spread-report-main-content {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.roles-spread-report-page-content {
  flex: 1;
  padding-top: 200px;
}

.roles-spread-graph-container {
  margin: 0 auto;
  max-width: 600px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px;
  transform: scale(0.9);
}
@media (max-width: 1800px) {
  .roles-spread-graph-container {
    transform: scale(1.0);
  }
}

.roles-spread-back-to-reports {
    display: flex;
    justify-content: flex-start;
    /* Align to the right */
    
    /* Add some spacing above */
    margin-right: 500px;
    margin-top: 150px;
    /* Slightly move it to the left from the edge */
}

.roles-spread-back-button {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 16px;
}
/* Registration Page Container */
.registration-page {
  min-height: 100vh;
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.15) 0%,
    rgba(59, 130, 246, 0.15) 25%,
    rgba(16, 185, 129, 0.15) 50%,
    rgba(251, 146, 60, 0.15) 75%,
    rgba(236, 72, 153, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.regisration-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Main Registration Form Container */
.registration-form {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.9) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.3),
    0 10px 30px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.registration-form h2 {
    text-align: center;
    margin-bottom: 35px;
    margin-top: -10px;
    font-size: 56px;
    font-weight: 700;
    font-family: Rubik;
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 1) 0%,
      rgba(139, 92, 246, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Button styles */
.registration-form button {
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.95) 0%,
      rgba(139, 92, 246, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    font-family: Rubik;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
      0 8px 25px rgba(99, 102, 241, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.registration-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.registration-form button:hover::before {
  left: 100%;
}

.registration-form button:hover {
    background: linear-gradient(135deg, 
      rgba(139, 92, 246, 1) 0%,
      rgba(168, 85, 247, 1) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
      0 12px 35px rgba(99, 102, 241, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.registration-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 22px;
    font-family: Rubik;
    color: #333;
    letter-spacing: 0.3px;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 10px;
    background: linear-gradient(135deg, 
      rgba(240, 242, 245, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    font-size: 20px;
    font-family: Rubik;
    transition: all 0.3s ease;
    box-shadow: 
      0 4px 12px rgba(102, 126, 234, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #333;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.9);
    background: linear-gradient(135deg, 
      rgba(240, 242, 245, 0.95) 0%,
      rgba(255, 255, 255, 1) 100%);
    box-shadow: 
      0 6px 16px rgba(102, 126, 234, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.registration-form textarea.no-resize {
    resize: none;
    max-height: 120px;
    overflow-y: auto;
}

.registration-form input.error,
.registration-form select.error,
.registration-form textarea.error {
    border-color: rgba(239, 68, 68, 0.8) !important;
    background: linear-gradient(135deg, 
      rgba(254, 242, 242, 0.9) 0%,
      rgba(254, 226, 226, 0.95) 100%) !important;

}

.error-message {
    color: #dc3545;
    font-size: 16px;
    margin-top: -18px;
    margin-bottom: 14px;
    display: block;
    direction: rtl;
    font-family: Rubik;
    font-weight: 500;
}

.registration-form .error-message {
    font-size: 20px;
    margin-top: 2px;
}

.error-message::before {
    content: "⚠ ";
    margin-right: 5px;
}

.error-message-inline {
    color: #dc3545;
    font-size: 16px !important;
    margin-top: -18px;
    margin-bottom: 14px;
    display: block;
    direction: rtl;
    font-family: Rubik;
    font-weight: 500;
}

.form-columns {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 300px;
}

/* Range input styling */
.registration-form input[type="range"] {
    width: 100%;
    height: 8px;
    margin-bottom: 20px;
    accent-color: #667eea;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, 
      rgba(240, 242, 245, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 100%);
    border: none;
    border-radius: 10px;
    outline: none;
}

.registration-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
      rgba(102, 126, 234, 1) 0%,
      rgba(139, 92, 246, 1) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.registration-form input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
    transform: scale(1.1);
}

.registration-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
      rgba(102, 126, 234, 1) 0%,
      rgba(139, 92, 246, 1) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

/* Phone input container */
.phone-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 20px;
}

.phone-container select {
    width: 120px;
    padding: 10px 14px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 8px;
    font-size: 18px;
    font-family: Rubik;
    background: linear-gradient(135deg, 
      rgba(240, 242, 245, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-container select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.9);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.phone-container .dash {
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

.phone-container input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 8px;
    font-size: 18px;
    font-family: Rubik;
    background: linear-gradient(135deg, 
      rgba(240, 242, 245, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    transition: all 0.3s ease;
}

.phone-container input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.9);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.phone-container input.error,
.phone-container select.error {
    border-color: rgba(239, 68, 68, 0.8) !important;
}

/* Switch container styles */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    border: none;
}

/* Custom switch styles - target the wrapper */
.switch-container .custom-switch {
    filter: drop-shadow(0 4px 15px rgba(71, 85, 105, 0.15)) !important;
}

/* Style the handle - keep it circular */
.switch-container .custom-switch .react-switch-handle {
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 
      0 4px 16px rgba(148, 163, 184, 0.3),
      inset 0 -1px 3px rgba(0, 0, 0, 0.05),
      inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

/* ON state handle shadow */
.switch-container .custom-switch input:checked ~ .react-switch-handle {
    background: #ffffff !important;
    box-shadow: 
      0 4px 16px rgba(124, 58, 237, 0.4),
      inset 0 -1px 3px rgba(0, 0, 0, 0.05),
      inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

/* Text inside the switch */
.switch-container .switch-label {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: Rubik;
    letter-spacing: 0.5px;
}

/* Remove stickiness */
.switch-container .react-switch:active .react-switch-handle {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Toast notification styling */
.registration-toast .Toastify__toast {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  font-family: Rubik;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 0;
}

.registration-toast-body-inner {
  white-space: pre-line;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 500;
}

/* TOTP Verification Section */
.totp-verification-section {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.9) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.3),
    0 10px 30px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.totp-verification-section p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
  font-family: Rubik;
  font-weight: 500;
}

.totp-input-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.totp-input-box {
  width: 70px;
  height: 70px;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 10px;
  outline: none;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
  font-family: 'Courier New', monospace;
}

.totp-input-box:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.95) 0%,
    rgba(255, 255, 255, 1) 100%);
}

.totp-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.totp-buttons button {
  padding: 14px 40px;
  font-size: 20px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%,
    rgba(139, 92, 246, 0.95) 100%);
  color: white;
  font-family: Rubik;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.totp-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.totp-buttons button:hover::before {
  left: 100%;
}

.totp-buttons button:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 1) 0%,
    rgba(168, 85, 247, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.totp-buttons button:last-child {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%,
    rgba(139, 92, 246, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.totp-buttons button:last-child:hover {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 1) 0%,
    rgba(139, 92, 246, 1) 100%);
  box-shadow: 
    0 10px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.families-grid-wrapper {
  perspective: 2000px;
  width: 1600px;
  height: 480px;
  position: relative;
  margin-left: 250px;
}


.families-grid-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.disabled-cell {
  color: #888;
  font-style: italic;
  display: inline-block;
  min-width: 200px; /* keep same size as editable */
}

.flip-wrapper {
  position: relative;
  width: 1600px;
  height: 480px;
  margin-right: 250px;
  margin-top: 350px;
  perspective: 2000px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 20px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.2),
    0 8px 25px rgba(99, 102, 241, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.flip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  position: relative;
}

.flip-inner.rotating {
  transform: rotateX(120deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  pointer-events: none; 
}

.flip-front {
  transform: rotateX(0deg);
}

.flip-back {
  transform: rotateX(0deg);
}

.flip-front.active,
.flip-back.active {
  pointer-events: auto;   /* 🔑 only the active face is clickable */
  z-index: 2;             /* bring it above the other */
}

.families-main-content .search-bar {
  margin-bottom: 1px;
}

/* Search bar with beautiful blue glassmorphism - matches InitialFamilyData style */
.search-bar,
input.search-bar {
  padding: 10px 15px;
  width: 300px;
  height: 30px;
  border: 3px solid rgba(59, 130, 246, 0.75);
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.8) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-radius: 16px;
  font-size: 24px;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

.search-bar:focus,
input.search-bar:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    0 0 0 3px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px) scale(1.02);
}

.search-bar::placeholder,
input.search-bar::placeholder {
  color: rgba(59, 130, 246, 0.5);
  font-weight: 500;
}

/* Tutorship Status Filter - matching families page status filter style */
.tutorship-status-filter {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.95) 0%,
    rgba(22, 163, 74, 0.95) 100%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white !important;
  padding: 12px 24px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 6px 20px rgba(34, 197, 94, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  appearance: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  line-height: 1;
}

.tutorship-status-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.tutorship-status-filter:hover::before {
  left: 100%;
}

.tutorship-status-filter:hover {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 1) 0%,
    rgba(22, 163, 74, 1) 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 8px 30px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.tutorship-status-filter:focus {
  outline: none;
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 1) 0%,
    rgba(22, 163, 74, 1) 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 8px 30px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.tutorship-status-filter option {
  padding: 10px;
  font-size: 16px;
  background-color: white;
  color: #1f2937;
}
/* Audit Log Page Styles - Based on Families.css Structure */

.audit-log-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-top: 200px;
}

.audit-log-container {
  flex: unset !important;
  margin-top: 150px !important;
  border: 1px solid #ddd;
  background-color: white;
  padding: 0;
  box-sizing: border-box;
  margin-bottom: 400px;
  width: 95%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 60%;
}

@media (max-width: 1000px) {
  .audit-log-container {
    margin-top: 300px;
    margin-bottom: 200px;
    margin-right: 200px;
  }
}

/* Filter Create Container - Layout matching Families.js */
.audit-log-main-content .filter-create-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  position: absolute;
  top: 400;
  right: 30;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.9) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.2),
    0 10px 30px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 100;
}

/* Search Bar Group */
.audit-log-search-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.audit-log-search-bar {
  padding: 0 10px;
  width: 250px;
  height: 50px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  font-size: 24px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
}

.audit-log-search-bar:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Filter Group for Actions and Dates */
.audit-log-filters {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  font-size: 24px;
}

.audit-log-filters .filter-select,
.audit-log-filters .date-input {
  padding: 8px 12px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  font-size: 24px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #333;
  width: 180px;
}

.filter-select {
  width: 300px;
}

.audit-log-filters .filter-select:focus,
.audit-log-filters .date-input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.9);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Action Buttons Container */
.audit-log-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.audit-log-actions .refresh-button,
.audit-log-actions .select-all-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.audit-log-actions .select-all-button {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.95) 0%,
    rgba(5, 150, 105, 0.95) 100%);
  box-shadow: 
    0 6px 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.refresh-button::before,
.select-all-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.refresh-button:hover::before,
.select-all-button:hover::before {
  left: 100%;
}

.audit-log-actions .refresh-button:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 1) 0%,
    rgba(37, 99, 235, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.select-all-button:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 1) 0%,
    rgba(5, 150, 105, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.audit-log-actions .export-button {
  padding: 8px;
  background: linear-gradient(135deg, 
    rgba(240, 242, 245, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 2px solid rgba(102, 126, 234, 0.6);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.audit-log-actions .export-button:hover {
  border-color: rgba(102, 126, 234, 0.9);
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 
    0 6px 16px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.export-button img {
  width: 60px;
  height: 60px;
}


/* Data Grid Section */
.audit-log-grid-container {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.audit-log-data-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto !important;
}

.audit-log-data-grid th,
.audit-log-data-grid td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: right;
  font-size: 24px;
}

.audit-log-data-grid th {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  position: sticky !important;
  top: 0;
  z-index: 2;
  font-size: 30px;
}

.audit-log-data-grid tr:nth-child(even) {
  background-color: #f9f9f9;
}

.audit-log-data-grid tr:hover {
  background-color: #f1f1f1;
}

.timestamp-column {
  width: 50px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.description-column {
  flex: 1;
  word-break: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
  width: 80%;
  text-align: center !important;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 15px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.2s;
}

.audit-checkbox {
  width: 20px;
  height: 20px;
}
.pagination button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border-color: #007bff;
}

.pagination button:hover:not(:disabled) {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.pagination button:disabled {
  background-color: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
}

.pagination-arrow {
  font-size: 24px;
  font-weight: bold;
}

/* No Data Message */
.no-data {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 18px;
  font-weight: 500;
}

/* No Permission Message */
.no-permission {
  padding: 60px 20px;
  text-align: center;
  color: #dc3545;
}

.no-permission h2 {
  font-size: 28px;
  margin: 0;
  font-weight: 600;
}

/* Loader */
.loader {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1800px) {
  .audit-log-container {
    margin-top: 100px;
    margin-bottom: 200px;
    margin-right: 200px;
  }
}

@media (max-width: 1200px) {
  .audit-log-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-log-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select,
  .date-input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .filter-create-container {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-log-search-bar {
    width: 100%;
  }

  .audit-log-filters {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select,
  .date-input {
    width: 100%;
  }

  .audit-log-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .audit-log-data-grid {
    font-size: 14px;
  }

  .audit-log-data-grid th,
  .audit-log-data-grid td {
    padding: 10px;
  }

  .timestamp-column {
    width: 120px;
  }
}


/* Dashboard Styles */
.dashboard-container {
  margin-top: 220px;
  /* Below InnerPageHeader with more space */
  margin-right: 420px;
  /* More space from sidebar on the right (RTL) */
  padding: 20px 20px 20px 60px;
  /* More left padding */
  background: #f5f7fa;
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  zoom: 0.9;
  /* Scale down content a bit */
}

.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.dashboard-header h1 {
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.dashboard-header-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
}

.dashboard-header-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.btn {
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.95) 0%,
      rgba(37, 99, 235, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 1) 0%,
      rgba(37, 99, 235, 1) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-refresh,
.btn-export {
  border: none;
}

/* Loading State */
.dashboard-loading {
  margin-top: 120px;
  margin-right: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.dashboard-error {
  margin-top: 120px;
  margin-right: 320px;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-error p {
  color: #f44336;
  font-size: 18px;
  margin-bottom: 20px;
}

.dashboard-error button {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

/* KPI Section */
.kpi-section {
  margin-bottom: 40px;
}

.kpi-section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.kpi-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-5px);
}

.kpi-label {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 10px;
  font-weight: 600;
}

.kpi-value {
  font-size: 48px;
  font-weight: 700;
}

/* Table Section */
.table-section {
  margin-top: 40px;
}

.table-section h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.table-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  /* Add space before AI section */
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.table-card th {
  padding: 20px;
  text-align: right;
  font-weight: 700;
  font-size: 20px;
}

.table-card td {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 18px;
}

.table-card tbody tr:hover {
  background: #f9f9f9;
}

.table-card tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-header h1 {
    font-size: 24px;
  }

  .kpi-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    padding: 10px;
  }
}

/* Dashboard Charts Styles */
.charts-section {
  margin-bottom: 40px;
}

.charts-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.chart-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.chart-card:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.chart-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

/* Timeframe Selector */
.timeframe-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.timeframe-btn {
  background: #f0f0f0;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.timeframe-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.timeframe-btn:hover {
  background: #e0e0e0;
}

.timeframe-btn.active:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* New Families Card */
.new-families-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-number {
  font-size: 72px;
  font-weight: 700;
}

.subtitle {
  font-size: 18px;
  margin-top: 15px;
  opacity: 0.9;
}

.growth {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
}

/* Data Visualization Section */
.data-viz-section {
  margin-top: 50px;
}

.data-viz-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.full-width-chart {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.full-width-chart h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.chart-container-large {
  position: relative;
  height: 400px;
  width: 100%;
}

/* Badge */
.new-badge {
  background: #ff6b6b;
  color: white;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chart-container {
    height: 250px;
  }

  .chart-container-large {
    height: 300px;
  }

  .new-families-card {
    height: 250px;
    padding: 30px;
  }

  .big-number {
    font-size: 48px;
  }
}

/* AI Chat Bot Styles */

.ai-chat-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 35px rgba(102, 126, 234, 0.5);
}

.ai-chat-window {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 400px;
  height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}

.ai-chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-icon {
  font-size: 24px;
}

.ai-chat-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f5f7fa;
  direction: rtl;
}

.ai-chat-message {
  margin-bottom: 15px;
  display: flex;
}

.ai-chat-message.user {
  justify-content: flex-start;
}

.ai-chat-message.bot {
  justify-content: flex-end;
}

.ai-chat-message-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chat-message.user .ai-chat-message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-chat-message.bot .ai-chat-message-bubble {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-typing-indicator {
  display: flex;
  gap: 5px;
  padding: 8px 0;
}

.ai-typing-indicator span {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.ai-typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.ai-chat-input-container {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 15px;
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
  direction: rtl;
}

.ai-chat-input:focus {
  outline: none;
  border-color: #667eea;
}

.ai-chat-send {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Download button/link styling */
.download-video-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-decoration: none !important;
}

.download-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white !important;
}

.download-video-btn:active {
  transform: translateY(0);
}

/* Scrollbar Styles */
.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-chat-window {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    bottom: 80px;
  }
  
  .ai-chat-toggle {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .ai-chat-toggle:hover {
    transform: translateX(-50%) scale(1.1);
  }
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.bot-message-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-style: italic;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #667eea;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.loading-dots {
  display: inline-flex;
  gap: 3px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #667eea;
  animation: pulse 1.4s infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

body {
  font-family: Rubik, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Stack elements vertically */
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Center the content vertically */
  flex-grow: 1;
  /* Allow it to take up available space */
  margin-top: 300px;
  /* Add some spacing below the fixed header */
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.header img {
  width: 150px;
  margin-bottom: 20px;
}

@font-face {
  font-family: 'Rubik';
  src: url(/fonts/Rubik-VariableFont_wght.ttf) format('truetype');
  font-weight: 400;
  /* Adjust weight if needed */
  font-style: normal;
  /* Adjust style if needed */
}

.login-main-content .amit-title {
  display: inline-block;
  /* Ensures it behaves like a block element */
  transform: rotateX(-15deg);
  transform-origin: center top;
  letter-spacing: 3px;
  text-align: center;
  /* Centers the text horizontally */
  font-size: 120px;
  /* Adjust font size as needed */
  font-weight: bold;
  /* Make the text bold */
  margin-bottom: 52px;
  /* Add spacing below the title */
  color: #1da821;
  /* Adjust text color */
  font-family: 'Rubik', sans-serif;
  /* Use the specified font */
}

.login-main-content .curved-text {
  font-size: 48px;
  fill: #1da821;
  font-family: 'Rubik', sans-serif;
  font-weight: bold;
}

.login-main-content h1 {
  margin-bottom: 20px;
}

.login-main-content img {
  width: 150px;
  margin-bottom: 20px;
}

.login-main-content input[type="text"],
.login-main-content input[type="password"] {
  width: 100%;
  padding: 15px;
  /* Increase padding for inputs */
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.login-main-content button {
  width: 100%;
  padding: 15px;
  /* Increase padding for buttons */
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.login-main-content button:hover {
  background-color: #45a049;
}

.login-main-content .google-login {
  background-color: #dd4b39;
}

.login-main-content .google-login:hover {
  background-color: #c23321;
}

.top-left {
  position: fixed;
  /* Keeps the element always visible in the top-left corner */
  top: 10px;
  /* Distance from the top of the viewport */
  left: 10px;
  /* Distance from the left of the viewport */
  display: flex;
  align-items: center;
  z-index: 1001;
  /* Ensure it appears above other elements */
  padding: 5px;
  /* Optional: Add padding for better spacing */
  border-radius: 5px;
  /* Optional: Add rounded corners */

}

.top-left img.amit {
  width: 100px;
  /* Adjust the width as needed */
  height: 150px;
  /* Maintain aspect ratio */
  object-fit: cover;

}

.top-left .quote {
  font-size: 18px;
  /* Adjust the font size as needed */
  margin-right: 10px;
}

.top-left img.qr-code {
  width: 90px;
  /* Adjust the width as needed */
  height: auto;
  /* Maintain aspect ratio */
}

.login-main-content input[type="text"],
.login-main-content input[type="password"],
.login-main-content submit,
.login-main-content google-btn,
.login-main-content span,
.login-main-content button {
  font-size: 36px;
  font-family: Rubik, sans-serif;
  /* Increase font size for better readability */
}

.totp-verification-section.login-main-content button {
  width: 50% !important;
}

.login-main-content span,
.login-main-content .login-error,
.login-main-content .login-success {
  font-family: Rubik, sans-serif;
  align-items: center;
  text-align: center;
  display: block;
  margin: 10px 0;
  /* Increase font size for better readability */
}

.error {
  color: red;
  margin-top: 10px;
  font-size: 24px;
}

.success {
  color: green;
  margin-top: 10px;
  font-size: 24px;
}

.login-error {
  color: red;
  margin-top: 10px;
  font-size: 24px;
}

.login-success {
  color: green;
  margin-top: 10px;
  font-size: 24px;
}

.user-roles-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.95em;
  color: #444;
}

.user-role {
  background: #f3f3f3;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 2px;
  font-size: 22px;
}

.login-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.google-btn {
  background-color: #a929db !important;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.google-btn:hover {
  background-color: #c23321;
}

.google-icon {
  font-weight: bold;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
}

.totp-input-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  direction: ltr;
}

/* Update your .totp-digit-input in styles.css */
.totp-digit-input {
  width: 60px !important;  /* Use !important to override other rules */
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  background-color: white;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;  /* Add this to prevent padding from affecting width */
  min-width: 60px;  /* Ensure minimum width */
  max-width: 60px;  /* Ensure maximum width */
}

.totp-digit-input:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  transform: scale(1.05);
}

.totp-digit-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}
