/* Custom styling for NBC Trademark Monitor */

/* Override default dark theme colors if needed */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
}

/* Main container padding */
body {
    padding-bottom: 70px; /* Add some extra space at the bottom */
}

/* Card styling */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* DataTable styling */
table.table {
    width: 100% !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Fix for text overflow in table cells */
.table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Form controls in dark theme */
.form-control, .form-select {
    background-color: #2b3035;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #2b3035;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

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

.navbar-brand {
    font-weight: 600;
}

.nav-link.active {
    font-weight: bold;
}

/* Footer styling */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #212529;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Chart containers */
canvas {
    width: 100% !important;
    max-height: 300px;
}

/* Modal styling */
.modal-content {
    background-color: #2b3035;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination styling */
.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.page-link {
    background-color: #2b3035;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-primary);
}

.page-link:hover {
    background-color: #3a3f47;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-primary);
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Custom stat cards */
.stat-card {
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Custom alert styling */
.alert {
    border-radius: 0.5rem;
}

/* Icon styling */
.feather {
    vertical-align: text-bottom;
}

/* Button group spacing */
.btn-group .btn {
    margin-right: 0;
}

/* Progress bar styling */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tooltip styling */
.tooltip {
    opacity: 0.9 !important;
}

/* Tab styling */
.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) #2b3035;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border-radius: 0.5rem;
}

/* Custom table styling for analytics */
.analytics-table th, .analytics-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn-sm {
        padding: 0.15rem 0.4rem;
        font-size: 0.75rem;
    }
}
