/* Modern Dental Queue - Custom Styles */

:root {
    --primary-color: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #38BDF8;
    --secondary-color: #8B5CF6;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --error-color: #EF4444;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-gradient-start: #0EA5E9;
    --bg-gradient-end: #8B5CF6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    color: var(--text-dark);
}

/* Modern Header */
.modern-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

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

.modern-logo {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-logo:hover {
    transform: scale(1.05);
}

/* Modern Container */
.modern-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.modern-container-wide {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Modern Card */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

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

.modern-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

/* Modern Headings */
.modern-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    text-align: center;
}

.modern-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

/* Modern Form Elements */
.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.modern-input::placeholder {
    color: #9CA3AF;
}

/* Modern Buttons */
.modern-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.modern-btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.modern-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.modern-btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #F97316 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.modern-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.modern-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modern-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-btn-block {
    width: 100%;
    display: block;
}

/* Search Results */
.modern-result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
}

.modern-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.modern-result-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modern-result-info {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Wizard Steps */
.modern-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.modern-wizard::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #E5E7EB;
    z-index: 0;
}

.modern-wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modern-wizard-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.modern-wizard-step.active .modern-wizard-circle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.modern-wizard-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.modern-wizard-step.active .modern-wizard-label {
    color: var(--primary-color);
}

/* Modal */
.modern-modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.modern-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.modern-modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modern-modal-body {
    padding: 2rem;
}

/* Radio & Checkbox */
.modern-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-radio-item {
    flex: 1;
    min-width: 120px;
}

.modern-radio-label {
    display: block;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.modern-radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.05);
}

input[type="radio"]:checked + .modern-radio-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Success/Error Pages */
.modern-message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

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

.modern-message-icon.error {
    background: linear-gradient(135deg, var(--error-color) 0%, #DC2626 100%);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-header {
        padding: 1rem;
    }
    
    .modern-logo {
        max-height: 50px;
    }
    
    .modern-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .modern-title {
        font-size: 1.5rem;
    }
    
    .modern-subtitle {
        font-size: 1rem;
    }
    
    .modern-wizard-label {
        font-size: 0.625rem;
    }
    
    .modern-wizard-circle {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.modern-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Input Group */
.modern-input-group {
    display: flex;
    gap: 0;
}

.modern-input-group .modern-input {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.modern-input-group .modern-btn {
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
}

/* Badge */
.modern-badge {
    display: inline-block;
    padding: 0.1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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