:root {
    --primary: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --secondary: #9c27b0;
    --background: #f5f5f5;
    --surface: #ffffff;
    --surface-variant: #f0f0f0;
    --on-surface: #1a1a1a;
    --on-surface-variant: #666666;
    --outline: #e0e0e0;
    --error: #d32f2f;
    --success: #2e7d32;
    --warning: #f57c00;
    --info: #0288d1;
    --shadow: rgba(0, 0, 0, 0.1);
    --font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
}

.dark {
    --background: #121212;
    --surface: #1e1e1e;
    --surface-variant: #2d2d2d;
    --on-surface: #e0e0e0;
    --on-surface-variant: #a0a0a0;
    --outline: #3d3d3d;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html, body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--on-surface);
    min-height: 100vh;
    direction: rtl;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--outline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 16px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
}

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

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--on-surface-variant);
    transition: background-color 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background-color: var(--surface-variant);
}

.main-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 80px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--outline);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--on-surface-variant);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    min-width: 64px;
}

.nav-item:hover {
    background-color: var(--surface-variant);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .material-icons-round {
    color: var(--primary);
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

.card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 1px 3px var(--shadow);
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--on-surface);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 1px 3px var(--shadow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon.primary { background-color: rgba(25, 118, 210, 0.1); color: var(--primary); }
.stat-icon.success { background-color: rgba(46, 125, 50, 0.1); color: var(--success); }
.stat-icon.warning { background-color: rgba(245, 124, 0, 0.1); color: var(--warning); }
.stat-icon.info { background-color: rgba(2, 136, 209, 0.1); color: var(--info); }

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--on-surface);
}

.stat-label {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--surface-variant);
    color: var(--on-surface);
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    background-color: var(--surface);
    color: var(--on-surface);
    transition: border-color 0.2s;
}

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

.form-input::placeholder {
    color: var(--on-surface-variant);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.validation-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--surface-variant);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: var(--outline);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 500;
    color: var(--on-surface);
}

.list-item-subtitle {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 2px;
}

a.list-item-clickable {
    text-decoration: none;
    color: inherit;
}

a.list-item-clickable:hover {
    background-color: var(--primary);
}

a.list-item-clickable:hover .list-item-title,
a.list-item-clickable:hover .list-item-subtitle {
    color: white;
}

a.list-item-clickable:hover .avatar {
    background-color: white;
    color: var(--primary);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending { background-color: rgba(245, 124, 0, 0.1); color: var(--warning); }
.badge-approved { background-color: rgba(46, 125, 50, 0.1); color: var(--success); }
.badge-rejected { background-color: rgba(211, 47, 47, 0.1); color: var(--error); }
.badge-revision { background-color: rgba(2, 136, 209, 0.1); color: var(--info); }
.badge-booked { background-color: rgba(25, 118, 210, 0.1); color: var(--primary); }
.badge-completed { background-color: rgba(46, 125, 50, 0.1); color: var(--success); }
.badge-cancelled { background-color: rgba(211, 47, 47, 0.1); color: var(--error); }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--on-surface-variant);
}

.empty-state .material-icons-round {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

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

.fab {
    position: fixed;
    bottom: 80px;
    left: 16px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 50;
    text-decoration: none;
}

.fab:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

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

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
}

.welcome-date {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-top: 4px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background-color: var(--surface);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--on-surface);
    transition: background-color 0.2s;
}

.quick-action:hover {
    background-color: var(--surface-variant);
}

.quick-action .material-icons-round {
    color: var(--primary);
}

.quick-action span:last-child {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.treatment-plan-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px var(--shadow);
}

.treatment-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.treatment-plan-patient {
    font-weight: 600;
    color: var(--on-surface);
}

.treatment-plan-student {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 2px;
}

.treatment-plan-diagnosis {
    font-size: 14px;
    color: var(--on-surface);
    margin-bottom: 12px;
    line-height: 1.5;
}

.treatment-plan-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.treatment-plan-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.login-card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .material-icons-round {
    font-size: 64px;
    color: var(--primary);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--on-surface-variant);
    text-align: center;
    margin-bottom: 32px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error);
}

.alert-success {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success);
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Student Cards */
.student-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.student-card {
    padding: 16px;
}

.student-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar.large {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.student-info {
    flex: 1;
}

.student-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 4px;
}

.student-email {
    font-size: 13px;
    color: var(--on-surface-variant);
}

.student-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--outline);
    border-bottom: 1px solid var(--outline);
    margin-bottom: 16px;
}

.student-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.pending-plans-section {
    margin-top: 16px;
}

.pending-plans-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.pending-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-variant);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

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

.patient-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface);
}

.plan-date {
    font-size: 12px;
    color: var(--on-surface-variant);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    color: var(--on-surface);
}

.page-title .material-icons-round {
    color: var(--primary);
}

/* ==================== Dental Chart Styles ==================== */
.dental-chart-container {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.dental-chart-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dental-chart-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}

