/* Card Content Styles */

.CardBody {
    padding: 80px 24px 32px 24px;
    position: relative;
    z-index: 1;
}

.CardName {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

.CardTitle {
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.CardDepartment {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--hi-colors-primary);
}

.CardCompany {
    font-size: 16px;
    color: #718096;
    margin-bottom: 16px;
}

.CardHeadline {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
    margin-bottom: 16px;
}

.CardPreferred {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preferred-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.CardContact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--hi-colors-gray-200);
    padding-top: 16px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--hi-colors-primary);
    flex-shrink: 0;
}

.contact-text {
    font-size: 14px;
    color: #4a5568;
    flex: 1;
}

.contact-link {
    color: var(--hi-colors-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    line-height: 1.4;
    flex: 1;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--hi-colors-primary);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--hi-colors-primary);
}

/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s;
    min-height: 48px;
}

.file-upload:hover .file-upload-label {
    border-color: var(--hi-colors-primary);
    background: #fdf2f8;
    color: var(--hi-colors-primary);
}

/* Color Picker Styles */
.color-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #374151;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #374151;
}

/* Custom Color Picker Specific Styles */
.color-option.custom-color-picker {
    background: linear-gradient(45deg, 
        #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    border: 2px solid #e2e8f0;
}

.color-option.custom-color-picker:hover {
    border-color: #cbd5e0;
}

.color-option.custom-color-picker.selected {
    border-color: #374151;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #374151;
}

.custom-color-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-option.custom-color-picker i {
    color: #ffffff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Avatar Size Options */
.avatar-options {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.avatar-option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    background: white;
}

.avatar-option:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.avatar-option.selected {
    border-color: var(--hi-colors-primary);
    background: #fdf2f8;
    color: var(--hi-colors-primary);
}

/* Bank Information Styles */
.bank-info-display {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.bank-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.bank-info-title {
    font-size: 14px;
    color: var(--primary-color);
    line-height: 1.4;
    flex: 1;
}

.bank-details {
    margin-bottom: 15px;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-detail-item:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 500;
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 12px;
}

.bank-value {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
}

.bank-qr-display {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-top: 12px;
}

.bank-qr-image {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qr-scan-text {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Custom Color Picker Styles */
.custom-color-section {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.custom-color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-color-picker {
    width: 40px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.custom-color-picker::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.custom-color-picker::-moz-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.custom-color-display {
    flex: 1;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-color);
    font-family: monospace;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .bank-info-display {
        margin-top: 15px;
    }

    .bank-qr-image {
        max-width: 130px;
        max-height: 130px;
    }

    .bank-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bank-label {
        font-size: 11px;
    }

    .bank-value {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Card Body Mobile - Keep desktop spacing */
    .CardBody {
        padding: 80px 24px 32px 24px; /* Same as desktop */
    }
    
    /* Full avatar body adjustment */
    .avatar-full .CardBody {
        padding: 24px 24px 32px 24px; /* Better spacing for full avatar */
    }
    
    .CardName {
        font-size: 24px;
    }
    
    .CardTitle {
        font-size: 16px;
    }
    
    .CardDepartment,
    .CardCompany {
        font-size: 14px;
    }
    
    .CardHeadline {
        font-size: 13px;
    }
    
    .CardPreferred {
        font-size: 13px;
    }
    
    .contact-item {
        gap: 10px;
        padding: 6px 0;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
    
    .contact-link,
    .contact-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Card Body Small Mobile - Better spacing */
    .CardBody {
        padding: 70px 20px 28px 20px; /* Better spacing like desktop */
    }
    
    /* Full avatar body adjustment for small mobile */
    .avatar-full .CardBody {
        padding: 24px 20px 28px 20px; /* Better spacing for full avatar */
    }
    
    .CardName {
        font-size: 20px; /* Smaller for mobile */
        margin-bottom: 6px;
    }
    
    .CardTitle {
        font-size: 14px; /* Smaller */
    }
    
    .CardDepartment,
    .CardCompany {
        font-size: 12px; /* Smaller */
    }
    
    .CardHeadline {
        font-size: 11px; /* Smaller */
        margin-bottom: 12px;
    }
    
    .CardPreferred {
        font-size: 11px;
    }
    
    .contact-item {
        gap: 8px;
        padding: 5px 0;
    }
    
    .contact-icon {
        width: 16px;
        height: 16px;
    }
    
    .contact-link,
    .contact-text {
        font-size: 12px;
    }

    .bank-info-display {
        margin-top: 12px;
    }

    .bank-qr-image {
        max-width: 110px;
        max-height: 110px;
    }

    .bank-info-title {
        font-size: 12px;
    }

    .custom-color-picker {
        width: 35px;
        height: 28px;
    }

    .custom-color-display {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Zalo Icon Font-like Style - Using simplified version from zalo.svg */
.zalo-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 806 715'%3E%3Cpath d='M403 20c181 0 333 131 333 315s-152 315-333 315S70 519 70 335S222 20 403 20zm-138 213c39-45 97-73 165-73s126 28 165 73l60 75-60 75c-39 45-97 73-165 73s-126-28-165-73l-60-75 60-75zm138-105c125 0 240 63 315 168l-45 60c-60-75-150-120-270-120s-210 45-270 120l-45-60c75-105 190-168 315-168zm-255 315c0 75 30 150 90 203l60-75c-30-30-45-75-45-128s15-98 45-128l-60-75c-60 53-90 128-90 203zm480 0c0-75-30-150-90-203l-60 75c30 30 45 75 45 128s-15 98-45 128l60 75c60-53 90-128 90-203z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 806 715'%3E%3Cpath d='M403 20c181 0 333 131 333 315s-152 315-333 315S70 519 70 335S222 20 403 20zm-138 213c39-45 97-73 165-73s126 28 165 73l60 75-60 75c-39 45-97 73-165 73s-126-28-165-73l-60-75 60-75zm138-105c125 0 240 63 315 168l-45 60c-60-75-150-120-270-120s-210 45-270 120l-45-60c75-105 190-168 315-168zm-255 315c0 75 30 150 90 203l60-75c-30-30-45-75-45-128s15-98 45-128l-60-75c-60 53-90 128-90 203zm480 0c0-75-30-150-90-203l-60 75c30 30 45 75 45 128s-15 98-45 128l60 75c60-53 90-128 90-203z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: -0.125em;
}

.contact-icon.zalo-icon {
    font-size: 16px;
    margin-right: 8px;
}