/* XML Sitemap Generator - Modern CSS */
.xmlsg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.xmlsg-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.xmlsg-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.xmlsg-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.xmlsg-description {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.xmlsg-form {
    padding: 40px 30px 30px;
}

.xmlsg-form-group {
    margin-bottom: 30px;
}

.xmlsg-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 15px;
}

.xmlsg-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.xmlsg-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.xmlsg-input-small {
    width: 120px;
    padding: 10px 12px;
}

.xmlsg-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.xmlsg-error.show {
    display: block;
}

.xmlsg-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.xmlsg-option {
    display: flex;
    flex-direction: column;
}

.xmlsg-option label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.xmlsg-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.xmlsg-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.xmlsg-custom-date {
    margin-top: 12px;
}

.xmlsg-datepicker {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
}

.xmlsg-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 5px 0 0 0;
}

.xmlsg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    min-height: 56px;
}

.xmlsg-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 100%;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.xmlsg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.xmlsg-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.xmlsg-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
}

.xmlsg-btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.xmlsg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 10px;
    margin-top: 25px;
    border: 2px dashed #e5e7eb;
}

.xmlsg-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: xmlsg-spin 1s linear infinite;
}

@keyframes xmlsg-spin {
    to {
        transform: rotate(360deg);
    }
}

.xmlsg-loading span {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.xmlsg-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.xmlsg-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.xmlsg-results-header h3 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.xmlsg-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.xmlsg-output-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.xmlsg-output {
    width: 100%;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #1f2937;
    color: #e5e7eb;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
    white-space: pre;
    overflow-x: auto;
    tab-size: 2;
    margin: 0;
}

.xmlsg-output:focus {
    outline: none;
    border-color: #6366f1;
}

.xmlsg-stats {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(31, 41, 55, 0.9);
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.xmlsg-success {
    background: #dcfce7;
    color: #166534;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #86efac;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-top: 20px;
    animation: xmlsg-fadeIn 0.3s ease;
}

@keyframes xmlsg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xmlsg-error-container {
    background: #fef2f2;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    margin-top: 30px;
}

.xmlsg-error-message {
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .xmlsg-wrapper {
        padding: 15px;
    }
    
    .xmlsg-header {
        padding: 30px 20px;
    }
    
    .xmlsg-title {
        font-size: 26px;
    }
    
    .xmlsg-form {
        padding: 30px 20px 20px;
    }
    
    .xmlsg-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .xmlsg-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .xmlsg-actions {
        width: 100%;
    }
    
    .xmlsg-btn-secondary {
        flex: 1;
        text-align: center;
    }
    
    .xmlsg-output {
        min-height: 300px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .xmlsg-title {
        font-size: 22px;
    }
    
    .xmlsg-description {
        font-size: 14px;
    }
    
    .xmlsg-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .xmlsg-actions {
        flex-direction: column;
    }
    
    .xmlsg-btn-secondary {
        width: 100%;
    }
}

/* Datepicker styling */
.ui-datepicker {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: #6366f1;
    color: white;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-state-default {
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
}

.ui-state-default:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.ui-state-highlight {
    background: #e0e7ff;
    color: #6366f1;
    border-color: #6366f1;
}

.ui-state-active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}