.dental-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--on-surface-variant);
    padding: 4px 8px;
    background-color: var(--surface-variant);
    border-radius: 4px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.crown { background-color: #ffd700; }
.legend-color.root-canal { background-color: #e91e63; }
.legend-color.filling { background-color: #2196f3; }
.legend-color.extraction { background-color: #f44336; }
.legend-color.caries { background-color: #ff9800; }

.dental-chart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 0;
}

.dental-arch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arch-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teeth-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    direction: ltr;
}

.tooth-wrapper {
    position: relative;
}

.tooth-wrapper.quadrant-break {
    margin-inline-start: 8px;
}

.tooth {
    width: 32px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    border-radius: 4px;
}

.tooth:hover {
    transform: scale(1.15);
    z-index: 10;
}

.tooth:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tooth-svg {
    width: 100%;
    height: 100%;
}

.tooth-svg.lower {
    transform: rotate(180deg);
}

.tooth-shape {
    fill: var(--surface);
    stroke: var(--on-surface-variant);
    stroke-width: 1.5;
    transition: fill 0.3s, stroke 0.3s;
}

.tooth-crown {
    fill: var(--surface-variant);
    stroke: none;
    opacity: 0.5;
}

.tooth-number {
    font-size: 10px;
    font-family: var(--font-family);
    fill: var(--on-surface-variant);
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Procedure colors for teeth */
.tooth.crown .tooth-shape {
    fill: #ffd700;
    stroke: #d4a500;
}

.tooth.root-canal .tooth-shape {
    fill: #e91e63;
    stroke: #c2185b;
}

.tooth.filling .tooth-shape {
    fill: #2196f3;
    stroke: #1976d2;
}

.tooth.extraction .tooth-shape {
    fill: #f44336;
    stroke: #d32f2f;
    opacity: 0.5;
}

.tooth.extraction::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px;
    background-color: #f44336;
    transform: translate(-50%, -50%) rotate(45deg);
}

.tooth.caries .tooth-shape {
    fill: #ff9800;
    stroke: #f57c00;
}

/* Procedure animations */
@keyframes pulse-procedure {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes apply-treatment {
    0% { 
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tooth.animate-apply {
    animation: apply-treatment 0.5s ease-out;
}

/* Procedure Selection Panel */
.procedure-panel {
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 -4px 24px var(--shadow);
    padding: 16px;
    z-index: 200;
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.procedure-panel-header span {
    font-size: 16px;
    color: var(--on-surface);
}

.procedure-panel-header strong {
    color: var(--primary);
    font-size: 18px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface-variant);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    transition: background-color 0.2s;
}

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

.procedure-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.procedure-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid var(--outline);
    background-color: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface);
    transition: all 0.2s;
}

.procedure-btn:hover {
    border-color: var(--primary);
    background-color: var(--surface-variant);
}

.procedure-btn .material-icons-round {
    font-size: 24px;
}

.procedure-btn.crown { border-color: #ffd700; color: #d4a500; }
.procedure-btn.crown:hover { background-color: rgba(255, 215, 0, 0.1); }

.procedure-btn.root-canal { border-color: #e91e63; color: #e91e63; }
.procedure-btn.root-canal:hover { background-color: rgba(233, 30, 99, 0.1); }

.procedure-btn.filling { border-color: #2196f3; color: #2196f3; }
.procedure-btn.filling:hover { background-color: rgba(33, 150, 243, 0.1); }

.procedure-btn.extraction { border-color: #f44336; color: #f44336; }
.procedure-btn.extraction:hover { background-color: rgba(244, 67, 54, 0.1); }

.procedure-btn.caries { border-color: #ff9800; color: #ff9800; }
.procedure-btn.caries:hover { background-color: rgba(255, 152, 0, 0.1); }

.procedure-btn.none { border-color: var(--outline); color: var(--on-surface-variant); }
.procedure-btn.none:hover { background-color: var(--surface-variant); }

/* Treatment Summary */
.treatment-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--outline);
}

.treatment-summary h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 12px;
}

.treatment-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.treatment-summary li {
    font-size: 12px;
    padding: 6px 12px;
    background-color: var(--surface-variant);
    border-radius: 16px;
    color: var(--on-surface);
}

.treatment-summary li.empty-message {
    background: none;
    color: var(--on-surface-variant);
    font-style: italic;
}

/* Multi-Procedure Support */
.tooth.multi-procedure .tooth-shape {
    fill: var(--surface-variant);
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-dasharray: 4 2;
}

.procedure-indicators {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 10;
    background: var(--surface);
    padding: 2px 4px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.procedure-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--surface);
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.procedure-indicators .indicator.crown { background-color: #ffd700; }
.procedure-indicators .indicator.root-canal { background-color: #e91e63; }
.procedure-indicators .indicator.filling { background-color: #2196f3; }
.procedure-indicators .indicator.extraction { background-color: #f44336; }
.procedure-indicators .indicator.caries { background-color: #ff9800; }

/* Multi-select procedure panel */
.multi-select-hint {
    font-size: 12px;
    color: var(--on-surface-variant);
    flex: 1;
    text-align: center;
}

.procedure-options.multi-select .procedure-btn {
    position: relative;
}

.procedure-btn .check-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--outline);
    border-radius: 4px;
    background-color: var(--surface);
    transition: all 0.2s;
}

.procedure-btn .check-indicator::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.procedure-btn.selected .check-indicator {
    background-color: var(--primary);
    border-color: var(--primary);
}

.procedure-btn.selected .check-indicator::after {
    border-color: var(--on-primary);
    opacity: 1;
}

.procedure-btn.selected {
    background-color: var(--primary-container);
    border-color: var(--primary);
}

.procedure-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.procedure-panel-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--outline);
    display: flex;
    justify-content: center;
}

.confirm-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn:hover {
    background-color: var(--primary-dark, #1565c0);
    transform: translateY(-1px);
}

.confirm-btn .material-icons-round {
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .tooth {
        width: 26px;
        height: 38px;
    }
    
    .procedure-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dental-chart-legend {
        gap: 4px;
    }
    
    .legend-item {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (min-width: 768px) {
    .tooth {
        width: 40px;
        height: 54px;
    }
    
    .procedure-panel {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    @keyframes slide-up {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}
