/* Medicine Memo - Modern Medical Dashboard Style */
:root {
    --primary: #00B4D8;
    --primary-dark: #0096C7;
    --primary-light: #90E0EF;
    --secondary: #6C63FF;
    --accent: #FF6B9D;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-main: #F0F9FF;
    --bg-card: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 16px;
}

.logo { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { height: 44px; width: auto; border-radius: var(--radius-sm); }

.nav-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-links a:hover { background: var(--bg-main); color: var(--primary); }

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.user-info { display: flex; align-items: center; gap: 10px; }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name { font-weight: 500; color: var(--text-primary); font-size: 13px; }

.btn-logout {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 12px;
    text-decoration: none;
}

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

.main { padding: 24px 0; min-height: calc(100vh - 70px); }

.page-header { margin-bottom: 24px; }

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle { font-size: 0.9rem; color: var(--text-secondary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    background: rgba(0, 180, 216, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow: visible;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.02) 0%, rgba(108, 99, 255, 0.02) 100%);
    flex-wrap: wrap;
    gap: 10px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.25);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35); }

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

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

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

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

.table-responsive { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }

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

.table th {
    background: var(--bg-main);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
}

.table td strong {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table tr:hover { background: rgba(0, 180, 216, 0.02); }
.table tr:last-child td { border-bottom: none; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green, .badge-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-yellow, .badge-warning { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.badge-red, .badge-danger { background: rgba(239, 68, 68, 0.1); color: #DC2626; }
.badge-blue, .badge-info { background: rgba(0, 180, 216, 0.1); color: #0096C7; }
.badge-purple { background: rgba(108, 99, 255, 0.1); color: #6C63FF; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.alert-warning { background: rgba(245, 158, 11, 0.1); border-left: 3px solid var(--warning); color: #92400E; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border-left: 3px solid var(--danger); color: #991B1B; }
.alert-success { background: rgba(16, 185, 129, 0.1); border-left: 3px solid var(--success); color: #065F46; }
.alert-info { background: rgba(0, 180, 216, 0.1); border-left: 3px solid var(--primary); color: #0E7490; }

.reminder-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border-left: 3px solid var(--primary);
}

.reminder-item:hover { transform: translateX(2px); box-shadow: var(--shadow-lg); }

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

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

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 30px 0 16px;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 6px 12px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 9px;
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-nav-links a.active { color: var(--primary); }
.mobile-nav-links a span { font-size: 18px; }

.expiry-row-red { background: rgba(239, 68, 68, 0.04); }
.expiry-row-yellow { background: rgba(245, 158, 11, 0.04); }
.expiry-row-green { background: rgba(16, 185, 129, 0.04); }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.quick-action-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
}

.quick-action-title { font-weight: 600; font-size: 13px; }

.page-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 14px; }
.mb-2 { margin-bottom: 14px; }

.note-card, .event-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.note-card h4, .event-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.note-card p, .event-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.note-card .note-meta, .event-card .event-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.patient-name, .medicine-name, .event-title, .note-title {
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-links.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
        z-index: 1000;
    }
    .nav-toggle { display: block; }
    .mobile-nav { display: block; }
    .main { padding-bottom: 80px; }
    .user-info { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 14px; }
    .page-title { font-size: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 1.5rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .card-header { padding: 12px 14px; }
    .card-body { padding: 14px; }
    .table th, .table td { padding: 8px 10px; font-size: 12px; }
    .table td strong { max-width: 120px; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .table td strong { max-width: 100px; }
}

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

.card, .stat-card { animation: fadeIn 0.25s ease; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.list-group { list-style: none; }

.list-group-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.list-group-item:last-child { border-bottom: none; }

.list-group-item:hover { background: rgba(0, 180, 216, 0.02); }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body { padding: 20px; }

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

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.close-btn:hover { color: var(--text-primary); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-card);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s;
}

.tab:hover { color: var(--primary); background: rgba(0, 180, 216, 0.05); }

.tab.active {
    color: var(--primary);
    background: rgba(0, 180, 216, 0.1);
    border-bottom: 2px solid var(--primary);
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-main);
    color: var(--text-secondary);
}

.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

/* Card Grid - dla pacjentów i wydarzeń */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.card-grid .card {
    margin-bottom: 0;
    padding: 16px;
    border-radius: var(--radius);
}

.card-grid .card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
}

.card-grid .card .mb-2 {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-grid .card .mb-2 strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Flex utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-between { justify-content: space-between; align-items: flex-start; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 16px; }

/* Reminder styles */
.reminders-list {
    padding: 16px 20px;
}

.reminder-group {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-main);
    cursor: pointer;
    gap: 12px;
}

.reminder-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reminder-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 12px;
}

.toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.reminder-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.patient-reminders {
    padding: 12px 16px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    gap: 12px;
}

.reminder-item:last-child {
    margin-bottom: 0;
}

.reminder-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.reminder-content strong {
    color: var(--text-primary);
}

.reminder-content small {
    color: var(--text-secondary);
}

.reminder-actions {
    flex-shrink: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--success);
}

.checkbox-text {
    white-space: nowrap;
}

/* Badge types */
.badge-child { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.badge-adult { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-senior { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.badge-secondary { background: var(--bg-main); color: var(--text-secondary); }

/* Medicine item in tables */
.medicine-item {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.medicine-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.medicine-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Empty state improvements */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Fix for patients.php old style reference */
.card-grid .flex {
    display: flex;
    flex-wrap: wrap;
}

/* Responsive card grid */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }
    
    .card-grid .card h3 {
        font-size: 14px;
    }
    
    .reminder-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reminder-actions {
        width: 100%;
    }
}

/* Events cards - Najbliższe wydarzenia */
.card-grid .card .flex.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.card-grid .card .flex.flex-between h3 {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    margin: 0;
}

.card-grid .card .flex.flex-between .badge {
    flex-shrink: 0;
}

/* Quick actions section */
.card-body .flex.flex-wrap.gap-2,
.card .flex.flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
}

/* Event details */
.card-grid .card .mb-2 {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.card-grid .card .mb-2 strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Event action buttons */
.card-grid .card .flex.gap-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* Responsive events */
@media (max-width: 768px) {
    .card-grid .card .flex.flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-grid .card .flex.flex-between h3 {
        font-size: 14px;
    }
    
    .card-grid .card .flex.gap-1 {
        width: 100%;
    }
    
    .card-grid .card .flex.gap-1 .btn {
        flex: 1;
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Fix for nested cards in card-grid */
.card-grid > .card {
    display: flex;
    flex-direction: column;
}

.card-grid > .card > .flex.gap-1:last-child {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Treatment form styles */
.form {
    padding: 20px;
}

.form-select, .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

/* Medicine item in treatment form */
.form .medicine-item,
#medicines-container .medicine-item {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.medicine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.medicine-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.times-container {
    margin-bottom: 12px;
}

.times-container .flex {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.times-container input[type="time"] {
    flex: 1;
    max-width: 150px;
}

/* Treatments table */
.treatments-table {
    font-size: 13px;
}

.treatments-table th,
.treatments-table td {
    padding: 10px 12px;
    vertical-align: top;
}

.treatments-table .medicines-list {
    max-width: none;
}

.treatments-table .medicine-item {
    background: transparent;
    border: none;
    padding: 6px 0;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.treatments-table .medicine-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.treatments-table .medicine-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.actions-column {
    white-space: nowrap;
    text-align: center;
}

.actions-column a {
    display: inline-block;
    padding: 4px 6px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s;
}

.actions-column a:hover {
    transform: scale(1.2);
}

.mobile-info {
    display: none;
}

.wrap-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 150px;
}

/* Hide columns on mobile/tablet */
@media (max-width: 1024px) {
    .hide-tablet {
        display: none;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .mobile-info {
        display: block;
        margin-top: 4px;
    }
    
    .treatments-table th,
    .treatments-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Alert styles */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger);
    color: #991B1B;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

/* Flex utilities */
.flex-center {
    justify-content: center;
}

.mb-1 {
    margin-bottom: 8px;
}

/* HR styling */
hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Form section title */
.form h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pagination and filters */
.card form[style*="margin-bottom"] {
    padding: 12px 20px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}

.card form label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card form select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-card);
}

/* Bulk actions */
#bulk-form {
    padding: 12px 20px;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
}

/* Pagination info */
.card > div[style*="margin:0.5em"] {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   COMPLETE FORM STYLES
   ============================================ */

/* Form containers */
.form, .card form {
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* All form inputs */
.form-select,
.form-input,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="color"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

input[type="color"] {
    padding: 4px;
    height: 42px;
    cursor: pointer;
}

.form-select:focus,
.form-input:focus,
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox and radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    padding: 24px;
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-content label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    margin-bottom: 16px;
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: var(--text-primary);
}

/* ============================================
   CALENDAR STYLES
   ============================================ */

#calendar {
    padding: 20px;
    background: var(--bg-card);
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fc .fc-button {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 12px;
    font-size: 13px;
}

.fc .fc-button:hover {
    background: var(--border);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.fc .fc-daygrid-day-number {
    color: var(--text-primary);
    font-weight: 500;
}

.fc .fc-col-header-cell-cushion {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--border);
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(0, 180, 216, 0.08);
}

.fc-event {
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 6px;
}

/* ============================================
   NOTES STYLES
   ============================================ */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}

.note-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

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

.note-card.important {
    border-left: 3px solid var(--warning);
}

.note-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.note-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 12px;
}

.note-meta {
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.note-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   STATISTICS STYLES
   ============================================ */

.chart-container {
    padding: 20px;
    background: var(--bg-card);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.stats-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius);
}

.stats-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stats-item .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   PROFILE STYLES
   ============================================ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(108, 99, 255, 0.05) 100%);
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   LEAFLET/ULOTKI STYLES
   ============================================ */

.search-results {
    padding: 20px;
}

.leaflet-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.leaflet-item:hover {
    background: rgba(0, 180, 216, 0.02);
}

.leaflet-item:last-child {
    border-bottom: none;
}

.leaflet-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.leaflet-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   CALCULATOR STYLES
   ============================================ */

.calc-result {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(108, 99, 255, 0.1) 100%);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.calc-result .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-result .unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.calc-result .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   LOGIN/REGISTER STYLES
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.auth-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 95vh;
    }
    
    #calendar {
        padding: 10px;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header, .mobile-nav, .footer, .btn, .nav-toggle {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   CALCULATOR WARNING BOX
   ============================================ */

.calculator-warning {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.calculator-warning .warning-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.calculator-warning .warning-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 6px;
}

.calculator-warning .warning-content p {
    font-size: 14px;
    color: #78350F;
    line-height: 1.6;
    margin: 0;
}

/* Calculator result */
.calc-result {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(108, 99, 255, 0.1) 100%);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.calc-result .value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.calc-result .unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.calc-result .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.calc-result-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.calc-result-details p {
    margin: 6px 0;
}

/* ============================================
   LEAFLET/ULOTKI PAGE
   ============================================ */

.leaflet-tips {
    padding: 20px;
}

.leaflet-tips ul {
    list-style-type: disc;
    margin-left: 24px;
    color: var(--text-secondary);
}

.leaflet-tips li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.alternative-links {
    margin-top: 20px;
}

.alternative-links h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-section {
    margin-bottom: 24px;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Push notification status */
.push-status {
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.push-status h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.push-status p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.push-status .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.push-status .status-indicator.enabled {
    color: var(--success);
}

.push-status .status-indicator.disabled {
    color: var(--danger);
}

/* ============================================
   STATISTICS PAGE
   ============================================ */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-overview .stat-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stats-overview .stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stats-overview .stat-box .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.chart-wrapper {
    padding: 20px;
    background: var(--bg-card);
}

.chart-wrapper canvas {
    max-height: 300px;
}

/* ============================================
   LOGIN/REGISTER PAGES
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.auth-page::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-card .logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .logo-container img {
    height: 60px;
    width: auto;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

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

.auth-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
}

/* ============================================
   MISC UTILITIES
   ============================================ */

.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 24px; }
.p-3 { padding: 20px; }
.p-4 { padding: 24px; }

.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--primary); }

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

.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* List styling */
ul.styled-list {
    list-style: none;
    padding: 0;
}

ul.styled-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

ul.styled-list li:last-child {
    border-bottom: none;
}

ul.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Info boxes */
.info-box {
    background: rgba(0, 180, 216, 0.05);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    
    .calculator-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .calc-result .value {
        font-size: 2.5rem;
    }
}
