/* 
 * File: style.css
 * Path: trojan-install/static/css/style.css
 * Purpose: Styling for web interface
 * Type: CSS
 */

/* Global styles */
body {
    background-color: #f5f8fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar styles */
.sidebar {
    background-color: #343a40;
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 15px 20px 15px;
    border-bottom: 1px solid #495057;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 4px;
}

.sidebar .nav-link:hover {
    background-color: #495057;
    color: white;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Main content styles */
.main-content {
    padding: 20px;
}

.page-header {
    margin-bottom: 20px;
    color: #343a40;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

/* Card styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
}

.stat-card {
    text-align: center;
    transition: transform 0.2s;
}

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

.stat-card .card-title {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

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

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

.btn-group .btn {
    margin-right: 5px;
}

/* Table styles */
.table {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Alert styles */
.alert {
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

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

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

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

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

/* Modal styles */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #eaeaea;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #eaeaea;
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: static;
    }
    
    .main-content {
        padding: 15px;
    }
}
