@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,600,700,800,900&display=swap');

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;}main{display:block;}h1{font-size:2em;margin:.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-.25em;}sup{top:-.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:.35em .75em .625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --color3: #0dcaf0;
    --color4: #198754;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #212529;
    
    /* Extended color palette */
    --pink: #e91e63;
    --text: #212529;
    --muted: #6c757d;
    --border: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Background colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #343a40;
    
    /* Shadow */
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    
    /* Legacy variables for compatibility */
    --pink-600: #c2185b;
    --bg: #f6f7fb;
    --radius: 10px;
    --font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    --docs-zebra-odd: #fff;
    --docs-zebra-even: #fafafa;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
}

body, html {
    min-height: 100vh;
}

/* ========== App layout ========== */
.app{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:0;
}
.sidebar-wrap{
  background:var(--white);
  border-right:1px solid var(--border);
  padding:16px 14px;
}
.main{
  padding:24px;
  max-width:1400px;
  width:100%;
  margin:0 auto;
}

/* ========== Topbar (optioneel) ========== */
.topbar{
  height:64px; background:var(--pink);
  color:#fff; display:flex; align-items:center; gap:16px;
  padding:0 16px; border-bottom:1px solid #d70063;
}
.topbar .brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700}
.topbar .brand img{height:34px}
.topbar-spacer{flex:1}
.top-search input{
  padding:8px 10px; border:0; border-radius:8px; outline:0;
  background:#fff; color:#333; min-width:240px;
}

/* ========== Cards / containers ========== */
.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom:18px;
}
h1{font-size:22px;margin:0 0 12px}
h2{font-size:18px;margin:8px 0 10px}
.muted{color:var(--muted)}

/* Page Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--pink);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--pink);
    background: var(--pink);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: #c2185b;
    border-color: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--pink);
    color: var(--pink);
}

.btn-outline-primary:hover {
    background: var(--pink);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--secondary);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Legacy button styles for compatibility */
