/* Custom CSS for Q-Packets */

/* Colors del logo Q */
:root {
    --q-orange: #ff9800;
    --q-orange-dark: #e68a00;
    --q-orange-light: #ffad33;
    --q-blue: #102c54;
}

/* Custom button primary style */
.btn-primary {
    background-color: var(--q-orange) !important;
    border-color: var(--q-orange) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--q-orange-dark) !important;
    border-color: var(--q-orange-dark) !important;
}

.btn-outline-primary {
    color: var(--q-orange) !important;
    border-color: var(--q-orange) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--q-orange) !important;
    color: white !important;
}

/* Logo styling */
.logo-container {
    margin: 1.5rem 0;
}

.logo-text {
    font-weight: bold;
    font-size: 1.8rem;
    margin-left: 0.8rem;
    color: #ff9800 !important; /* Color naranja que hace juego con el logo */
}

/* File upload container */
.upload-container {
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.upload-container:hover {
    border-color: var(--q-orange);
}

.upload-container.drag-over {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: var(--q-orange);
}

/* Results section */
.results-header {
    margin-bottom: 2rem;
}

.result-card {
    height: 100%;
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Table styling */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Timeline statistics styling */
.timeline-stats {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #f8f9fa;
    border: 1px solid #343a40;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.timeline-stats h5 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.5);
    color: var(--q-orange);
    font-weight: bold;
}

.timeline-stat-item {
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(16, 44, 84, 0.5);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-stat-item .stat-label {
    font-weight: bold;
    color: #17a2b8;
}

.timeline-stat-item .stat-value {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

/* Packet analysis section */
.packet-analysis-section {
    background-color: rgba(16, 44, 84, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--q-orange);
}

.packet-analysis-header {
    color: var(--q-orange);
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Highlight suspicious traffic */
.suspicious-traffic {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.suspicious-traffic .card-header {
    color: #dc3545;
    font-weight: bold;
}

/* Indicator badges */
.indicator-normal {
    background-color: #28a745;
}

.indicator-warning {
    background-color: #ffc107;
}

.indicator-danger {
    background-color: #dc3545;
}
