/* Bootstrap CSS and custom styles are loaded via <link> tags in layout.tsx */

/* Global styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  
  /* Custom variables for Smile24 design */
  --color-primary: #EF7310;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --typo-primary: #0E9493;
  --typo-secondary: #564B43;
  --text-color: #787676;
  --border-color: #E5E5E5;
  --border-plight: #F0F0F0;
  --light-gray: #F8F9FA;
  --light-orange: #FFF3E0;
  --bg-light: #F8F9FA;
  --h-color: #333333;
  --card-bg: #FFFFFF;
  
  /* Font sizes */
  --font-xs: 12px;
  --font-small: 14px;
  --font-regular: 16px;
  --font-16: 16px;
  --font-18: 18px;
  --font-20: 20px;
  --font-24: 24px;
  --font-32: 32px;
  --font-large: 18px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utility classes */
.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}

.py-60 {
  padding-top: 60px;
  padding-bottom: 60px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Bootstrap utility classes */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}

/* Override any conflicting Next.js default styles */

/* Toast styles (global) */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: 100%;
}

.toast {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.toast-enter {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.toast-message {
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #2e7d32;
}
.toast-success .toast-title { color: #2e7d32; }
.toast-success .toast-message { color: #666; }

.toast-error {
  border-left: 4px solid #d32f2f;
}
.toast-error .toast-title { color: #d32f2f; }
.toast-error .toast-message { color: #666; }

.toast-warning {
  border-left: 4px solid #f57c00;
}
.toast-warning .toast-title { color: #f57c00; }
.toast-warning .toast-message { color: var(--typo-secondary); }

.toast-info {
  border-left: 4px solid var(--color-primary);
}
.toast-info .toast-title { color: var(--color-primary); }
.toast-info .toast-message { color: var(--typo-secondary); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.toast-success .toast-progress-bar { background-color: #2e7d32; }
.toast-error .toast-progress-bar { background-color: #d32f2f; }
.toast-warning .toast-progress-bar { background-color: #f57c00; }
.toast-info .toast-progress-bar { background-color: var(--color-primary); }


.toast-container{
  position: fixed !important;
  top: 15px !important;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .toast-content { padding: 12px; gap: 10px; }
  .toast-title,
  .toast-message { font-size: var(--font-xs); }
}
