/* volunteer_with_group.blade.php */
.no-groups-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}

.no-groups-icon {
    color: #6c757d;
}

.no-groups-container h5 {
    color: #343a40;
    font-weight: 600;
}

.no-groups-container p {
    max-width: 400px;
    margin: 0 auto;
}

.no-groups-container .btn {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-groups-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.groups-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.group-row {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 12px;
}

.group-row:hover:not(.disabled-group) {
    background-color: #f8f9fa;
}

.disabled-group {
    opacity: 0.7;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.group-info {
    display: flex;
    flex-direction: column;
}

.group-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.group-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.members-count {
    color: #6c757d;
    font-size: 14px;
}

.size-warning {
    color: #dc3545;
    font-size: 13px;
    font-style: italic;
}

.radio-container {
    position: relative;
    display: flex;
    align-items: center;
}

.disabled-tooltip {
    position: relative;
    margin-left: 5px;
    color: #dc3545;
}

.disabled-tooltip:hover::after {
    content: 'This group exceeds the maximum allowed size';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

input[type="radio"]:disabled {
    cursor: not-allowed;
}

.groups-container::-webkit-scrollbar {
    width: 8px;
}

.groups-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.groups-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.groups-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* application/index.blade.php - auth modal */
.auth-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.auth-modal-header {
    background: linear-gradient(135deg, #00568F 0%, #0066A3 100%);
    color: white;
    border: none;
    padding: 25px 30px;
    position: relative;
    margin: 0;
}

.auth-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.auth-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.auth-header-text { flex: 1; }

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}

.auth-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.auth-modal-body {
    padding: 0;
    background: #f8f9fa;
}

.auth-nav-container {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.auth-nav {
    display: flex;
    padding: 0 30px;
}

.auth-nav-btn {
    background: none;
    border: none;
    padding: 18px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.auth-nav-btn.active { color: #00568F; border-bottom-color: #00568F; }
.auth-nav-btn:hover { color: #00568F; background: rgba(0, 86, 143, 0.05); }

.auth-form-container {
    padding: 30px;
    background: white;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.auth-form { max-width: 100%; }

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-group-modern {
    margin-bottom: 20px;
    position: relative;
}

.form-group-modern.half-width { flex: 1; }
.input-group-modern, .select-group-modern { position: relative; }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-control-modern {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #d2d2d2;
    border-radius: 10px;
    font-size: 16px;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
}

.form-control-modern:focus {
    border-color: #00568F;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 86, 143, 0.1);
}

.form-control-modern:focus ~ .input-icon { color: #00568F; }

.select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    z-index: 3;
    transition: color 0.3s ease;
}

.password-toggle:hover { color: #00568F; }

.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-modern input[type="checkbox"] { display: none; }

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #00568F;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-modern input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: #00568F;
    border-color: #00568F;
}

.checkbox-modern input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.checkbox-text { font-size: 13px; color: #495057; line-height: 1.4; }
.terms-link { color: #00568F; text-decoration: none; font-weight: 600; }
.terms-link:hover { text-decoration: underline; }

.btn-auth-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00568F 0%, #0066A3 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.btn-auth-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0, 86, 143, 0.3); }
.btn-auth-primary:active { transform: translateY(0); }
.btn-auth-primary:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.forgot-link {
    color: #00568F;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.forgot-link:hover { color: #004a7a; text-decoration: underline; }

.alert-success-modern {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.success-title { font-size: 16px; font-weight: 700; margin: 0 0 5px 0; }
.success-text { font-size: 13px; margin: 0; opacity: 0.9; }
#volunteerAuthModalLabel { color: white; }

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show { opacity: 1; }
.error-message.show:before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
}

.flex-col { flex-direction: column !important; }

@media (max-width: 768px) {
    .modal-dialog { max-width: 95%; margin: 10px auto; }
    .auth-modal-header, .auth-form-container { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .auth-nav { padding: 0 20px; }
    .auth-nav-btn { padding: 15px 20px; font-size: 14px; }
    .alert-success-modern { margin: 20px; }
    .form-title { font-size: 20px; }
}

@media (min-width: 768px) {
    .modal-dialog .modal-content { padding: 0 !important; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.125em; }

@media (max-width: 490px) {
    .my-3 { margin-bottom: 1rem !important; }
    .d-flex.flex-col.my-3 { padding-bottom: 72px; }
    .requirement-div {
        display: grid;
        grid-template-columns: 24px 1fr;
        align-items: start;
        column-gap: 10px;
    }
    .requirement-div > input[type="checkbox"] { grid-column: 1; margin-top: 3px; transform: scale(1.15); }
    .requirement-div > label { grid-column: 2; }
    .requirement-div .text-sm, .requirement-div .text-md { line-height: 1.35; word-break: break-word; }
    .requirement-div > span.text-sm.text-muted { grid-column: 2; display: inline; margin-left: 6px; white-space: nowrap; }
    .requirement-div > .error-message { grid-column: 2; }
    .my-3 p { font-size: 0.95rem; }
    .d-flex.justify-content-between.gap-2 { flex-direction: column; gap: 10px !important; }
    .d-flex.justify-content-between.gap-2 > .btn,
    .d-flex.justify-content-between.gap-2 > .d-flex > .btn { width: 100%; }
    .d-flex.justify-content-between.gap-2 > .d-flex { width: 100%; flex-direction: column; gap: 10px; }
    .text-md { font-size: 0.95rem; }
    .text-sm { font-size: 0.85rem; }
}

/* before_interest_confirmed.blade.php */
    /* Mobile-specific styling for confirmation page */
    @media (max-width: 767.98px) {
        .action-buttons-wrapper .btn {
            min-height: 44px;
            font-size: 14px;
            padding: 0.6rem 0.8rem;
            border: 1px solid;
        }
        
        /* Ensure buttons don't overflow */
        .action-buttons-wrapper {
            width: 100%;
            margin-top: 1rem;
            padding: 0;
        }
        
        /* Ensure textarea is properly sized on mobile */
        .form-control {
            font-size: 16px; /* Prevents zoom on iOS */
        }
        
        /* Better spacing for mobile */
        .col-9 {
            padding-left: 10px;
            padding-right: 10px;
        }
        
        /* Ensure flex buttons take equal space */
        .d-flex[style*="gap: 8px"] {
            width: 100%;
        }
        
        .d-flex[style*="gap: 8px"] .btn {
            min-width: 0;
            flex-shrink: 1;
        }
    }
    
    /* Extra small screens */
    @media (max-width: 575.98px) {
        .action-buttons-wrapper .btn {
            font-size: 13px;
            padding: 0.5rem 0.5rem;
        }
        
        .col-9 {
            padding-left: 8px;
            padding-right: 8px;
        }
    }
