/* Custom styles for the web scraper */

:root {
    --platinum-dark: #A8A9AD;
    --deep-teal: #005F56;
    --soft-white: #F8F9FA;
    --deep-teal-light: #007A6E;
    --deep-teal-dark: #004A43;
}

body {
    background-color: var(--soft-white);
    color: #333;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-dark));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-dark));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-dark));
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-teal-light), var(--deep-teal));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,95,86,0.2);
}

.btn-outline-primary {
    color: var(--deep-teal);
    border-color: var(--deep-teal);
}

.btn-outline-primary:hover {
    background: var(--deep-teal);
    border-color: var(--deep-teal);
    color: white;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 0.2rem rgba(0,95,86,0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--deep-teal);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 500;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(0,95,86,0.05);
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 6px;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-dark));
    border-radius: 4px;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-dark));
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--deep-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-teal-dark);
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Error message */
.alert-danger {
    border-radius: 0.5rem;
    border: none;
    background-color: #f8d7da;
    color: #721c24;
}

/* Download buttons */
#downloadButtons .btn {
    margin-left: 0.5rem;
}

/* Results table */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
} 