/* Custom styles for SiseTech Scraper */

/* Body and general styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card styling */
.card {
    border-radius: 8px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Button styling */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.btn-primary:hover {
    background-color: #5e0fbb;
    border-color: #5e0fbb;
}

/* Table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
    background-color: rgba(106, 17, 203, 0.05);
}

/* Form styling */
.form-control,
.form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #b992e8;
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

/* Code blocks */
code {
    background-color: #f1f3f9;
    padding: 0.5rem;
    border-radius: 4px;
    display: block;
    color: #333;
    font-size: 0.9rem;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Alert progress bar animation */
@keyframes alert-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes shrinkWidth {
    from { width: 100%; }
    to { width: 0%; }
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.1s ease;
}

/* Enhanced alert colors */
.alert-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Alert icons */
.alert::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    opacity: 0.7;
}

.alert-success::before {
    content: "\f00c"; /* check */
    color: #28a745;
}

.alert-danger::before {
    content: "\f071"; /* exclamation-triangle */
    color: #dc3545;
}

.alert-warning::before {
    content: "\f071"; /* exclamation-triangle */
    color: #ffc107;
}

.alert-info::before {
    content: "\f05a"; /* info-circle */
    color: #17a2b8;
}

/* Add padding to alert content to account for icon */
.alert {
    padding-left: 3rem;
}

/* Notification center styles (for future implementation) */
.notification-center {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: rgba(106, 17, 203, 0.05);
    border-left: 3px solid #6a11cb;
}

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.notification-item .notification-message {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: #999;
}

/* Footer styling */
footer {
    border-top: 1px solid #e3e6f0;
}

/* Chart containers */
canvas {
    min-height: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}