/* MediaExpand - Clean & Classic Design */

/* General */
body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
}

/* Navbar with blue gradient */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: white !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards */
.card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

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

/* Dashboard cards */
.dashboard-card {
    height: 100%;
}

.dashboard-card .card-body {
    text-align: center;
    padding: 2rem;
}

.dashboard-card .card-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

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

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
}

.btn-info {
    background-color: #17a2b8;
    border: none;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Tables */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td, .table th {
    color: #212529;
    vertical-align: middle;
    padding: 0.75rem;
}

.table a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.table a:hover {
    color: #764ba2;
    text-decoration: underline;
}

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

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.dropdown-item {
    color: #212529;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

/* Pagination */
.pagination .page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.pagination .page-link:hover {
    color: #764ba2;
    background-color: #f8f9fa;
}

/* Modals */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
}

/* Utilities */
.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card .card-title {
        font-size: 2rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.5rem;
    }
}

/* Log de Exibição - Dispositivo Detail */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.log-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.log-thumbnail-placeholder {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.log-content h6 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.log-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
