/*
 * Cosmo Scheduler – style.css (v3.0)
 * Nowoczesny, responsywny styl dla wtyczki zarządzania wizytami kosmetycznymi
 * Zawiera: zmienne, tryb dark, focus-visible, animacje, gradient backgrounds
 */

/* ===================== */
/*  ZMIENNE I RESET      */
/* ===================== */
:root{
  --cs-bg: #ffffff;
  --cs-surface: #ffffff;
  --cs-border: #f3e5f5;
  --cs-border-2: #e1bee7;
  --cs-text: #2d1b3d;
  --cs-text-2: #4a2f5f;
  --cs-muted: #9575cd;
  --cs-primary: #ec4899;
  --cs-primary-dark: #db2777;
  --cs-primary-light: #f9a8d4;
  --cs-gold: #fbbf24;
  --cs-gold-dark: #f59e0b;
  --cs-primary-contrast: #ffffff;
  --cs-chip-bg: #fdf2f8;
  --cs-badge: #fce7f3;
  --cs-badge-border: #fbcfe8;
  --cs-badge-green: #ecfdf5;
  --cs-badge-green-border: #bbf7d0;
  --cs-badge-blue: #dbeafe;
  --cs-badge-blue-border: #bfdbfe;
  --cs-badge-amber: #fef3c7;
  --cs-badge-amber-border: #fde68a;
  --cs-badge-purple: #f3e8ff;
  --cs-badge-purple-border: #e9d5ff;
  --cs-shadow: 0 2px 8px rgba(236, 72, 153, .08);
  --cs-shadow-lg: 0 10px 30px rgba(236, 72, 153, .15);
  --cs-radius: 16px;
  --cs-radius-sm: 12px;
  --cs-focus: 0 0 0 3px rgba(236, 72, 153, .25);
  --cs-toast-bg: #ec4899;
  --cs-toast-fg: #fff;
  --cs-transition: 220ms ease;
}

/* tryb ciemny (systemowy) */
@media (prefers-color-scheme: dark){
  :root{
    --cs-bg: #0b0e12;
    --cs-surface: #0f1318;
    --cs-border: #1f2937;
    --cs-border-2: #2b3646;
    --cs-text: #e5e7eb;
    --cs-text-2: #cbd5e1;
    --cs-muted: #9ca3af;
    --cs-primary: #8b9cf0;
    --cs-primary-dark: #9c6ec5;
    --cs-primary-contrast: #0b0e12;
    --cs-chip-bg: #0c1117;
    --cs-badge: #0d223a;
    --cs-badge-border: #1b3a63;
    --cs-badge-blue: #0d223a;
    --cs-badge-blue-border: #1b3a63;
    --cs-badge-green: #0f241a;
    --cs-badge-green-border: #2b6e4c;
    --cs-badge-amber: #2b2414;
    --cs-badge-amber-border: #7a5e1e;
    --cs-badge-purple: #1f1433;
    --cs-badge-purple-border: #4c1d95;
    --cs-toast-bg: #e5e7eb;
    --cs-toast-fg: #0b0e12;
    --cs-shadow: 0 1px 2px rgba(0,0,0,.35);
    --cs-shadow-lg: 0 10px 25px rgba(0,0,0,.25);
  }
}

/* bazowy reset i typografia */
.cosmo-scheduler, .cosmo-wrap{
  color: var(--cs-text);
  box-sizing: border-box;
}
.cosmo-scheduler *, .cosmo-wrap *{ box-sizing: border-box; }

/* ===================== */
/*  CONTAINER & LAYOUT   */
/* ===================== */
.cosmo-scheduler{
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 10px;
  color: var(--cs-text);
  background: #f5f5f5;
}

/* Ukryj górne menu WordPress na stronie z Cosmo */
body.page .cosmo-scheduler ~ * #masthead,
body.page .entry-header,
body.page .site-header{
  display: none !important;
}

/* Jasne tło dla całej strony Cosmo */
body.page,
body.page #content,
body.page .site{
  background: #f5f5f5 !important;
}