.btn.secondary{background:#fff;color:var(--text);border-color:var(--border)}
.btn.secondary:hover{border-color:#cfcfcf;background:#fafafa}
.btn.ghost{background:transparent;color:var(--text);border-color:transparent}
.btn.ghost:hover{background:#00000008}

.icon-btn{
  display:inline-grid; place-items:center;
  width:32px; height:32px; border:1px solid var(--border);
  border-radius:8px; background:#fff; cursor:pointer; text-decoration:none;
}
.icon-btn:hover{border-color:#cfcfcf}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), #f06292);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.stat-content h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.stat-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* ========== Sidebar nav ========== */
.sidebar{display:flex; flex-direction:column; gap:16px}
.sidebar-head{height:48px}
.nav-top{margin-bottom:12px}
.nav-top-link{
  display:block; text-align:center; font-weight:700; color:var(--pink);
  text-decoration:none; padding:10px 0; border-radius:10px;
}
.nav-top-link.active{background:#ffe6f1}
.nav{display:flex; flex-direction:column; gap:10px}
.nav-group{border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#fff}
.nav-trigger{
  width:100%; display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:#fff; border:0; border-bottom:1px solid var(--border); cursor:pointer; color:#333;
}

/* Icon styling in navigation */
.nav-trigger img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.nav-group.expanded .nav-trigger{border-bottom-color:var(--border)}
.nav-sub{list-style:none; margin:0; padding:8px 0; display:none}
.nav-group.expanded .nav-sub{display:block}
.nav-sub li a{
  display:block; padding:8px 16px; text-decoration:none; color:#333;
}
.nav-sub li.active a, .nav-sub li a:hover{background:#fafafa}

/* ========== Tabs ========== */
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  display:inline-block; padding:8px 10px; background:#fff;
  border:1px solid var(--border); border-radius:8px;
  text-decoration:none; color:#222; transition:.15s ease;
}
.tab:hover{border-color:#dcdcdc; box-shadow:0 0 0 2px #ffe6f1 inset}
.tab.active{border-left:4px solid var(--pink); padding-left:6px; font-weight:700}

/* ========== Forms ========== */
input[type="text"],input[type="search"],input[type="email"],
input[type="number"],input[type="tel"],input[type="url"],
input[type="password"],select,textarea{
  padding:8px 10px; border:1px solid var(--border);
  border-radius:8px; background:#fff; outline:none; width:100%;
}
input:focus,select:focus,textarea:focus{border-color:#bdbdbd}
input:required:valid,
input:not([required]):not(:placeholder-shown),
textarea:valid{ background:#eaffef } /* lichtgroen bij ingevuld/geldig */
input.invalid{ border-color:#d33; background:#ffecec }
.error{ color:#c00; font-size:.9rem; margin-top:4px }

.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(240px,1fr)); gap:12px }
.col-2{ grid-column:span 2 }
.field{ display:flex; flex-direction:column; gap:6px }
label{ font-weight:600 }

.searchbar{display:flex; align-items:center}
.searchbar input{min-width:240px}

/* Enhanced Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.col-2 {
    grid-column: span 2;
}

.field label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.field input,
.field select,
.field textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.field small {
    color: var(--muted);
    font-size: 12px;
}

/* Checkbox Styles */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-field input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--pink);
}

.checkbox-text {
    flex: 1;
    line-height: 1.4;
}

/* ========== Lists / klantenoverzicht header ========== */
.list-header{display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.sorter{display:flex; gap:8px; align-items:center}

/* ========== Avatars / logo's ========== */
.avatar{
  width:44px; height:44px; border-radius:8px; object-fit:cover;
  border:1px solid var(--border); background:#f8f8f8; display:block;
}
.avatar.placeholder{display:grid;place-items:center;color:#999}

/* ========== Flash messages ========== */
.flash{
  margin:12px 0; padding:10px 12px;
  border:1px solid #ffd1e6; background:#fff0f6; color:#7a1040; border-radius:8px;
}

/* ========== Tabel generiek ========== */
.table-wrap{overflow:auto}
.table{width:100%; border-collapse:collapse; background:#fff}
.table th,.table td{border:1px solid var(--border); padding:8px 10px}
.table th{background:#fafafa; text-align:left}
.table.compact th,.table.compact td{font-size:13px; padding:6px 8px}

/* ========== Documenten-tabellen (globaal + per klant) ========== */
.docs-table{width:100%; border-collapse:collapse}
.docs-table th,.docs-table td{
  border:1px solid var(--border);
  padding:6px 8px; font-size:13px; background:#fff;
}
.docs-table th{background:#fafafa; white-space:nowrap}
.docs-table tbody tr:nth-child(odd){  background:var(--docs-zebra-odd) }
.docs-table tbody tr:nth-child(even){ background:var(--docs-zebra-even) }

.doc-thumb-sm{
  width:48px; height:48px; object-fit:cover;
  border:1px solid var(--border); background:#f6f6f6; display:block; border-radius:8px;
}
.doc-actions{display:flex; gap:6px; align-items:center; justify-content:flex-end; flex-wrap:wrap}
.doc-name{max-width:380px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.doc-meta-small{color:var(--muted); font-size:.85rem}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--text);
}

.empty-state p {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Text Utilities */
.text-muted {
    color: var(--muted) !important;
}

.text-right{text-align:right}
.text-center{text-align:center}
.hidden{display:none !important}
.w-100{width:100%}
.mt-0{margin-top:0} .mt-4{margin-top:4px} .mt-8{margin-top:8px} .mt-12{margin-top:12px}
.mb-0{margin-bottom:0} .mb-8{margin-bottom:8px} .mb-12{margin-bottom:12px}

/* ========== Responsiveness ========== */
@media (max-width:1200px){
  .table.compact .col-created{display:none}
}
@media (max-width:1000px){
  .table.compact .col-vat{display:none}
}
@media (max-width:860px){
  .app{grid-template-columns:1fr}
  .sidebar-wrap{border-right:0; border-bottom:1px solid var(--border)}
  .form-grid{ grid-template-columns:1fr }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .field.col-2 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 20px;
    }
}

/* --- Visibility fixes for small icon buttons & regular buttons --- */

/* Make sure regular .btn never falls back to white */
button.btn, .btn{
  background:var(--pink) !important;
  border-color:var(--pink) !important;
  color:#fff !important;
}
button.btn:hover, .btn:hover{
  background:var(--pink-600) !important;
  border-color:var(--pink-600) !important;
}

/* Icon buttons: force dark icon color, readable size */
.icon-btn{
  color:#222 !important;              /* make glyphs dark */
  font-size:16px !important;          /* bigger symbols */
  line-height:1 !important;
  border-color:var(--border) !important;
  background:#fff !important;
}
.icon-btn:hover{
  color:var(--pink-600) !important;
  border-color:var(--pink-600) !important;
}

/* If your OS renders emoji too light, use a symbol-friendly stack */
.icon-btn,
.icon-btn *{
  font-family: "Segoe UI Symbol","Apple Color Emoji","Noto Color Emoji",var(--font) !important;
}

/* For links styled as icon buttons too */
a.icon-btn{ color:#222 !important; text-decoration:none !important; }
a.icon-btn:hover{ color:var(--pink-600) !important; }

.tab-chip{ display:inline-flex; align-items:center; gap:6px }
.icon-btn.tiny{ width:22px; height:22px; font-size:13px; border-radius:6px }

/* ========== Dashboard & Agenda Styling ========== */

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.dashboard-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.dashboard-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Digital Clock */
.digital-clock {
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--pink), #f06292);
    border-radius: 8px;
    color: var(--white);
    min-width: 120px;
}

.clock-time {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.clock-date {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1;
}

.week-number {
    text-align: center;
    padding: 8px 12px;
    background: var(--secondary);
    border-radius: 8px;
    color: var(--white);
    min-width: 60px;
}

.week-label {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
}

.week-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.dashboard-stats .stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: none;
    margin: 0;
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Actions */
.dashboard-actions {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Recent Items */
.recent-items {
    padding: 20px 24px;
}

.recent-items h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.recent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-info strong {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.recent-customer {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.recent-date {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

/* Agenda Block Container */
.agenda-block-container {
    margin-bottom: 32px;
}

.agenda-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.agenda-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-actions {
    display: flex;
    gap: 12px;
}

.agenda-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Agenda Stats */
.agenda-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.agenda-stats .stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: none;
    margin: 0;
}

.agenda-stats .stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Agenda Content */
.agenda-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.agenda-today,
.agenda-upcoming {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-today h3,
.agenda-upcoming h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pink);
}

/* Appointment List */
.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.appointment-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.appointment-time,
.appointment-date {
    font-weight: 700;
    color: var(--pink);
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    padding: 6px 8px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 6px;
}

.appointment-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 50px;
}

.appointment-date small {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.appointment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointment-info strong {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.appointment-customer {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.appointment-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-status.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.appointment-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.appointment-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-status.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .agenda-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .agenda-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .agenda-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .agenda-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .agenda-stats {
        grid-template-columns: 1fr;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .appointment-time,
    .appointment-date {
        align-self: flex-start;
    }
}

/* ========== Appointments Page Styling ========== */

/* Appointments Page Container */
.appointments-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Header Styles - More Compact */
.appointments-dashboard-header {
    background: #f8f9fa;
    padding: 8px;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.appointments-dashboard-header .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.appointments-dashboard-header .dashboard-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.btn-new-appointment {
    background: #e91e63;
    color: white;
    border: 2px solid #e91e63;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-new-appointment:hover {
    background: #c2185b;
    border-color: #c2185b;
    transform: translateY(-1px);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointments-dashboard-header .dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: move;
    position: relative;
    overflow: hidden;
}

.appointments-dashboard-header .dashboard-card:hover {
    transform: translateY(-1px);
    border-color: #e91e63;
    background: #fafafa;
}

.appointments-dashboard-header .dashboard-card.dragging {
    opacity: 0.7;
    transform: rotate(2deg) scale(1.02);
    z-index: 1000;
    border-color: #e91e63;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

/* Next Appointment Card */
.next-appointment-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 3px solid #e91e63;
}

.next-appointment-card .card-header h3 {
    color: #e91e63;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.appointment-day {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.appointment-date {
    font-size: 0.8rem;
    color: #495057;
    margin-bottom: 4px;
}

.appointment-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e91e63;
}

.no-appointment {
    text-align: center;
    color: #6c757d;
}

/* Stats Cards */
.stats-cards-container {
    display: flex;
    gap: 6px;
}

.appointments-dashboard-header .stats-card {
    flex: 1;
    text-align: center;
    background: #e91e63;
    color: white;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.appointments-dashboard-header .stats-card .card-header {
    margin-bottom: 3px;
}

.appointments-dashboard-header .card-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointments-dashboard-header .card-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

/* Time Display Card - Keep Clock Large */
.dashboard-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-display-card {
    background: #e91e63;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 280px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
}

.current-time {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
}

.current-date {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.week-number {
    position: absolute;
    top: 6px;
    right: 6px;
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 2px 4px;
}

.week-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 600;
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.week-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* Filters Section */
.filters-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filters-form {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Appointments List */
.appointments-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 30px;
}

.appointments-table-container {
    overflow-x: auto;
}

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

.appointments-table th,
.appointments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.appointments-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.appointment-row {
    transition: background-color 0.2s ease;
}

.appointment-row:hover {
    background: var(--bg-light);
}

.appointment-datetime .date {
    font-weight: 600;
    color: var(--text);
}

.appointment-datetime .time {
    font-size: 12px;
    color: var(--muted);
}

.appointment-title strong {
    color: var(--text);
    font-size: 14px;
}

.appointment-title .description {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.appointment-customer .customer-name {
    font-weight: 500;
    color: var(--text);
}

.appointment-customer .customer-email {
    font-size: 12px;
    color: var(--muted);
}

.no-customer {
    color: var(--muted);
    font-style: italic;
}

.appointment-status .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-no_show {
    background: #f8d7da;
    color: #721c24;
}

/* Calendar Section */
.calendar-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

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

.calendar-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-week {
    font-weight: 600;
    color: var(--text);
}

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.time-column {
    background: var(--bg-light);
}

.time-header {
    height: 80px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.time-slot {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.day-column {
    background: var(--white);
    position: relative;
}

.day-header {
    height: 80px;
    padding: 8px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.day-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 4px;
}

.day-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--pink);
}

.day-count {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.day-content {
    position: relative;
    height: 780px; /* 13 hours * 60px */
}

.appointment-block {
    position: absolute;
    left: 2px;
    right: 2px;
    background: var(--pink);
    color: var(--white);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 11px;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
}

.appointment-block:hover {
    background: #c2185b;
}

.appointment-block .appointment-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.appointment-block .appointment-time {
    font-size: 10px;
    opacity: 0.9;
}

.appointment-block .appointment-customer {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Day Block Toggle */
.day-block-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #dc3545;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #6a6a6a;
}

/* Blocked day styling */
.day-column.blocked {
    opacity: 0.6;
    background-color: #f8d7da;
}

.day-column.blocked .day-header {
    background-color: #f5c6cb;
}

.day-column.blocked .clickable-time-slot {
    display: none;
}

/* Clickable time slots */
.clickable-time-slot {
    position: absolute;
    left: 0;
    right: 0;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    z-index: 1;
}

.clickable-time-slot:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Quick Create Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #1f1f1f;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6a6a6a;
}

.modal-body {
    padding: 20px;
}

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

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}

.selected-time {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design for Appointments */
@media (max-width: 768px) {
    .appointments-dashboard-header {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .appointments-dashboard-header .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .appointments-dashboard-header .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-cards-container {
        flex-direction: row;
    }
    
    .appointments-dashboard-header .stats-card {
        min-height: 70px;
    }
    
    .appointments-dashboard-header .card-number {
        font-size: 1.8rem;
    }
    
    .current-time {
        font-size: 2rem;
    }
    
    .current-date {
        font-size: 0.9rem;
    }
    
    .time-display-card {
        padding: 15px;
        min-height: 120px;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input,
    .filter-group select {
        min-width: auto;
    }
    
    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .appointments-table {
        font-size: 14px;
    }
    
    .appointments-table th,
    .appointments-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .appointments-dashboard-header {
        padding: 8px;
    }
    
    .appointments-dashboard-header .dashboard-header h1 {
        font-size: 1.3rem;
    }
    
    .appointments-dashboard-header .dashboard-card {
        padding: 10px;
    }
    
    .stats-cards-container {
        flex-direction: column;
        gap: 6px;
    }
    
    .appointments-dashboard-header .stats-card {
        min-height: 60px;
    }
    
    .appointments-dashboard-header .card-number {
        font-size: 1.5rem;
    }
    
    .current-time {
        font-size: 1.8rem;
    }
    
    .time-display-card {
        padding: 12px;
        min-height: 100px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-grid {
        grid-template-columns: 50px repeat(7, 1fr);
    }
    
    .day-header {
        height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-name {
        font-size: 10px;
    }
}

/* Animation for time updates */
.time-update {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Drag and Drop Styles */
.dashboard-left.drag-over,
.dashboard-right.drag-over {
    background: rgba(233, 30, 99, 0.1);
    border: 2px dashed #e91e63;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dashboard-left.drop-zone-active,
.dashboard-right.drop-zone-active {
    background: rgba(233, 30, 99, 0.05);
    border: 1px dashed rgba(233, 30, 99, 0.3);
    border-radius: 8px;
}

.appointments-dashboard-header .dashboard-card.dragging {
    cursor: grabbing;
}

.appointments-dashboard-header .dashboard-card {
    cursor: grab;
}

.appointments-dashboard-header .dashboard-card:active {
    cursor: grabbing;
}

/* ========== Auth Pages Styling (Login, Register, Forgot) ========== */

/* Auth Wrapper - Full Screen Layout */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Nunito Sans', sans-serif;
}

/* Auth Card - Main Container */
.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), #f06292);
}

/* Auth Brand Section */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Auth Form */
.auth-form {
    margin-bottom: 24px;
}

.auth-form .field {
    margin-bottom: 20px;
}

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

.auth-form .field input[type="text"],
.auth-form .field input[type="email"],
.auth-form .field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    background: var(--white);
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-form .field input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.auth-form .field input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

/* Checkbox Field for Terms */
.auth-form .checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.auth-form .checkbox-field input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--pink);
    cursor: pointer;
}

.auth-form .checkbox-text {
    flex: 1;
    line-height: 1.5;
    color: var(--text);
    font-size: 14px;
}

/* Auth Submit Button */
.auth-form .btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--pink), #f06292);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.auth-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #c2185b, #e91e63);
}

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

/* Auth Links */
.auth-links {
    text-align: center;
    margin: 24px 0;
}

.auth-links a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* Copyright */
.auth-card .text-center.muted {
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 24px;
}

/* Responsive Design for Auth Pages */

/* iPad Portrait and Landscape */
@media (max-width: 1024px) {
    .auth-wrap {
        padding: 16px;
    }
    
    .auth-card {
        max-width: 480px;
        padding: 32px;
    }
    
    .auth-title {
        font-size: 26px;
    }
    
    .auth-logo img {
        height: 55px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .auth-wrap {
        padding: 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .auth-card {
        max-width: 100%;
        padding: 28px;
        border-radius: 12px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-logo img {
        height: 50px;
    }
    
    .auth-form .field input[type="text"],
    .auth-form .field input[type="email"],
    .auth-form .field input[type="password"] {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .auth-form .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) and (orientation: landscape) {
    .auth-wrap {
        padding: 8px;
    }
    
    .auth-card {
        padding: 20px;
        margin: 8px 0;
    }
    
    .auth-brand {
        margin-bottom: 20px;
    }
    
    .auth-logo {
        margin-bottom: 12px;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-form .field {
        margin-bottom: 16px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .auth-wrap {
        padding: 8px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .auth-card {
        padding: 24px;
        border-radius: 12px;
        margin: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }
    
    .auth-brand {
        margin-bottom: 24px;
    }
    
    .auth-logo {
        margin-bottom: 16px;
    }
    
    .auth-logo img {
        height: 45px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-form .field {
        margin-bottom: 18px;
    }
    
    .auth-form .field label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .auth-form .field input[type="text"],
    .auth-form .field input[type="email"],
    .auth-form .field input[type="password"] {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
    }
    
    .auth-form .btn {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .auth-links {
        margin: 20px 0;
        font-size: 14px;
    }
    
    .auth-card .text-center.muted {
        font-size: 12px;
        margin-top: 20px;
        padding-top: 16px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .auth-wrap {
        padding: 4px;
        padding-top: 16px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .auth-form .field input[type="text"],
    .auth-form .field input[type="email"],
    .auth-form .field input[type="password"] {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 6px;
    }
    
    .auth-form .btn {
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    .auth-brand {
        margin-bottom: 20px;
    }
    
    .auth-form .field {
        margin-bottom: 16px;
    }
}

/* iOS Safari specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .auth-form .field input[type="text"],
    .auth-form .field input[type="email"],
    .auth-form .field input[type="password"] {
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        -webkit-border-radius: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .auth-form .btn {
        min-height: 48px; /* Better touch target */
        padding: 14px 20px;
    }
    
    .auth-form .field input[type="text"],
    .auth-form .field input[type="email"],
    .auth-form .field input[type="password"] {
        min-height: 48px; /* Better touch target */
        padding: 12px 16px;
    }
    
    .auth-form .checkbox-field input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
}
