/* Custom stylesheet for the Leave Tracker App */

/* CSS Variables */
:root {
  --primary-color: #4361ee;
  --primary-light: #4361ee20;
  --primary-dark: #3f5efb;
  --lighter-primary: #f0f4ff;
  --success-color: #1cc88a;
  --success-lighter: #e6fff5;
  --warning-color: #f6c23e;
  --warning-lighter: #fff8e6;
  --danger-color: #e74a3b;
  --danger-lighter: #ffebeb;
  --info-color: #36b9cc;
  --info-lighter: #e6f7fa;
  --text-color: #444;
  --text-muted: #6c757d;
  --border-color: #e3e6f0;
  --hover-color: #f8f9fc;
  --bg-gradient: linear-gradient(135deg, #f0f4ff 0%, #e4ecfb 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 0.1rem 0.75rem 0 rgba(58, 59, 69, 0.1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  font-size: 16px;
  min-height: 100vh;
  color: var(--text-color);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
}

.main-container {
  flex: 1;
  margin: 20px auto;
}

.hidden {
  display: none !important;
}

.text-danger {
  color: #e74a3b;
}

.text-muted {
  color: #6c757d;
}

.fw-bold {
  font-weight: 700;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(90deg, #4361ee 0%, #3f5efb 100%);
  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 10px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  margin-left: 20px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.navbar-nav .nav-link i {
  margin-right: 6px;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-nav {
    margin-top: 10px;
  }
  
  .navbar-nav .nav-item {
    margin-left: 0;
    margin-right: 15px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.85rem;
  }
  
  .navbar .container {
    padding: 5px 10px;
  }
}

/* Card Styles */
.card {
  border-radius: 8px;
  box-shadow: 0 0.1rem 0.75rem 0 rgba(58, 59, 69, 0.1);
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(90deg, #f8f9fc 0%, #eef1f8 100%);
  border-bottom: 1px solid #e3e6f0;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 576px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
  }
  
  .card-header button {
    align-self: flex-end;
  }
  
  .card-body {
    padding: 15px;
  }
}

.card-body {
  padding: 20px;
}

.card-footer {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
  border-top: 1px solid #e3e6f0;
  padding: 10px 20px;
  text-align: right;
}

.card-title {
  color: #4361ee;
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 15px;
}

/* Form Styles */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px -10px;
}

.row:last-child {
  margin-bottom: 0;
}

.col-12 {
  width: 100%;
  padding: 0 10px;
}

.col-4 {
  width: 33.333333%;
  padding: 0 10px;
}

.col-8 {
  width: 66.666667%;
  padding: 0 10px;
}

/* Responsive columns */
@media (max-width: 768px) {
  .col-4, .col-8 {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .row {
    margin-bottom: 5px;
  }
  
  .form-label {
    margin-bottom: 4px;
  }
}

.form-label {
  color: #5a5c69;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #e3e6f0;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #4e73df;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.2);
}

.form-control[readonly] {
  background-color: #f8f9fc;
  cursor: default;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.form-text {
  color: #6c757d;
  font-size: 0.75rem;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 15px;
}

.error-message {
  font-size: 0.75rem;
  color: #e74a3b;
  margin-top: 4px;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.submit-status {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group {
    width: 100%;
    justify-content: space-between;
  }
}

.btn i {
  margin-right: 5px;
}

.btn-primary {
  background: linear-gradient(135deg, #4361ee 0%, #3f5efb 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a56de 0%, #3755ec 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(63, 94, 251, 0.2);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #e74a3b 0%, #e53935 100%);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d6413e 0%, #d32f2f 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 74, 59, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #1cc88a 0%, #1ad1a3 100%);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #18b87c 0%, #17c195 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(28, 200, 138, 0.2);
}

.btn-outline-secondary {
  border: 1px solid #6c757d;
  background-color: transparent;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 1px solid #4361ee;
  background-color: transparent;
  color: #4361ee;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #4361ee;
  transform: translateY(-1px);
}

/* Calendar Styles */
.position-relative {
  position: relative;
}

.calendar-card {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 300px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background-color: white;
  margin-top: 5px;
  transition: opacity 0.2s, transform 0.2s;
  animation: calendar-appear 0.2s ease-out;
  display: block;
}

@media (max-width: 576px) {
  .calendar-card {
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1100;
  }
  
  .calendar-day {
    height: 32px;
  }
  
  .calendar-header {
    padding: 5px;
  }
  
  .month-year {
    font-size: 0.85rem;
  }
  
  .calendar-weekdays div {
    font-size: 0.75rem;
    padding: 3px 0;
  }
  
  .calendar-days {
    gap: 1px;
  }
}
.calendar-card.hidden {
  display: none;
}

@keyframes calendar-appear {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.month-year {
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  min-height: 240px; /* Ensure minimum height for grid */
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  border-bottom: 1px solid #e3e6f0;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.calendar-weekdays div {
  font-size: 0.8rem;
  color: #5a5c69;
  font-weight: 600;
  padding: 5px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  font-size: 0.85rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  color: #5a5c69;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
  background-color: #f0f4ff;
}

.calendar-day.selected {
  background-color: #4e73df;
  color: white;
  font-weight: 600;
}

.calendar-day.today {
  border: 2px solid #4e73df;
  font-weight: 600;
}

.calendar-day.other-month {
  color: #dadce0;
}

.calendar-day.disabled {
  color: #dadce0;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Fix for calendar modal positioning */
#calendarCard {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  max-height: 90vh; /* Handle long content */
  z-index: 1050;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  overflow-y: auto; /* Enable scrolling for long content */
  overflow-x: hidden; /* Prevent horizontal overflow */
  transition: none; /* Disable transitions to prevent repositioning */
}

@media (max-width: 576px) {
  #calendarCard {
    top: 0;
    left: 0;
    transform: none; /* Remove centering transform */
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0; /* Remove rounded corners */
    box-shadow: none; /* Remove shadow for full-screen look */
    transition: none; /* Disable transitions to prevent repositioning */
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow: hidden;
}

.modal.show {
  display: block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  max-width: 95%;
  animation: modal-appear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  overflow: hidden;
}

@media (max-width: 576px) {
  .modal-container {
    width: 95%;
  }
  
  .modal-body {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .success-details {
    padding: 10px;
  }
  
  .success-table th, 
  .success-table td {
    padding: 5px;
    font-size: 0.85rem;
  }
}

.modal-container.small {
  width: 350px;
}

@keyframes modal-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.modal-header.success {
  background: linear-gradient(135deg, #1cc88a 0%, #1ad1a3 100%);
  color: white;
  border-bottom: none;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  color: inherit;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #e3e6f0;
  background-color: #f8f9fc;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Alert Styles */
.alert {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  animation: alert-appear 0.3s ease;
}

@media (max-width: 576px) {
  .alert {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .alert i {
    font-size: 0.9rem;
    margin-top: 2px;
  }
}

@keyframes alert-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert i {
  margin-right: 10px;
  margin-top: 3px;
}

.alert.info {
  background-color: #e1f0ff;
  color: #0c63e4;
  border-left: 4px solid #0c63e4;
  box-shadow: 0 2px 5px rgba(12, 99, 228, 0.1);
}

.alert.danger {
  background-color: #ffe5e5;
  color: #e74a3b;
  border-left: 4px solid #e74a3b;
  box-shadow: 0 2px 5px rgba(231, 74, 59, 0.1);
}

.alert.success {
  background-color: #e5fff0;
  color: #1cc88a;
  border-left: 4px solid #1cc88a;
  box-shadow: 0 2px 5px rgba(28, 200, 138, 0.1);
}

/* Success Modal Specific Styles */
.text-center {
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  color: #1cc88a;
  margin-bottom: 15px;
  animation: success-icon-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-icon-appear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-details {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin: 15px 0;
  border: 1px solid #f1f1f1;
  transition: transform 0.2s ease;
}

@media (max-width: 576px) {
  .success-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  #successHeading {
    font-size: 1.1rem;
  }
  
  #successSubheading {
    font-size: 0.85rem;
  }
}

.success-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.success-header {
  background-color: #f8f9fc;
  padding: 12px 15px;
  border-bottom: 1px solid #e3e6f0;
}

.success-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4e73df;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-body {
  padding: 0;
}

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

.success-table th, 
.success-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  font-size: 0.85rem;
}

.success-table th {
  width: 38%;
  color: #6c757d;
  font-weight: 600;
}

.success-table tr:last-child th,
.success-table tr:last-child td {
  border-bottom: none;
}

/* Toast Styles */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

@media (max-width: 576px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .toast {
    width: 100%;
    max-width: 100%;
  }
  
  .toast-header {
    padding: 8px 10px;
  }
  
  .toast-body {
    padding: 10px;
    font-size: 0.85rem;
  }
}

.toast {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 0;
  width: 300px;
  max-width: 100%;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  overflow: hidden;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f8f9fc;
}

.toast-header i {
  margin-right: 8px;
  font-size: 1rem;
}

.toast-header strong {
  font-weight: 600;
  font-size: 0.9rem;
}

.toast-header small {
  font-size: 0.75rem;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0;
  margin-left: 10px;
}

.toast-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.toast-body {
  padding: 12px 15px;
  font-size: 0.9rem;
}

/* Toast Types */
.toast-success .toast-header {
  background-color: rgba(28, 200, 138, 0.1);
  color: #1cc88a;
}

.toast-success .toast-header i {
  color: #1cc88a;
}

.toast-danger .toast-header {
  background-color: rgba(231, 74, 59, 0.1);
  color: #e74a3b;
}

.toast-danger .toast-header i {
  color: #e74a3b;
}

.toast-info .toast-header {
  background-color: rgba(12, 99, 228, 0.1);
  color: #0c63e4;
}

.toast-info .toast-header i {
  color: #0c63e4;
}

.toast-warning .toast-header {
  background-color: rgba(246, 194, 62, 0.1);
  color: #f6c23e;
}

.toast-warning .toast-header i {
  color: #f6c23e;
}

/* Form Validation Styles */
.is-valid {
  border-color: #1cc88a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%231cc88a' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem) !important;
}

.is-invalid {
  border-color: #e74a3b !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e74a3b' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74a3b' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem) !important;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #e74a3b;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: white;
  padding: 15px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 576px) {
  .footer {
    padding: 10px 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .footer-text small {
    font-size: 0.7rem;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
  
  .col-4, .col-8 {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .modal-container {
    width: 95%;
    max-height: 80vh;
  }
  
  .modal-container.small {
    width: 90%;
  }
  
  .success-table th, 
  .success-table td {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .calendar-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group {
    width: 100%;
    justify-content: flex-end;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  width: 100%;
  height: 100%;
  opacity: 0.5;
  transform: scale(0);
  animation: ripple 0.6s linear;
}

.form-buttons {
  flex-direction: column;
  gap: 10px;
}

.button-group {
  width: 100%;
  justify-content: flex-end;
}