/* ===================== */
/*  CARDS                */
/* ===================== */
.cs-card{
  background: var(--cs-surface);
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--cs-shadow);
  transition: box-shadow var(--cs-transition);
  position: relative;
}

.cs-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ec4899;
  border-radius: var(--cs-radius) var(--cs-radius) 0 0;
}

.cs-card:hover{
  box-shadow: var(--cs-shadow-lg);
  border-color: var(--cs-primary-light);
}

/* ===================== */
/*  HEADINGS             */
/* ===================== */
.cs-h1{
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #000000 !important;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}

.cs-h1::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ec4899;
  border-radius: 3px;
}

.cs-h2{
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--cs-text);
}

.cs-empty{
  color: var(--cs-muted);
  padding: 12px 0;
  text-align: center;
  font-style: italic;
}

/* ===================== */
/*  FORMS - MODERN GRADIENT STYLE */
/* ===================== */
.cs-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(255,255,255,0.9);
  padding: 24px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
}

.cs-form label{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: #111827 !important;
  font-size: 14px;
}

.cs-form input,
.cs-form select,
.cs-form textarea{
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: #ffffff !important;
  color: #1f2937 !important;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cs-form textarea{
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.cs-form input:focus,
.cs-form select:focus,
.cs-form textarea:focus{
  outline: none;
  border-color: var(--cs-primary);
  box-shadow: var(--cs-focus), 0 0 20px rgba(236, 72, 153, 0.1);
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #ffffff 0%, #fdf2f8 100%);
}

.cs-form input::placeholder,
.cs-form select::placeholder,
.cs-form textarea::placeholder{
  color: #9ca3af !important;
  font-style: italic;
}

.cs-form select option{
  background: #ffffff !important;
  color: #1f2937 !important;
}

/* Client search autocomplete */
.cs-form input[list]{
  background: #ffffff !important;
  color: #1f2937 !important;
  cursor: text;
}

.cs-form input[list]::-webkit-calendar-picker-indicator{
  cursor: pointer;
  filter: opacity(0.5);
}

.cs-form input[list]:focus::-webkit-calendar-picker-indicator{
  filter: opacity(1);
}

/* ===================== */
/*  FILTERS PANEL        */
/* ===================== */
.cs-filters-panel{
  background: linear-gradient(135deg, #fce7f3 0%, #fff7ed 100%);
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--cs-shadow);
}

.cs-filters-title{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #111827 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-btn-mini{
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  white-space: nowrap;
}

.cs-btn-mini:hover{
  background: rgba(236, 72, 153, 0.1) !important;
  border-color: #ec4899 !important;
  color: #ec4899 !important;
}

.cs-filters-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.cs-filters-grid label{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: #111827 !important;
  font-size: 14px;
}

.cs-filter-input{
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: #ffffff !important;
  color: #1f2937 !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cs-filter-input:focus{
  outline: none;
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Responsive filters */
@media (max-width: 1024px){
  .cs-filters-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .cs-filters-grid{
    grid-template-columns: 1fr;
  }
  
  .cs-filters-panel{
    padding: 16px;
  }
}

.cs-form .desc{
  grid-column: 1/-1;
  color: var(--cs-muted);
  font-size: 13px;
  font-style: italic;
  margin-top: -8px;
}

/* ===================== */
/*  BUTTONS              */
/* ===================== */
.cs-btn{
  height: 50px;
  padding: 0 20px;
  border-radius: var(--cs-radius);
  border: 2px solid var(--cs-border);
  background: var(--cs-surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--cs-text);
  transition: all var(--cs-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cs-btn:hover{
  background: rgba(0,0,0,.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.cs-btn:active{
  transform: translateY(0);
}

.cs-btn:focus-visible{
  outline: none;
  box-shadow: var(--cs-focus);
}

.cs-btn[disabled]{
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.cs-btn-primary{
  background: #ec4899;
  color: var(--cs-primary-contrast);
  border-color: #ec4899;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  font-weight: 600;
}

.cs-btn-primary:hover{
  background: #db2777;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  transform: translateY(-2px);
}

.cs-btn-primary:active{
  transform: translateY(-1px);
}

.cs-btn-wide{
  width: 100%;
  grid-column: 1/-1;
}

.cs-btn-mini{
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

/* ===================== */
/*  BADGES / CHIPS       */
/* ===================== */
.cs-badge{
  display: inline-block;
  font-size: 12px;
  border-radius: 999px;
  padding: .3em .7em;
  border: 1px solid var(--cs-badge-border);
  background: var(--cs-badge);
  color: var(--cs-text);
  white-space: nowrap;
  font-weight: 600;
}

.cs-badge.green{
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #065f46 !important;
}

.cs-badge.blue{
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}

.cs-badge.amber{
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #92400e !important;
}

.cs-badge.purple{
  background: #f3e8ff !important;
  border-color: #e9d5ff !important;
  color: #6b21a8 !important;
}

.cs-chip{
  font-size: 12px;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  padding: .25em .6em;
  background: var(--cs-chip-bg);
  color: var(--cs-text-2);
  display: inline-block;
}

/* ===================== */
/*  TABLES               */
/* ===================== */
.cs-table{
  width: 100%;
  background: #ffffff !important;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: var(--cs-shadow);
  overflow: hidden;
}

.cs-table thead{
  background: #f9fafb !important;
}

.cs-table thead th{
  padding: 14px 12px;
  text-align: left;
  color: #111827 !important;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid #ec4899;
}

.cs-table tbody td{
  padding: 12px;
  border-bottom: 1px solid var(--cs-border);
  color: #374151 !important;
  font-size: 14px;
  background: #ffffff !important;
}

.cs-table tbody tr{
  background: #ffffff !important;
}

.cs-table tbody tr:hover{
  background: rgba(236, 72, 153, 0.05) !important;
  transition: background var(--cs-transition);
}

.cs-table tbody tr:last-child td{
  border-bottom: none;
  background: #ffffff !important;
}

.cs-table small{
  display: block;
  color: var(--cs-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ===================== */
/*  NAVIGATION BAR       */
/* ===================== */
.cs-nav-bar{
  background: #1a1a1a;
  border-radius: var(--cs-radius) var(--cs-radius) 0 0;
  padding: 0;
  margin: -20px -20px 20px -20px;
  display: flex !important;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  min-height: 60px;
  position: relative;
}

.cs-nav-tab{
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.cs-nav-tab:hover{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
}

.cs-nav-tab.active{
  background: rgba(236, 72, 153, 0.15);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 0 #ec4899;
}

.cs-nav-tab:not(:last-child){
  border-right: 1px solid rgba(255,255,255,0.1);
}

/* ===================== */
/*  TAB CONTENT          */
/* ===================== */
.cs-tab-content{
  display: none;
}

.cs-tab-content.active{
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ===================== */
/*  EDIT MODAL           */
/* ===================== */
.cs-modal-overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  animation: fadeIn 0.2s ease;
}

.cs-modal-overlay.show{
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-modal{
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp{
  from{ opacity: 0; transform: translateY(40px) scale(0.95); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.cs-modal-header{
  background: #1a1a1a;
  color: white;
  padding: 20px 24px;
  border-radius: var(--cs-radius) var(--cs-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #ec4899;
}

.cs-modal-header h3{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.cs-modal-close{
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-modal-close:hover{
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.cs-modal-body{
  padding: 24px;
}

.cs-modal-footer{
  padding: 16px 24px;
  border-top: 1px solid var(--cs-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===================== */
/*  ACTION BUTTONS       */
/* ===================== */
.cs-btn-edit,
.cs-btn-delete{
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--cs-border);
  background: #ffffff !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cs-btn-edit{
  color: #ec4899 !important;
  border-color: #ec4899 !important;
}

.cs-btn-edit:hover{
  background: #ec4899 !important;
  color: white !important;
}

.cs-btn-delete{
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.cs-btn-delete:hover{
  background: #dc2626 !important;
  color: white !important;
}

/* ===================== */
/*  TOAST NOTIFICATIONS  */
/* ===================== */
.cs-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--cs-toast-bg);
  color: var(--cs-toast-fg);
  padding: 12px 20px;
  border-radius: var(--cs-radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--cs-transition), transform var(--cs-transition);
  z-index: 9999;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
}

.cs-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  pointer-events: auto;
}

/* ===================== */
/*  RESPONSIVE DESIGN    */
/* ===================== */

/* Tablet */
@media (max-width: 768px){
  .cosmo-scheduler{
    padding: 15px 10px;
  }

  .cs-h1{
    font-size: 24px;
    margin-bottom: 20px;
  }

  .cs-h2{
    font-size: 18px;
    margin-bottom: 12px;
  }

  .cs-card{
    padding: 16px;
    margin-bottom: 16px;
  }

  .cs-form{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .cs-table{
    font-size: 13px;
  }

  .cs-table thead th,
  .cs-table tbody td{
    padding: 10px 8px;
  }
}

/* Mobile */
@media (max-width: 480px){
  .cosmo-scheduler{
    padding: 10px 8px;
  }

  .cs-h1{
    font-size: 22px;
    margin-bottom: 16px;
  }

  .cs-h2{
    font-size: 16px;
    margin-bottom: 10px;
  }

  .cs-card{
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .cs-form{
    padding: 16px;
    gap: 12px;
    border-radius: 12px;
  }

  .cs-form input,
  .cs-form select,
  .cs-form textarea{
    height: 44px;
    font-size: 14px;
  }

  .cs-btn{
    height: 46px;
    font-size: 14px;
  }

  .cs-btn-mini{
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cs-table{
    font-size: 12px;
  }

  .cs-table thead th,
  .cs-table tbody td{
    padding: 8px 6px;
  }

  .cs-toast{
    bottom: 16px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ===================== */
/*  ACCESSIBILITY        */
/* ===================== */
@media (prefers-reduced-motion: reduce){
  .cs-form input,
  .cs-form select,
  .cs-form textarea,
  .cs-btn,
  .cs-toast,
  .cs-table tbody tr{
    transition: none;
  }
}

/* Focus visible dla dostępności */
*:focus-visible{
  outline: 2px solid var(--cs-primary);
  outline-offset: 2px;
}

/* ===================== */
/*  LOADING STATES       */
/* ===================== */
.loading{
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--cs-border);
  border-top-color: var(--cs-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* ===================== */
/*  CUSTOM SCROLLBAR     */
/* ===================== */
.cosmo-scheduler ::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

.cosmo-scheduler ::-webkit-scrollbar-track{
  background: var(--cs-border);
  border-radius: 5px;
}

.cosmo-scheduler ::-webkit-scrollbar-thumb{
  background: var(--cs-primary);
  border-radius: 5px;
}

.cosmo-scheduler ::-webkit-scrollbar-thumb:hover{
  background: var(--cs-primary-dark);
}

/* ===================== */
/*  UTILITY CLASSES      */
/* ===================== */
.text-center{ text-align: center; }
.text-right{ text-align: right; }
.mt-1{ margin-top: 8px; }
.mt-2{ margin-top: 16px; }
.mb-1{ margin-bottom: 8px; }
.mb-2{ margin-bottom: 16px; }
.p-1{ padding: 8px; }
.p-2{ padding: 16px; }
.hidden{ display: none !important; }

/* ===================== */
/*  GRID HELPERS         */
/* ===================== */
.cs-form.grid2{
  grid-template-columns: 1fr 1fr;
}

.cs-form.grid3{
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px){
  .cs-form.grid2,
  .cs-form.grid3{
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/*  HOME PAGE            */
/* ===================== */
.cosmo-home{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cs-hero{
  background: linear-gradient(135deg, #ec4899 0%, #db2777 30%, #fbbf24 100%);
  border-radius: var(--cs-radius);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--cs-shadow-lg);
  position: relative;
  overflow: hidden;
}

.cs-hero::after{
  content: '💄 ✨ 💅 ✨ 💆 ✨';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  font-size: 24px;
  opacity: 0.15;
  letter-spacing: 40px;
}

.cs-hero::before{
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow{
  0%, 100%{ transform: translate(0, 0); }
  50%{ transform: translate(30px, 30px); }
}

.cs-hero-content{
  position: relative;
  z-index: 2;
}

.cs-hero-title{
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin: 0 0 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cs-hero-subtitle{
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0 0 12px;
}

.cs-hero-desc{
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cs-btn-large{
  height: 56px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 700;
}

.cs-features{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.cs-feature-card{
  background: var(--cs-surface);
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--cs-shadow);
  position: relative;
  overflow: hidden;
}

.cs-feature-card::before{
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-feature-card:hover::before{
  opacity: 1;
}

.cs-feature-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--cs-shadow-lg);
  border-color: var(--cs-primary);
  background: linear-gradient(to bottom, #ffffff 0%, #fdf2f8 100%);
}

.cs-feature-icon{
  font-size: 64px;
  margin-bottom: 16px;
  line-height: 1;
}

.cs-feature-title{
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0 0 12px;
}

.cs-feature-desc{
  font-size: 15px;
  color: var(--cs-text-2);
  line-height: 1.6;
  margin: 0 0 20px;
}

.cs-feature-link{
  color: var(--cs-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-feature-link:hover{
  color: var(--cs-primary-dark);
  text-decoration: underline;
}

.cs-about{
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--cs-shadow);
}

.cs-about-title{
  font-size: 28px;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0 0 16px;
}

.cs-about-text{
  font-size: 16px;
  color: var(--cs-text-2);
  line-height: 1.8;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== */
/*  LOGIN PAGE           */
/* ===================== */
.cosmo-login{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #fbbf24 100%);
  position: relative;
}

.cosmo-login::after{
  content: '💅 ✨ 💄 ✨ 💆 ✨ 🌸';
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 32px;
  opacity: 0.1;
  letter-spacing: 20px;
}

.cosmo-login::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

.cs-login-card{
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: slideUp 0.5s ease;
}

.cs-login-header{
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #fbbf24 100%);
  padding: 40px 32px;
  text-align: center;
  color: white;
  position: relative;
}

.cs-login-header::before{
  content: '✨';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 24px;
  opacity: 0.7;
}

.cs-login-header::after{
  content: '💅';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  opacity: 0.7;
}

.cs-login-title{
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cs-login-subtitle{
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.cs-login-form{
  padding: 32px;
}

.cs-form-group{
  margin-bottom: 20px;
}

.cs-form-group label{
  display: block;
  font-weight: 600;
  color: var(--cs-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.cs-input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
  color: var(--cs-text);
  font-size: 15px;
  transition: all 0.3s ease;
}

.cs-input:focus{
  outline: none;
  border-color: var(--cs-primary);
  box-shadow: var(--cs-focus);
}

.cs-form-check{
  display: flex;
  align-items: center;
}

.cs-form-check label{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.cs-form-check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cs-login-footer{
  padding: 0 32px 32px;
  text-align: center;
}

.cs-login-link{
  color: var(--cs-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cs-login-link:hover{
  color: var(--cs-primary-dark);
  text-decoration: underline;
}

.cs-alert{
  padding: 12px 16px;
  border-radius: var(--cs-radius-sm);
  margin: 0 32px 20px;
  font-size: 14px;
  font-weight: 600;
}

.cs-alert-error{
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.cs-alert-success{
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* ===================== */
/*  HOME & LOGIN RESPONSIVE */
/* ===================== */
@media (max-width: 768px){
  .cs-hero{
    padding: 40px 24px;
  }

  .cs-hero-title{
    font-size: 36px;
  }

  .cs-hero-subtitle{
    font-size: 20px;
  }

  .cs-features{
    grid-template-columns: 1fr;
  }

  .cs-about{
    padding: 32px 24px;
  }

  .cs-login-form{
    padding: 24px;
  }
}

@media (max-width: 480px){
  .cs-hero{
    padding: 32px 20px;
  }

  .cs-hero-title{
    font-size: 28px;
  }

  .cs-hero-subtitle{
    font-size: 18px;
  }

  .cs-hero-desc{
    font-size: 14px;
  }

  .cs-feature-card{
    padding: 24px 20px;
  }

  .cs-feature-icon{
    font-size: 48px;
  }

  .cs-login-card{
    max-width: 100%;
  }

  .cs-login-header{
    padding: 32px 24px;
  }

  .cs-login-form{
    padding: 20px;
  }

  .cs-login-footer{
    padding: 0 20px 20px;
  }
}

/* ===================== */
/*  CALENDAR VIEW        */
/* ===================== */
.cs-calendar-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 0;
}

.cs-calendar-title{
  font-size: 24px;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0;
  text-align: center;
  flex: 1;
}

.cs-calendar-nav{
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-gold) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.cs-calendar-nav:hover{
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.cs-calendar-nav:active{
  transform: scale(0.95);
}

.cs-calendar-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #f3e5f5;
  border: 2px solid var(--cs-primary-light);
  border-radius: var(--cs-radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--cs-shadow);
}

.cs-calendar-day-header{
  background: #f9fafb !important;
  color: #111827 !important;
  text-align: center;
  padding: 12px 4px;
  font-weight: 700;
  border-bottom: 2px solid #ec4899;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.cs-calendar-day{
  background: #ffffff !important;
  min-height: 90px;
  padding: 8px;
  font-size: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #f3e5f5;
}

.cs-calendar-day:hover{
  background: rgba(236, 72, 153, 0.05) !important;
  transform: scale(1.02);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.cs-calendar-day.other-month{
  background: #fafafa !important;
  opacity: 0.6;
}

.cs-calendar-day.other-month .cs-day-number{
  color: #9ca3af !important;
  font-weight: 500;
}

.cs-calendar-day.today{
  background: linear-gradient(135deg, #fce7f3 0%, #fff7ed 100%);
  border: 2px solid var(--cs-primary);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2), 0 0 20px rgba(251, 191, 36, 0.2);
}

.cs-day-number{
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 6px;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f3e5f5;
}

.cs-appointment{
  background: var(--cs-badge-blue) !important;
  color: #1e40af !important;
  padding: 5px 7px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 3px solid #3b82f6;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.cs-appointment:hover{
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cs-appointment.planned{
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
}

.cs-appointment.done{
  background: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

.cs-appointment.cancelled{
  background: #fed7aa !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

.cs-appointment.archived{
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
  color: #6b7280 !important;
}

.cs-calendar-legend{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 0;
}

.cs-legend-item{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--cs-text-2);
}

.cs-legend-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}

.cs-legend-dot.blue{
  background: var(--cs-badge-blue);
  border-color: #3b82f6;
}

.cs-legend-dot.green{
  background: var(--cs-badge-green);
  border-color: #10b981;
}

.cs-legend-dot.amber{
  background: var(--cs-badge-amber);
  border-color: #f59e0b;
}

/* Calendar Responsive */
@media (max-width: 768px){
  .cs-calendar-day{
    min-height: 60px;
    font-size: 11px;
    padding: 4px;
  }
  
  .cs-day-number{
    font-size: 12px;
  }
  
  .cs-appointment{
    font-size: 9px;
    padding: 1px 3px;
  }
  
  .cs-calendar-title{
    font-size: 20px;
  }
  
  .cs-calendar-nav{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px){
  .cs-calendar-day{
    min-height: 50px;
    padding: 3px;
  }
  
  .cs-day-number{
    font-size: 11px;
  }
  
  .cs-appointment{
    font-size: 8px;
    padding: 1px 2px;
    margin: 1px 0;
  }
  
  .cs-calendar-day-header{
    font-size: 11px;
    padding: 8px 2px;
  }
  
  .cs-calendar-title{
    font-size: 18px;
  }
  
  .cs-calendar-nav{
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
