/* Global Styles */
/* Import Roboto from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    background-color: #f9f9fb;
    font-family: 'Roboto', sans-serif;
    color: #222;
}

.btn-brand {
    background-color: #f6a623;
    color: white;
    font-weight: bold;
}

.btn-brand:hover {
    background-color: #d48806; /* darker shade for hover */
    color: white;
    font-weight: bold;
}

.btn-2ndbrand {
    background-color: #f2f2f2;
    color: black;
    border: 1px solid #ddd; /* optional for better contrast */
}

.btn-2ndbrand:hover {
    background-color: #e0e0e0; /* slightly darker on hover */
    color: black;
    font-weight: bold;
}

.search-btn {
  background-color: #f6a623;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: 0.3s;
}

.search-btn:hover {
  background-color: #d48806; /* darker orange */
}

.search-btn:active,
.search-btn:focus {
  background-color: #b36b00; /* deepest shade */
}


#clientViewTabs .nav-link i {
  color: #70ad38;
}

#clientViewTabs .nav-link span {
  color: #000;
}

#userTab .nav-link i{
  color: #70ad38;
}

#userTab .nav-link{
  color: #000;
}

/* Navbar base */
.navbar {
  background-color: white;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.navbar.solid {
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.navbar .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.3s;
  color: #000;
}
.navbar .nav-link:hover {
  color: #f6a623 !important;
}

/* Profile image styling */
.navbar .dropdown-toggle img {
  object-fit: cover;
}

/* Mobile dropdown fix */
@media (max-width: 991.98px) {
  .dropdown {
    position: static !important;
  }
  .dropdown-menu {
    position: absolute;
    right: 0; /* keep it aligned under avatar */
  }
}


/* Footer */
:root{
--footer-bg: #F2F2F2;       
--footer-bottom: #222222; 
--footer-text: #1a1a1a;
--footer-link: #2b2b2b;
--footer-divider: #DEDEDE;
--footer-accent: #F0B12F;  
}

.footer{ background: var(--footer-bg) !important; color: var(--footer-text); }
.footer h6{
color: var(--footer-text);
text-transform: uppercase;
font-weight: 700;
margin-bottom: 1rem;
letter-spacing:.3px;
}
.footer a{ color: var(--footer-link); text-decoration:none; transition:color .2s; }
.footer a:hover{ color: var(--footer-accent); }

/* Quick Links & Resources – with dividers */
.footer .col-md-3:nth-child(2) ul li a,
.footer .col-md-3:nth-child(3) ul li a{
display:block; padding:10px 0; line-height:1.6;
border-bottom:1px solid var(--footer-divider);
}
.footer .col-md-3:nth-child(2) ul li:last-child a,
.footer .col-md-3:nth-child(3) ul li:last-child a{ border-bottom:none; }

/* Thin line above bottom bar */
.footer .footer-top{ border-bottom:1px solid var(--footer-divider); }

.footer-bottom{
background: var(--footer-bottom) !important;
color:#eee; padding:12px 0; text-align:center; font-size:.9rem;
}

.footer .geo i{ color: var(--footer-accent); }

.footer-logo {
max-width: 260px;
height: auto;
}


/* 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: #f6a623;
      color: white;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s ease;
      width: 100%;
    }
    
    .modal-form .btn-submit:hover {
      background-color: #d48806;
      transform: translateY(-1px);
    }
    
    .modal-form .btn-submit:active {
      background-color: #b36b00; 
      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;
    }


/* Side Bar */
.sb a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    transition: background 0.2s ease;
}

.sb a i {
    color: #888;
    font-size: 1rem;
}

.sb a:hover {
    background-color: rgba(246, 166, 35, 0.15);
    color: #000;
}

.sb a.active {
    color: white;
    background-color: #f6a623;
    font-weight: 500;
}

.sb a.active i {
    color: white;
}

#sidebar {
    transition: width 0.3s ease;
    overflow: hidden;
    position: relative;
}

#sidebar.collapsed {
    width: 80px !important;
}

#sidebar.collapsed .sb a span {
    display: none;
}

#sidebar.collapsed .sb a {
    justify-content: center;
    padding: 8px 0;
    position: relative;
}

.floating-label {
    position: fixed;
    left: 80px;
    transform: translateY(-50%);
    background: rgba(246, 166, 35, 0.15);
    color: #000;
    padding: 8px 20px;
    white-space: nowrap;
    z-index: 1000;
    min-width: 140px;
}

.floating-label-active {
    background-color: #f6a623;
    color: white;
    font-weight: 500;
    min-width: 140px;
}

/* 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;
  }
}
