/* Malware Detection System - Consolidated Styles */

/* ==================== Base Styles ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ==================== Navbar ==================== */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* ==================== Cards ==================== */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
}

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

/* Feature Cards */
.feature-card {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.2s;
    background: white;
    border: 1px solid #dee2e6;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-card h6 {
    color: #007bff;
    margin-bottom: 10px;
}

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

/* ==================== Result Cards ==================== */
.result-card {
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.result-card.malware {
    background: #ffe6e6;
    border-left-color: #dc3545;
}

.result-card.goodware {
    background: #e6ffe6;
    border-left-color: #28a745;
}

/* ==================== Buttons ==================== */
.btn i {
    margin-right: 8px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* ==================== Alerts ==================== */
.alert {
    border: none;
    border-radius: 8px;
}

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==================== Upload Area ==================== */
.upload-area {
    border: 3px dashed #007bff;
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.upload-area:hover {
    background-color: #e9ecef;
    border-color: #0056b3;
    transform: scale(1.02);
}

.upload-area i {
    font-size: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

/* ==================== Tables ==================== */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

.malware-row {
    background-color: #ffe6e6 !important;
}

.malware-row td {
    background-color: #ffe6e6 !important;
}

.goodware-row {
    background-color: #e6ffe6 !important;
}

.goodware-row td {
    background-color: #e6ffe6 !important;
}

/* ==================== Confusion Matrix ==================== */
.confusion-matrix {
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== Tooltip ==================== */
.tooltip-icon {
    cursor: help;
    margin-left: 5px;
    color: #007bff;
    font-size: 0.9em;
}

/* ==================== Footer ==================== */
footer {
    margin-top: 50px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-area i {
        font-size: 48px;
    }
}
