body {
    font-family: Arial, sans-serif;
    background-color: #fcfcfc;
    margin: 0;
    padding: 40px 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
    letter-spacing: 0.3px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.input-group input::placeholder {
    color: #aaa;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.btn-file {
    padding: 10px 16px;
    border: 2px solid #ddd;
    background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-file:hover {
    border-color: #ff9320;
    background: linear-gradient(to bottom, #fff, #f8f8f8);
    transform: translateY(-1px);
}

#fileName {
    color: #888;
    font-size: 12px;
}

.vcard-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 45px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    margin-bottom: 30px;
    gap: 40px;
    max-width: 550px;
    height: 290px;
}

.vcard-text {
    flex: 1;
    color: #ffffff;
}

.vcard-text h2 {
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #ffffff;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff9320;
}

.job-line {
    color: #b8b8b8;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
}

.vcard-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vcard-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #d0d0d0;
}

.vcard-contact-item svg {
    width: 16px;
    height: 16px;
    fill: #888;
    flex-shrink: 0;
}

.vcard-qr {
    flex-shrink: 0;
}

.qr-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid #ff9320;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#qrcode {
    position: relative;
    z-index: 1;
    background: white;
    padding: 10px;
    border-radius: 6px;
}

#qrcode img {
    width: 115px !important;
    height: 115px !important;
    display: block;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-yellow {
    background-color: #ff9320;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    color: #1a1a1a;
    font-size: 13px;
}

.btn-yellow:hover {
    background-color: #fa8d19;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 147, 32, 0.4);
}

.btn-light {
    background-color: transparent;
    border: 2px solid #ff9320;
    padding: 10px 18px;
    border-radius: 20px;
    color: #ff9320;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.btn-light:hover {
    background-color: #ff9320;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.footer-note {
    font-size: 11px;
    color: #999;
    max-width: 500px;
    text-align: center;
}

#disp-logo {
    display: none;
    max-width: 85px;
    margin-bottom: 15px;
    border-radius: 6px;
    filter: brightness(1.1);
}

.input-group input:focus {
    outline: none; 
    border-color: #ff9320; 
    box-shadow: 0 0 8px rgba(255, 147, 32, 0.3); 
    background-color: #fffbf7;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .preview-container {
        padding-top: 20px;
    }
    
    .vcard-card {
        max-width: 550px;
        height: auto;
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    .preview-container {
        padding-top: 20px;
    }

    .vcard-card {
        flex-direction: column;
        padding: 28px;
        gap: 24px;
        align-items: center;
        text-align: center;
        max-width: 100%;
        height: auto;
    }
    
    .vcard-text {
        width: 100%;
    }
    
    .vcard-contact-info {
        align-items: center;
    }

    .vcard-text h2 {
        font-size: 22px;
        margin: 0 0 10px 0;
        padding-bottom: 10px;
    }
    
    .job-line {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .vcard-contact-item {
        font-size: 13px;
        justify-content: center;
    }

    .vcard-qr {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .qr-wrapper {
        width: 120px;
        height: 120px;
    }

    .qr-circle {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }

    #qrcode {
        padding: 8px;
    }

    #qrcode img {
        width: 90px !important;
        height: 90px !important;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-yellow,
    .btn-light {
        width: 100%;
        padding: 12px;
    }

    .input-group input {
        font-size: 16px;
    }

    .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .btn-file {
        width: 100%;
        text-align: center;
    }

    #disp-logo {
        max-width: 70px;
    }
}

@media (max-width: 380px) {
    .vcard-card {
        padding: 24px;
    }

    .vcard-text h2 {
        font-size: 20px;
    }
    
    .vcard-contact-item {
        font-size: 12px;
    }

    .qr-wrapper {
        width: 110px;
        height: 110px;
    }

    .qr-circle {
        width: 110px;
        height: 110px;
    }

    #qrcode {
        padding: 6px;
    }

    #qrcode img {
        width: 80px !important;
        height: 80px !important;
    }
}