* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
} */

    .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

.header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-content {
    max-width: 100%;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-group,
.output-group {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.1);
    border: 2px solid #ffe0e6;
    transition: all 0.3s ease;
}

.input-group:hover,
.output-group:hover {
    border-color: #ff6b9d;
    box-shadow: 0 6px 20px rgba(196, 69, 105, 0.15);
}

.input-header,
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe0e6;
}

.input-header h3,
.output-header h3 {
    color: #c44569;
    font-size: 1.2rem;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center !important;
    gap: 8px;
    padding: 10px 16px;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
     background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5a8a, #b33a5c);
}

.btn-secondary {
     background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: White !important;
    border: 1px solid #ff6b9d;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff8a8e, #fdbfef);
}

.btn-outline {
    background: transparent !important;
    color: #c44569 !important;
    border: 2px solid #ff6b9d !important;
}

.btn-outline:hover {
    background: #ff6b9d;
    color: white;
}

.btn-copy {
    background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: white !important;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.editor-container {
    position: relative;
    border: 2px solid #ffe0e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    min-height: 300px;
}

.line-numbers {
    background: #f8f9fa;
    color: #999;
    padding: 15px 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border-right: 2px solid #ffe0e6;
    user-select: none;
    min-width: 50px;
    text-align: right;
    white-space: pre-line;
    overflow: hidden;
}

.xml-input {
    flex: 1;
    border: none !important;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: white;
    color: #333;
    outline: none;
}

.xml-input:focus {
    background: #fefefe;
}

.xml-output {
    flex: 1;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: white;
    white-space: pre-wrap;
    overflow-x: auto;
    color: #333;
}

.control-section {
    text-align: center;
    margin: 40px 0;
}

.control-section .btn {
    margin: 0 15px;
}

.output-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #ffe0e6;
}

.status-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.info {
    background: #ffeaa7;
    color: #8b6914;
    border: 1px solid #fdd835;
    display: block;
}

/* Diff highlighting styles */
.diff-added {
    background-color: #c8e6c8;
    border-left: 4px solid #4caf50;
    padding-left: 8px;
}

.diff-removed {
    background-color: #ffcdd2;
    border-left: 4px solid #f44336;
    padding-left: 8px;
}

.diff-modified {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding-left: 8px;
}

.diff-modified-right {
    background-color: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding-left: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .input-section,
    .output-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
/*     .title {
        font-size: 2rem;
    } */
    
    .control-section .btn {
        margin: 10px 5px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .title {
        font-size: 1.8rem;
    }
	.header h1{
		font-size:35px !important;
	}
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-header,
    .output-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .button-group {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .editor-container {
        min-height: 250px;
    }
    
    .control-section {
        margin: 25px 0;
    }
    
    .control-section .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0px !important;
    }
    
    .input-group,
    .output-group {
        padding: 15px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .xml-input,
    .xml-output {
        font-size: 13px;
        padding: 10px;
    }
    
    .line-numbers {
        padding: 10px 8px;
        font-size: 13px;
        min-width: 40px;
    }
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #ff6b9d;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
.xml-input::-webkit-scrollbar,
.xml-output::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.xml-input::-webkit-scrollbar-track,
.xml-output::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.xml-input::-webkit-scrollbar-thumb,
.xml-output::-webkit-scrollbar-thumb {
    background: #ff6b9d;
    border-radius: 4px;
}

.xml-input::-webkit-scrollbar-thumb:hover,
.xml-output::-webkit-scrollbar-thumb:hover {
    background: #c44569;
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}