:root {
    --primary-color: #6f42c1;
    /*--secondary-color: #6c757d;*/
    --success-color: #198754;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d6efd 100%);
    color: white;
    padding: 10px 0;
    margin-bottom: 40px;
}

.example-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.example-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.example-body {
    padding: 25px 20px;
    min-height: 100px;
}

.example-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.code-container {
    background-color: #282c34;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.section-title {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}


.form-demo {
    max-width: 500px;
    margin: 0 auto;
}

.interactive-controls {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.validation-demo {
    margin-bottom: 20px;
}

.custom-validation .form-control:valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.custom-validation .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.tooltip-inner {
    max-width: 200px;
    padding: 8px 12px;
    text-align: left;
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-0 {
    width: 0%;
    background-color: #dc3545;
}

.strength-1 {
    width: 25%;
    background-color: #dc3545;
}

.strength-2 {
    width: 50%;
    background-color: #fd7e14;
}

.strength-3 {
    width: 75%;
    background-color: #ffc107;
}

.strength-4 {
    width: 100%;
    background-color: #198754;
}
