
.header {
       text-align: center;
    margin-bottom: 30px;
    padding: 35px 25px;
    border-radius: 20px;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
}

.header-title {
       font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white !important;
}

.header-subtitle {
      color: rgba(255, 255, 255, .95);
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
    font-size: 16px;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.input-card {
    background: #f9f9f9 !important;
    border: 1px solid #f3c6cf !important;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgb(225 188 204 / 76%);
    transition: .3s;
}

.input-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgb(225 188 204 / 85%);
}

.text-input {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #f755f5 !important;
    border-radius: 12px !important;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: .3s;
    font-family: inherit;
}

.text-input:focus {
    border-color: #FB0E76;
}

.text-input::placeholder {
    color: #aaa;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
  padding: 12px 28px !important;
    border: none;
    border-radius: 25px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    color: white;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251, 14, 118, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-clear {
    background: #6c757d;
}

.btn-clear:hover {
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.result-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: linear-gradient(219deg, #fb0e7630 0%, #91069400 100%);
    border: 3px dashed #f3c6cf;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.file-icon {
    color: #FB0E76;
    margin-bottom: 15px;
}

.file-name {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.file-size {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-view {
    background: #28a745;
}

.btn-view:hover {
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-download {
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: white;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.8;
}

.xml-preview {
    padding: 20px;
    background: #f9f9f9;
    overflow: auto;
    max-height: calc(80vh - 70px);
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 600px) {
    .header-title {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .result-buttons {
        flex-direction: column;
    }
}
