/* Global Styles */
body{
    background-color: #f9f9fb;
}

.btn-green{
    background-color: #70ad38;
    color: white;
    font-weight: bold;
}

.btn-green:hover{
    background-color: #2e9c3f;
    color: white;
    font-weight: bold;
}

#clientViewTabs .nav-link i {
  color: #70ad38;
}

#clientViewTabs .nav-link span {
  color: #000;
}

#userTab .nav-link i{
  color: #70ad38;
}

#userTab .nav-link{
  color: #000;
}


/* LOGIN LOGIN LOGIN */
/* Image container and styling of Login */
.image-container {
    width: 100%;
    height: 100%; /* Fill the entire height of parent */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767.98px) {
    .image-container {
        display: none;
    }
}


/* style for the message */
#flashMessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border-bottom: 2px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-bottom: 2px solid #f5c6cb;
}

/* style for modal */
.modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 999;
      display: flex;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s ease-out;
    }

    .modal-box {
      background-color: white;
      padding: 2rem;
      border-radius: 12px;
      width: 90%;
      max-width: 600px;
      position: relative;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      max-height: 85vh;
      overflow-y: auto;
      animation: slideIn 0.3s ease-out;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #f0f0f0;
    }

    .modal-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #1a202c;
    }

    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #f3f4f6;
        border: none;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease; /* Increased for smoother animations */
        color: #334155;
        font-size: 1.5rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        overflow: hidden; /* For ripple effect */
    }
    
    .modal-close:hover {
        background-color: #e5e7eb;
        color: #1e293b;
        transform: scale(1.1) rotate(90deg); /* Added rotation */
    }
    
    .modal-close:active {
        transform: scale(0.95) rotate(90deg); /* Scale down when clicked */
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    
    .modal-close:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    }
    
    /* X icon with animation */
    .modal-close::before,
    .modal-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: currentColor;
        transition: all 0.3s ease;
    }
    
    .modal-close::before {
        transform: rotate(45deg);
    }
    
    .modal-close::after {
        transform: rotate(-45deg);
    }
    
    .modal-close:hover::before {
        transform: rotate(45deg) scaleX(1.2);
    }
    
    .modal-close:hover::after {
        transform: rotate(-45deg) scaleX(1.2);
    }
    
    /* Ripple effect */
    .modal-close .ripple {
        position: absolute;
        border-radius: 50%;
        background-color: rgba(156, 163, 175, 0.4);
        transform: scale(0);
        animation: ripple 0.6s linear;
    }
    
    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }
    
    /* Pulse animation on load */
    .modal-close.pulse {
        animation: pulse 1.5s ease-in-out;
    }
    
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
        100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    }

    .modal-form label {
      display: block;
      margin-top: 1rem;
      font-weight: 500;
      color: #374151;
      font-size: 0.9rem;
      margin-bottom: 0.25rem;
    }

    .modal-form input,
    .modal-form select,
    .modal-form textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      margin-top: 0.25rem;
      border-radius: 0.5rem;
      border: 1px solid #d1d5db;
      background-color: #f9fafb;
      transition: all 0.2s ease;
      font-size: 1rem;
    }

    .modal-form input:focus,
    .modal-form select:focus,
    .modal-form textarea:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
      background-color: #fff;
    }

    /* File input styling */
    .file-input-container {
      position: relative;
      margin-top: 0.25rem;
    }

    .input-logo {
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      border: 1px solid #d1d5db;
      background-color: #f9fafb;
      transition: all 0.2s ease;
      font-size: 1rem;
      cursor: pointer;
    }

    .input-logo:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    }

    .input-logo::-webkit-file-upload-button {
      background-color: #e5e7eb;
      color: #4b5563;
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 0.375rem;
      margin-right: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .input-logo::-webkit-file-upload-button:hover {
      background-color: #d1d5db;
    }

    .modal-form .btn-submit {
      margin-top: 1.5rem;
      padding: 0.75rem 1.5rem;
      background-color: #3b82f6;
      color: white;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.2s ease;
      width: 100%;
    }

    .modal-form .btn-submit:hover {
      background-color: #2563eb;
      transform: translateY(-1px);
    }

    .modal-form .btn-submit:active {
      transform: translateY(1px);
    }

    .modal-form select:disabled {
      background-color: #f3f4f6;
      color: #6b7280;
      cursor: not-allowed;
      border-color: #e5e7eb;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    /* Custom scrollbar */
    .modal-box::-webkit-scrollbar {
      width: 8px;
    }

    .modal-box::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    .modal-box::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 10px;
    }

    .modal-box::-webkit-scrollbar-thumb:hover {
      background: #a1a1a1;
    }

    /* Responsive adjustments */
    @media (max-width: 640px) {
      .modal-box {
        padding: 1.5rem;
        width: 95%;
      }
    }
    
    /* Developers Modal */
    .modal-static-field {
      background-color: #f9f9f9;
      padding: 6px 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      margin-bottom: 10px;
      font-size: 14px;
    }
    .mb-2 {
      margin-bottom: 0.75rem;
    }
    .text-center {
      text-align: center;
    }


/* calendar styles */
.calendar-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1rem;
}

.card-header.custom-green {
    background-color: #70ad38 !important;
    color: #fff;
}

/* ---------------------------- */
/* Modal Animation Enhancement  */
/* ---------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-box {
  animation: fadeIn 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

/* ---------------------------- */
/* Responsive Adjustments       */
/* ---------------------------- */
@media (max-width: 480px) {
  .step-indicator {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .step.active::after {
    display: none;
  }

  .modal-box {
    width: 90%;
    padding: 20px;
  }

  .modal-close {
    top: 8px;
    right: 12px;
  }
}
