/* Custom CSS for Karamyogi Portal */

/* Base styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-custom-green {
    background-color: #008080;
    border-color: #008080;
    color: #fff;
}

.btn-custom-green:hover {
    background-color: #006666;
    border-color: #006666;
    color: #fff;
}

/* Cards */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #007bff;
    font-weight: 600;
}

/* Specific styles for KYC verification page */
.kyc-card .card-title {
    color: #008080;
    border-bottom: 2px solid #008080;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.kyc-sidebar {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.kyc-sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.kyc-sidebar .nav-link:hover,
.kyc-sidebar .nav-link.active {
    background-color: #008080;
    color: #fff;
}

.kyc-sidebar .nav-link i {
    margin-right: 8px;
}

/* Form elements */
.form-label {
    font-weight: 500;
    color: #333;
}

.form-control:focus,
.form-select:focus {
    border-color: #008080;
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.25);
}

.form-check-input:checked {
    background-color: #008080;
    border-color: #008080;
}

.form-check-input:focus {
    border-color: #008080;
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.25);
}

/* Section Headers Styling */
.section-header {
    color: #008080;
    font-weight: 600;
    border-left: 4px solid #008080;
    padding-left: 15px;
    margin-bottom: 20px !important;
    font-size: 1.25rem;
}

/* Enhanced Navigation Links Styling */
.form-check-inline {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.form-check-input[type="radio"] {
    display: none;
}

.form-check-label {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.form-check-input[type="radio"]:checked + .form-check-label {
    background: linear-gradient(135deg, #008080, #006666);
    color: white !important;
    border-color: #008080;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.2);
}

.form-check-label:hover:not(:checked) {
    background-color: #e9ecef;
    border-color: #008080;
    transform: translateY(-2px);
}

/* Mobile responsive adjustments for navigation links */
@media (max-width: 768px) {
    .form-check-inline {
        display: inline-block;
        margin-right: 0.25rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .form-check-label {
        min-width: auto;
        width: auto;
        display: inline-block;
        margin-bottom: 0.5rem;
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .mb-4 {
        text-align: center;
    }

    /* Fix for form labels alignment on mobile */
    .form-label {
        text-align: left !important;
    }
    
    /* Fix for form group alignment on mobile */
    .row .col-md-6 {
        text-align: left !important;
    }
}

/* Alerts */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Verification Success Container */
.verification-success-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 128, 128, 0.1);
}

.verification-success-container .success-icon {
    margin-bottom: 1.5rem;
}

.verification-success-container .success-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #008080;
}

.verification-success-container .success-details {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Links */
a {
    color: #008080;
    text-decoration: none;
}

a:hover {
    color: #006666;
    text-decoration: underline;
}

/* Captcha */
.captcha-img {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 5px;
    background-color: #f0f0f0;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* OTP Input */
.otp-input-group .form-control {
    width: 50px;
    text-align: center;
    margin-right: 10px;
}

.otp-input-group .form-control:last-child {
    margin-right: 0;
}

/* Star Rating */
.star-rating {
    display: inline-block;
    unicode-bidi: bidi-override;
    direction: rtl;
}

.star-rating > input {
    display: none;
}

.star-rating > label {
    font-size: 25px;
    color: #ccc;
    cursor: pointer;
    padding: 0 2px;
}

.star-rating > input:checked ~ label,
.star-rating > input:checked ~ label ~ label {
    color: #ffc107;
}

.star-rating > label:hover,
.star-rating > label:hover ~ label {
    color: #ffc107;
}

.star-rating > input:checked + label:hover,
.star-rating > input:checked + label:hover ~ label,
.star-rating > input:checked ~ label:hover,
.star-rating > input:checked ~ label:hover ~ label {
    color: #ffc107;
}

/* Form Validation */
.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}

/* Radio buttons */
.form-check-inline {
    margin-right: 1rem;
}

.form-check-input[type="radio"] {
    display: inline-block;
    opacity: 1;
    position: relative;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.form-check-label {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #495057;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.form-check-input[type="radio"]:checked + .form-check-label {
    background-color: rgba(0, 128, 128, 0.1);
    color: #008080;
    border-color: #008080;
    font-weight: bold;
}

.form-check-label:hover {
    background-color: #e2e6ea;
}

/* Rating labels */
.rating-label-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.rating-label-group .rating-star {
    font-size: 1.5rem;
    color: #ddd;
}

.rating-label-group .rating-text {
    font-size: 0.7rem;
    color: #777;
    margin-top: 2px;
}

input[type="radio"]:checked + .rating-label-group .rating-star {
    color: #f5b301;
}

.d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
}

.d-flex.justify-content-between.align-items-center > label {
    flex-basis: auto;
    margin-right: 1rem;
}

.d-flex.justify-content-between.align-items-center > div.d-flex {
    flex-grow: 1;
    justify-content: flex-end;
}

/* Shortlist candidates table */
.card.mb-4 {
    margin-bottom: 2rem !important;
}

.table-responsive table.table th,
.table-responsive table.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-responsive table.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

/* Mobile Verification Steps */
.verification-steps-mobile {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.steps-indicator {
    position: relative;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

.step.active .step-number {
    background: #008080;
    color: white;
    border-color: #008080;
    transform: scale(1.1);
}

.step.active .step-label {
    color: #008080;
    font-weight: 600;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step.completed .step-label {
    color: #28a745;
}

.step-separator {
    height: 2px;
    background: #dee2e6;
    margin: 0 8px;
    align-self: center;
    position: relative;
    top: 20px;
}

.step.completed + .step-separator {
    background: #28a745;
}

.steps-navigation {
    margin-top: 20px;
}

.btn-prev, .btn-next {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Additional enhancements for professional look */
.bg-light {
    background-color: #f8f9fa !important;
}

.rounded-3 {
    border-radius: 0.75rem !important;
}

.text-custom-green {
    color: #008080 !important;
}

.fw-medium {
    font-weight: 500;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.border-0 {
    border: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kyc-card .card-title {
        font-size: 1.5rem;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .form-check-inline {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    /* Mobile verification steps */
    .verification-steps-mobile {
        padding: 20px 15px;
        margin-top: 15px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-separator {
        top: 18px;
    }

    .btn-prev, .btn-next {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .btn-prev i, .btn-next i {
        font-size: 1rem;
    }
}