/* ===========================================
   E-CARD STYLES
   =========================================== */

.ecard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.ecard-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 5px 0 5px 0;
    background: #e2e2e2;
    color: #334e96;
    border-radius: 5px;
}

.ecard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px;
}

.ecard-subtitle {
    font-size: 1.5rem;
    margin: 0;
}

/* E-card Generator Form */
.ecard-generator .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 12px;
}

.ecard-generator .card-header {
    background: #e2e2e2;
    border-bottom: 1px solid #e1e5e9;
    border-radius: 12px 12px 0 0;
}

.ecard-generator .card-header h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.social-links-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.social-links-section h5 {
    color: #495057;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    margin: 0 10px;
    min-width: 150px;
}

/* E-card Display 
.ecard-display {
    margin-top: 30px;
}
*/

.ecard-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.ecard-preview {
    background: #334e96;
    border-radius: 20px;
    padding: 15px;
    color: white;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.6s;
    min-width: 350px;
}

.ecard-front {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecard-header-section {
    text-align: center;
}
.ecard-company-info{
    text-align: center;
    padding-left: 10px;
}

.ecard-logo {
    margin: 0px 5px 5px 10px;
}

.ecard-logo .logo-img {
    width: 45%; 
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    max-height: 200px;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-name {
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.description {
    font-size: 1rem;
    margin: 0 0 5px 0;
    font-style: italic;
}

.industry {
    font-size: 0.9rem;
    margin: 0;
}

.ecard-contact-section {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
}

.contact-details {
    flex: 1;
}

.ecard-contact-section .contact-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ecard-contact-section .contact-item i {
    width: 20px;
    font-size: 16px;
    opacity: 0.8;
    color: #ffffff;
}

.ecard-contact-section .contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item.address {
    align-items: flex-start;
}

.contact-item.address span {
    font-size: 14px;
    line-height: 1.4;
}

.ecard-social-section {
    margin-bottom: 20px;
}

.ecard-social-section h4 {
    font-size: 1rem;
    margin: 0 0 15px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link.facebook { background: #3b5998; }
.social-link.instagram { background: #e4405f; }
.social-link.linkedin { background: #0077b5; }
.social-link.twitter { background: #1da1f2; }
.social-link.youtube { background: #ff0000; }

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ecard-qr-section {
    text-align: center;
}

.ecard-qr-section img,
.ecard-qr-section canvas {
    border: solid 5px #fff;
    border-radius: 5px;
}

.qr-code {
    margin-bottom: 5px;
}

.qr-text {
    font-size: 0.8rem;
    margin: 0;
}

/* E-card Actions */
.ecard-actions {
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 150px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* E-card Link Section */
.ecard-link-section .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.ecard-link-section .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e5e9;
}

.ecard-link-section .input-group {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecard-container {
        padding: 10px;
    }
    
    .ecard-header {
        padding: 20px 0;
    }
    
    .ecard-title {
        font-size: 2rem;
    }
    
    .ecard-subtitle {
        font-size: 1rem;
    }
    
    .ecard-preview {
        width: 350px;
        height: 550px;
        padding: 25px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .contact-name {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-actions .btn {
        margin: 5px;
        min-width: 120px;
    }
    
    /* QR Code tablet styling */
    .ecard-qr-section img {
        border: solid 5px #fff !important;
        border-radius: 5px !important;
    }
}

@media (max-width: 480px) {
    .ecard-preview {
        width: 300px;
        height: auto;
        padding: 20px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .contact-name {
        font-size: 1.1rem;
    }
    
    .contact-item i {
        width: 0px;
        margin-right: 12px;
        font-size: 14px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* QR Code mobile styling */
    .ecard-qr-section img,
    .ecard-qr-section canvas {
        border: solid 5px #fff !important;
        border-radius: 5px !important;
        margin: 0 auto !important;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecard-preview {
    animation: fadeInUp 0.6s ease-out;
}

/* E-card Info Section */
.ecard-info {
    margin-top: 30px;
}

.ecard-info .info-item {
    text-align: center;
    padding: 20px;
}

.ecard-info .info-item i {
    margin-bottom: 15px;
}

.ecard-info .info-item h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.ecard-info .info-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* E-card Icon in Navigation */
.ecard-icon {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.ecard-icon::before {
    content: "E";
}

/* E-card Button in Business Cards */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    color: white;
}

/* Print Styles */
@media print {
    .ecard-actions,
    .ecard-link-section,
    .ecard-generator {
        display: none !important;
    }
    
    .ecard-preview {
        box-shadow: none;
        transform: none;
        width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
}
