/* Wizard Global Styles */
body {
    background-color: #1a202c;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wizard-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wizard-content {
    max-width: 900px;
    width: 100%;
    background-color: #2d3748;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 20px;
}

.wizard-progress .progress {
    background-color: #4a5568;
    border-radius: 10px;
    overflow: hidden;
}

.wizard-progress .progress-bar {
    transition: width 0.4s ease;
}

/* Headers */
.wizard-header h1,
.wizard-header h2 {
    color: #e2e8f0;
    font-weight: 600;
}

.wizard-header .text-muted {
    color: #a0aec0 !important;
}

.wizard-icon {
    display: inline-block;
    animation: fadeIn 0.6s ease;
}

/* Welcome Cards */
.wizard-welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.wizard-feature-card {
    background-color: #374151;
    border: 1px solid #4a5568;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wizard-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.wizard-feature-card .card-body {
    padding: 25px;
}

.feature-icon {
    margin-bottom: 15px;
}

.wizard-feature-card .card-title {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.wizard-feature-card .card-text {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Selection Cards */
.selection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.selection-card {
    cursor: pointer;
    display: block;
}

.wizard-option-card {
    background-color: #374151;
    border: 2px solid #4a5568;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.wizard-option-card:hover {
    border-color: #4299e1;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.wizard-option-card.selected {
    border-color: #4299e1;
    background-color: #2c5282;
    box-shadow: 0 0 20px rgba(66, 153, 225, 0.5);
}

.option-icon {
    margin-bottom: 15px;
}

.wizard-option-card h4 {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.wizard-option-card .text-muted {
    color: #a0aec0 !important;
}

.example-box {
    background-color: #2d3748;
    padding: 10px;
    border-radius: 5px;
    border: 1px dashed #4a5568;
}

/* Form Styles */
.form-label {
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    background-color: #374151;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 1rem;
}

.form-control:focus {
    background-color: #374151;
    border-color: #4299e1;
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #718096;
}

.form-text {
    color: #a0aec0 !important;
    font-size: 0.875rem;
}

.text-danger {
    color: #fc8181 !important;
}

/* Glycemia Display */
.glycemia-display {
    padding: 20px;
    background-color: #2d3748;
    border-radius: 8px;
    text-align: center;
}

.glycemia-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.glycemia-delta {
    font-size: 1.5rem;
    color: #a0aec0;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #4299e1;
    border-color: #4299e1;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.btn-primary:disabled {
    background-color: #4a5568;
    border-color: #4a5568;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-outline-primary {
    color: #4299e1;
    border-color: #4299e1;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #4299e1;
    border-color: #4299e1;
    color: #fff;
}

.btn-outline-secondary {
    color: #a0aec0;
    border-color: #4a5568;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
}

.btn-success {
    background-color: #48bb78;
    border-color: #48bb78;
    color: #fff;
}

.btn-success:hover {
    background-color: #38a169;
    border-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background-color: #2c5282;
    color: #bee3f8;
}

.alert-success {
    background-color: #276749;
    color: #9ae6b4;
}

.alert-danger {
    background-color: #742a2a;
    color: #feb2b2;
}

.alert-warning {
    background-color: #744210;
    color: #fbd38d;
}

.alert-heading {
    color: inherit;
    font-weight: 600;
    margin-bottom: 10px;
}

.alert hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    background-color: #374151;
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #e2e8f0;
}

.card-header {
    border-bottom: 1px solid #4a5568;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

.card.border-success {
    border-color: #48bb78;
}

.bg-light {
    background-color: #374151 !important;
}

/* Summary Card */
.summary-card .row {
    padding: 10px 0;
}

.summary-card .row:not(:last-child) {
    border-bottom: 1px solid #4a5568;
}

/* Badge */
.badge {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Success Icon Animation */
.success-icon svg {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Styles */
a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

.text-muted a {
    color: #a0aec0;
}

.text-muted a:hover {
    color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-content {
        padding: 20px;
    }

    .wizard-welcome-cards {
        grid-template-columns: 1fr;
    }

    .selection-cards {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .wizard-navigation .btn {
        width: 100%;
    }

    .glycemia-value {
        font-size: 2rem;
    }

    .glycemia-delta {
        font-size: 1.2rem;
    }
}

/* Code styling */
code {
    background-color: #2d3748;
    color: #fbd38d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Text utilities */
.text-break {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Display utilities */
.display-4 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Additional spacing */
.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

