/* General Body & Theme */
body {
    background-color: #f0f2f5; /* Light grey background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures child elements respect the border-radius */
}

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient header */
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-weight: 300;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 2rem;
}

/* Form & Input Styling */
.form-label {
    font-weight: 600;
    color: #495057;
}

.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: 0;
    color: #007bff;
}

.form-control {
    border-left: 0;
    height: 48px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Styling */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary, .btn-success {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Registration Wizard Progress Bar */
.progress {
    height: 20px; /* Increased height for better visibility of text */
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, #007bff, #00c6ff); /* Blue gradient */
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
}

/* Links */
a {
    color: #007bff;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Animation for form steps */
.form-step {
    animation: slide-in 0.5s forwards;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dashboard Navbar */
.navbar-dark.bg-dark {
    background: linear-gradient(135deg, #343a40, #23272b) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Dashboard Welcome Alert */
.alert-success {
    background-color: #fff;
    border-left: 5px solid #28a745;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.alert-success .alert-heading {
    color: #155724;
}

/* Validation states */
.is-invalid {
    color: #dc3545;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc3545 !important;
}

.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.input-group .form-control.is-invalid {
    border-left: 1px solid #dc3545 !important;
}