/* 
 * Custom CSS for Beneficiaries Section
 * Matches the Saihatss website styling patterns
 */

/* Additional form styling specifically for beneficiaries */
.inline_form > div {
    flex-basis: calc(50% - 10px);
    margin-bottom: 20px;
}

.inline_form > div span {
    min-width: 90px;
    display: block;
    margin-bottom: 8px;
}

/* Custom styles for the page container */
.page_container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.page_subtitle {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color, #0056b3);
    position: relative;
    padding-bottom: 10px;
}

.page_subtitle:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color, #0056b3);
    bottom: 0;
    left: 0;
}

.page_content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

/* Services Grid */
.services_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service_item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service_icon {
    font-size: 40px;
    color: var(--primary-color, #0056b3);
    margin-bottom: 15px;
}

.service_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.service_description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.service_link {
    color: var(--primary-color, #0056b3);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.service_link:hover {
    color: var(--secondary-color, #003d7a);
}

/* Side column styles */
.side-column .page_container {
    height: 100%;
}

.contact_info {
    margin-top: 20px;
}

.contact_item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.contact_item i {
    width: 30px;
    color: var(--primary-color, #0056b3);
    font-size: 18px;
}

.contact_item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact_item a:hover {
    color: var(--primary-color, #0056b3);
}

/* Action buttons */
.action_buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.action_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color, #0056b3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.action_button:hover {
    background-color: var(--secondary-color, #003d7a);
    color: #fff;
}

.secondary_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-color, #0056b3);
    border: 1px solid var(--primary-color, #0056b3);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary_button:hover {
    background-color: var(--primary-color, #0056b3);
    color: #fff;
}

/* Form styling */
.submit_container {
    margin-top: 30px;
    text-align: center;
}

.submit {
    background-color: var(--primary-color, #0056b3);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit:hover {
    background-color: var(--secondary-color, #003d7a);
}

/* Information box */
.info_box {
    display: flex;
    align-items: center;
    background-color: rgba(0, 86, 179, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.info_icon {
    font-size: 20px;
    color: var(--primary-color, #0056b3);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.info_content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Lists */
.eligibility_list,
.document_list {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 25px;
}

.eligibility_list li,
.document_list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

.eligibility_list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color, #0056b3);
}

.document_list li {
    display: flex;
    align-items: center;
    padding-left: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: default;
}

.document_list li:hover {
    transform: translateX(5px);
    color: var(--primary-color, #0056b3);
}

.document_list li i {
    color: var(--primary-color, #0056b3);
    width: 25px;
    font-size: 16px;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.document_list li:hover i {
    transform: scale(1.2);
}

/* Checkbox container */
.checkbox_container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox_container input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox_container label {
    font-size: 15px;
    color: #555;
}

/* Form validation error */
.text-danger {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Alert box */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

.alert ul {
    padding-left: 20px;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .inline_form > div {
        flex-basis: 100% !important;
    }
    
    .services_grid {
        grid-template-columns: 1fr;
    }
    
    .page_subtitle {
        font-size: 20px;
    }
    
    .action_buttons {
        flex-direction: column;
    }
    
    .action_button,
    .secondary_button {
        width: 100%;
    }
}

/* Profile page styling */
.profile_header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile_avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    color: var(--primary-color, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile_info {
    flex-grow: 1;
}

.profile_info h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #333;
}

.profile_status {
    margin-bottom: 8px;
}

.profile_status .status_badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.profile_status.pending .status_badge {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.profile_status.approved .status_badge {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile_status.rejected .status_badge {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile_id {
    font-size: 15px;
    color: #666;
}

.profile_actions {
    margin-left: auto;
}

.profile_details {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.profile_detail_item {
    margin-bottom: 15px;
}

.detail_label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

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

/* Status card styling */
.status_card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status_card.pending {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.status_card.approved {
    background-color: #f0f8f1;
    border-left: 4px solid #28a745;
}

.status_card.rejected {
    background-color: #fdf7f7;
    border-left: 4px solid #dc3545;
}

.status_icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status_card.pending .status_icon {
    color: #6c757d;
}

.status_card.approved .status_icon {
    color: #28a745;
}

.status_card.rejected .status_icon {
    color: #dc3545;
}

.status_text h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.status_text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Aid requests and vouchers */
.aid_requests,
.vouchers {
    margin-bottom: 30px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-active {
    background-color: #cce5ff;
    color: #004085;
}

.status-used {
    background-color: #d4edda;
    color: #155724;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

/* Empty state */
.empty_state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.empty_icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty_state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Quick actions */
.quick_actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick_action_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

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

.quick_action_icon {
    font-size: 24px;
    color: var(--primary-color, #0056b3);
    margin-bottom: 10px;
}

.quick_action_text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Responsive styles for profile */
@media (max-width: 767px) {
    .profile_header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile_avatar {
        margin: 0 auto;
    }
    
    .profile_info {
        width: 100%;
        text-align: center;
    }
    
    .profile_actions {
        width: 100%;
        margin-left: 0;
        display: flex;
        justify-content: center;
    }
    
    .quick_actions {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Aid Types styling */
.aid_types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.aid_type_item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aid_type_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.aid_type_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color, #0056b3);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.aid_type_content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.aid_type_content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color, #0056b3);
    border-color: var(--primary-color, #0056b3);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--secondary-color, #003d7a);
    border-color: var(--secondary-color, #003d7a);
}

.btn-outline-primary {
    color: var(--primary-color, #0056b3);
    background-color: transparent;
    border-color: var(--primary-color, #0056b3);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color, #0056b3);
    border-color: var(--primary-color, #0056b3);
}

.ms-2 {
    margin-left: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Responsive styles for aid types */
@media (max-width: 767px) {
    .aid_type_item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .aid_type_icon {
        margin-bottom: 10px;
    }
} 