/* Custom styles for the Sitemap Generator */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Header styles */
.navbar-brand i {
    margin-right: 8px;
}

/* Card styles */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
    margin-bottom: 24px;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h4 {
    margin-bottom: 0;
    font-weight: 600;
}

.card-header h4 i {
    margin-right: 8px;
}

/* Form styles */
.form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.input-group-text {
    background-color: #f8f9fa;
}

.form-check-label {
    font-weight: 500;
}

/* Button styles */
.btn {
    border-radius: 6px;
}

.btn i {
    margin-right: 5px;
}

/* Results section */
.alert {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert h4 {
    margin-bottom: 15px;
}

.alert h4 i {
    margin-right: 8px;
}

/* Footer styles */
footer {
    margin-top: 50px;
    background-color: #212529 !important;
    border-top: 3px solid #007bff;
}

footer a {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: #fff !important;
    text-decoration: none;
    padding-left: 5px;
}

footer h5, footer h6 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff !important;
}

footer h5 i, footer h6 i {
    margin-right: 8px;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    display: inline-block;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Table styles */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 6px 10px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }

    .d-md-flex {
        display: flex;
        flex-direction: column;
    }
    
    .justify-content-md-end {
        justify-content: flex-start;
    }
    
    .gap-2 {
        gap: 1rem !important;
    }
}

/* Animation for loading */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.processing {
    animation: pulse 1.5s infinite;
}

/* Transition effects */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Search engine results styling */
.submission-results {
    margin-top: 20px;
}

.engine-result {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.engine-success {
    border-left-color: #28a745;
}

.engine-error {
    border-left-color: #dc3545;
}

/* Progress Modal Styles */
#progressModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#progressModal .modal-header {
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

#progressModal .progress {
    border-radius: 15px;
    overflow: hidden;
}

#progressModal .progress-bar {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progressModal #progressLog {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

#progressModal #progressLog::-webkit-scrollbar {
    width: 6px;
}

#progressModal #progressLog::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#progressModal #progressModal #progressLog::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

#progressModal #progressLog::-webkit-scrollbar-thumb:hover {
    background: #777;
}

#progressModal .card {
    transition: transform 0.2s ease;
}

#progressModal .card:hover {
    transform: scale(1.02);
}

#progressModal #currentUrl {
    word-break: break-all;
}

#progressModal .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}