/* width */
::-webkit-scrollbar {
  width: 8px; /* Increased width to accommodate padding */
}

/* Track */
::-webkit-scrollbar-track {
  background: #000000;
  padding: 2px; /* Add padding to create space */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #ffb52b;
  border: 2px solid #000000; /* Creates visual padding/space */
  border-radius: 4px; /* Optional: rounded corners */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
  border: 2px solid #000000; /* Maintain padding on hover */
}
.display-none {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.sidebar-transition {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .sidebar-mobile {
    transform: translateX(-100%);
  }

  .sidebar-mobile.open {
    transform: translateX(0);
  }
}

/* =================================================== */
/* CHAT SECTION(AI) */
/* =================================================== */

/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;

}

/* Chat Toggle Button */
.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
}

.chat-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.chat-toggle:hover::before {
  left: 100%;
}

.toggle-icon {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.toggle-icon.rotate {
  transform: rotate(45deg);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  margin: 5px;
  width: 380px;
  height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffffff, #f8d1bc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bot-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.bot-status {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.chat-messages {
  height: 380px; /* Changed from 320px to 380px */
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.message.bot {
  background: #f8fafc;
  color: #334155;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 6px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Chat Input */
.chat-input-container {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  resize: none;
  max-height: 60px;
  min-height: 40px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chat-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.send-button {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 480px) {
  .chatbot-container {
    bottom: 10px;
    right: 10px;
  }

  .chat-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 50px;
    right: -10px;
  }

  .chat-messages {
    height: calc(100vh - 340px); /* Changed from 280px to 340px */
  }
}

/* Welcome Message */
.welcome-message {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 14px;
}

.welcome-message i {
  font-size: 32px;
  color: #f97316;
  margin-bottom: 10px;
}

/* =================================================== */
/* END OF CHAT SECTION(AI) */
/* =================================================== */


/* =================================================== */
/* APPOINTMENT FORM & QUICK ACTIONS */
/* =================================================== */

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 0 5px;
}

.quick-action-btn {
    background: white;
    border: 2px solid #f97316;
    color: #f97316;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: fit-content;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

.quick-action-btn i {
    margin-right: 5px;
    font-size: 13px;
}

/* Appointment Form */
.appointment-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    animation: slideIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.appointment-form h4 {
    color: #f97316;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.appointment-form h4 i {
    font-size: 18px;
}

/* Form Groups */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.form-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-btn.submit {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.form-btn.submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.form-btn.submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.form-btn.cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.form-btn i {
    font-size: 14px;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .quick-actions {
        gap: 6px;
    }

    .quick-action-btn {
        font-size: 12px;
        padding: 7px 12px;
        min-width: 100px;
    }

    .quick-action-btn i {
        font-size: 12px;
        margin-right: 4px;
    }

    .appointment-form {
        padding: 12px;
        margin: 8px 0;
    }

    .appointment-form h4 {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .form-group textarea {
        min-height: 70px;
    }

    .form-btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .form-btn i {
        font-size: 12px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .quick-actions {
        gap: 5px;
    }

    .quick-action-btn {
        font-size: 11px;
        padding: 6px 10px;
        min-width: 90px;
    }

    .appointment-form {
        padding: 10px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 7px 9px;
        font-size: 12px;
    }

    .form-group textarea {
        min-height: 60px;
    }
}



/* =================================================== */
/* SLIDES EFFECT FOR SKILL SHOWCASE SECTION */
/* =================================================== */
.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================= */
/* CUSTOM SWAL */
/* ========================================================= */

/* Custom SweetAlert Styling */
.swal2-popup {
  background-color: #000000 !important;
  border: 2px solid #fed7aa !important;
}
.swal2-title {
  color: #ffffff !important;
}
.swal2-html-container {
  color: #ffffff !important;
}
.swal2-confirm {
  background-color: #fed7aa !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border: none !important;
}
.swal2-confirm:hover {
  background-color: #fdba74 !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #fed7aa !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: #fed7aa !important;
}
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #fed7aa !important;
}
