:root {
    /* Primary Colors */
    --primary-blue: #0056b3;
    --primary-light: #e8f0fe;
    --primary-dark: #003d82;
    
    /* Secondary Colors */
    --secondary-teal: #008080;
    --secondary-light: #e6f3f3;
    --secondary-dark: #006666;
    
    /* Accent Colors */
    --accent-gold: #ffd700;
    --accent-light: #fff8e1;
    --accent-dark: #ccac00;
    
    /* Neutral Colors */
    --neutral-light: #f8f9fa;
    --neutral-medium: #e9ecef;
    --neutral-dark: #343a40;
    
    /* Status Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* Global Styles */
body {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Header Styling */
.navbar {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--primary-light);
    border-bottom: 2px solid var(--primary-blue);
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem;
}

.card-header h5 {
    color: var(--primary-dark);
    margin: 0;
    font-weight: 600;
}

.card-header i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.card-body {
    padding: 1.25rem;
}

/* Patient Details Styling */
.patient-info p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.patient-info strong {
    color: var(--primary-dark);
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

/* Address Styling */
.address-card {
    background-color: var(--secondary-light);
}

.address-card .card-header {
    background-color: var(--secondary-light);
    border-bottom: 2px solid var(--secondary-teal);
}

.address-card .card-header h5 {
    color: var(--secondary-dark);
}

.address-card .card-header i {
    color: var(--secondary-teal);
}

/* Medical Aid Styling */
.medical-aid-card {
    background-color: var(--accent-light);
}

.medical-aid-card .card-header {
    background-color: var(--accent-light);
    border-bottom: 2px solid var(--accent-gold);
}

.medical-aid-card .card-header h5 {
    color: var(--accent-dark);
}

.medical-aid-card .card-header i {
    color: var(--accent-gold);
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--neutral-medium);
    border-color: var(--neutral-medium);
    color: var(--neutral-dark);
}

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

/* Status Badges */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 5px;
    font-weight: 500;
}

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

.badge-warning {
    background-color: var(--warning);
    color: var(--neutral-dark);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-info {
    background-color: var(--info);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .patient-info strong {
        min-width: 100px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hard Tissue Chart Tooth Regions */
.tooth-grid {
  width: 60px;
  height: 60px;
  position: relative;
  border: 2px solid #222;
  box-sizing: border-box;
  background: white;
}
.region {
  position: absolute;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0.95;
}
.region.top {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(50% 0%, 100% 0%, 50% 30%, 0% 0%);
  z-index: 1;
  border-top: 2px solid #222;
}
.region.left {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(0% 0%, 50% 30%, 50% 70%, 0% 100%);
  z-index: 1;
  border-left: 2px solid #222;
}
.region.right {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(100% 0%, 100% 100%, 50% 70%, 50% 30%);
  z-index: 1;
  border-right: 2px solid #222;
}
.region.bottom {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(0% 100%, 50% 50%, 100% 100%, 50% 100%);
  z-index: 1;
  border-bottom: 2px solid #222;
}
.region.center {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  z-index: 2;
  background: white;
  border: 2px solid #222;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.region.sound     { background: #4CAF50 !important; }
.region.caries   { background: #F44336 !important; }
.region.amalgam   { 
    background-color: #795548 !important; 
    background-image: linear-gradient(45deg, 
        rgba(0,0,0,0.3) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.3) 75%, 
        transparent 75%, 
        transparent
    ) !important;
    background-size: 8px 8px !important;
}
.region.composite { 
    background-color: #2196F3 !important; 
    background-image: linear-gradient(0deg, 
        rgba(0,0,0,0.3) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.3) 75%, 
        transparent 75%, 
        transparent
    ) !important;
    background-size: 8px 8px !important;
}
.region.filled    { background: #2196F3; }
.region.missing   { background: #9E9E9E !important; }
.region.extracted { background: #ff9800 !important; }
.region.defective { background: #9C27B0 !important; }
.dot.caries { background: #F44336; }

/* View mode specific styles */
.view-mode .tooth-grid {
    width: 32px !important;
    height: 32px !important;
}
.view-mode .tooth {
    width: 40px !important;
    height: 40px !important;
}
.view-mode .tooth-number {
    font-size: 11px !important;
    top: -16px !important;
}
.view-mode .upper-teeth, .view-mode .lower-teeth {
    gap: 4px !important;
}

/* Add view mode specific region styles */
.view-mode .region.sound  { background: #4CAF50; }
.view-mode .region.caries  { background: #F44336; }
.view-mode .region.filled { background: #2196F3; }
.view-mode .region.missing{ background: #9E9E9E; }
.view-mode .region.extracted { background: #ff9800; }
.view-mode .region.defective { background: #9C27B0; }
.view-mode .region.amalgam { 
    background-color: #795548;
    background-image: linear-gradient(45deg, 
        rgba(0,0,0,0.3) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.3) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 8px 8px;
}
.view-mode .region.composite { 
    background-color: #2196F3;
    background-image: linear-gradient(0deg, 
        rgba(0,0,0,0.3) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.3) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 8px 8px;
} 