/* --- Green Theme (Occupation) --- */
.added-card.theme-green {
    border-color: #D1FAE5; /* Light green border */
    background-color: #ffffff; /* White base */
}

    .added-card.theme-green .icon-box {
        background-color: #ECFDF5;
        color: #059669;
    }

    /* Green subtle overlapping circles watermark effect */
    .added-card.theme-green::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        width: 130px;
        height: 130px;
        background: radial-gradient(circle, rgba(209, 250, 229, 0.5) 0%, rgba(209, 250, 229, 0) 70%);
        border-radius: 50%;
        z-index: 1;
    }

    .added-card.theme-green::after {
        content: '';
        position: absolute;
        bottom: -20px;
        right: 50px;
        width: 160px;
        height: 160px;
        background: radial-gradient(circle, rgba(209, 250, 229, 0.6) 0%, rgba(209, 250, 229, 0) 70%);
        border-radius: 50%;
        z-index: 1;
    }

    /* Ensure the white data boxes have a light green border in this theme */
    .added-card.theme-green .detail-item {
        border-color: #ECFDF5;
    }
/* --- Added Details Cards --- */
.added-card {
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background-color: #ffffff; /* White background by default */
}

    /* Blue Theme (Family) */
    .added-card.theme-blue {
        border-color: #DBEAFE;
    }

        .added-card.theme-blue .icon-box {
            background-color: #EFF6FF;
        }
        /* This creates the subtle blue overlapping circles watermark effect */
        .added-card.theme-blue::before {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(219, 234, 254, 0.4) 0%, rgba(219, 234, 254, 0) 70%);
            border-radius: 50%;
            z-index: 1;
        }

        .added-card.theme-blue::after {
            content: '';
            position: absolute;
            bottom: -30px;
            right: 40px;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(219, 234, 254, 0.5) 0%, rgba(219, 234, 254, 0) 70%);
            border-radius: 50%;
            z-index: 1;
        }

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 2; /* Ensures text stays above watermark */
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-label {
    font-size: 0.75rem;
    color: #4B5563;
    font-weight: 500;
    margin-bottom: 2px;
}

.card-value-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    text-transform: uppercase;
}

.card-actions i {
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 10px;
}

.icon-edit {
    color: #3B82F6;
}

.icon-delete {
    color: #EF4444;
}

/* Grid for the data items */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* Individual Data Pill inside the card */
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #ffffff; /* White background inside the pill */
    border: 1px solid #EFF6FF; /* Very light blue border */
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}

    .detail-item .lbl {
        font-size: 0.7rem;
        color: #6B7280;
        font-weight: 500;
    }

    .detail-item .val {
        font-size: 0.9rem;
        font-weight: 700;
        color: #065F46; /* The dark green text color from your image */
    }
/* --- Page Typography --- */
.page-title {
    color: #374151;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* --- Main Cards & Sections --- */
.main-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 24px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .section-title i {
        color: #059669;
        font-size: 1.1rem;
    }

.count-badge {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4B5563;
}

/* --- Business Entity Type Selectors --- */
.entity-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.entity-card {
    flex: 1;
    min-width: 120px;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .entity-card i {
        font-size: 1.5rem;
        color: #6B7280;
    }

    .entity-card span {
        font-size: 0.8rem;
        font-weight: 600;
        color: #4B5563;
        text-align: center;
    }

    .entity-card:hover {
        border-color: #D1D5DB;
        background-color: #F9FAFB;
    }

    .entity-card.active {
        border-color: #10B981;
        background-color: #ECFDF5;
    }

        .entity-card.active i, .entity-card.active span {
            color: #059669;
        }

/* --- Form Controls --- */
.custom-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 6px;
    display: block;
}

.custom-input, .custom-select {
    background-color: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #1F2937;
    width: 100%;
}

    .custom-input::placeholder, .custom-select {
        color: #9CA3AF;
    }

        .custom-input:focus, .custom-select:focus {
            background-color: #ffffff;
            border-color: #3B82F6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
            outline: none;
        }

/* --- Buttons --- */
.btn-outline-select {
    background-color: white;
    border: 1px solid #3b82f6;
    color: #3B82F6;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-blue-action-Proprietor {
    background-color: #3372cf;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 24px;
    transition: 0.2s;
}

    .btn-blue-action-Proprietor:hover {
        background-color: #1D4ED8;
    }

.badge-green {
    background-color: #D1FAE5;
    color: #065F46;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #A7F3D0;
}

/* --- Custom Upload Inputs --- */
.upload-input-group {
    display: flex;
}

    .upload-input-group .custom-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.btn-upload-attach {
    background-color: #ECFDF5;
    color: #059669;
    border: 1px dashed #A7F3D0;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

    .btn-upload-attach:hover {
        background-color: #D1FAE5;
    }

/* --- Image Upload Box --- */
.image-upload-box {
    background-color: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

    .image-upload-box i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .image-upload-box:hover {
        background-color: #ECFDF5;
        border-color: #10B981;
    }

/* --- Yes/No Toggles --- */
.toggle-group {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    background-color: #F3F4F6;
    color: #4B5563;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

    .toggle-btn.active {
        background-color: #059669;
        color: white;
    }

/* --- Added Details Cards --- */
.added-card {
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

    /* Blue Theme (Family) */
    .added-card.theme-blue {
        background-color: #F0F5FF;
        border-color: #E0E7FF;
    }

        .added-card.theme-blue .icon-box {
            background-color: #DBEAFE;
            color: #3B82F6;
        }

    /* Green Theme (Occupation) */
    .added-card.theme-green {
        background-color: #F0FDF4;
        border-color: #D1FAE5;
    }

        .added-card.theme-green .icon-box {
            background-color: #DCFCE7;
            color: #10B981;
        }

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-label {
    font-size: 0.65rem;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.card-value-main {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.card-actions i {
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 8px;
}

.icon-edit {
    color: #3B82F6;
}

.icon-delete {
    color: #EF4444;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .detail-item .lbl {
        font-size: 0.65rem;
        color: #6B7280;
    }

    .detail-item .val {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1F2937;
    }

/* --- Saved Details Footer Cards --- */
.saved-card {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
}

.saved-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.saved-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1F2937;
    margin-bottom: 2px;
}

.saved-phone {
    font-size: 0.75rem;
    color: #6B7280;
}

.saved-icon {
    color: #059669;
    font-size: 1.2rem;
}

.saved-actions i {
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.icon-view {
    color: #8B5CF6;
}

.saved-stats {
    display: flex;
    gap: 8px;
}

.stat-pill {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
}

    .stat-pill.blue {
        background-color: #EFF6FF;
        color: #1E3A8A;
    }

    .stat-pill.green {
        background-color: #F0FDF4;
        color: #064E3B;
    }

.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.popup-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    animation: fadeIn 0.2s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.popup-body {
    padding: 20px;
    background: #f8f9fb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

