/* Custom styles for Server Monitor */

body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

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

.table th {
    border-top: none;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge {
    font-size: 0.75em;
}

.text-truncate {
    max-width: 200px;
}

/* Status indicators */
.status-running {
    color: #28a745;
}

.status-stopped {
    color: #dc3545;
}

.status-unknown {
    color: #ffc107;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm > .btn, .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Animation for status updates */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Sortable table styles */
.sortable {
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #ffffff !important;
}

.sortable:hover {
    background-color: rgba(52, 144, 220, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sort-icon {
    margin-left: 5px;
    opacity: 0.6;
    font-size: 0.8em;
    transition: all 0.2s;
    color: #ffffff;
}

.sortable:hover .sort-icon {
    opacity: 1;
    color: #ffffff !important;
    transform: scale(1.1);
}

.fas.fa-sort-up,
.fas.fa-sort-down {
    opacity: 1;
    color: #ffc107 !important;
    transform: scale(1.1);
}

/* Table enhancement */
.table th.sortable {
    border-bottom: 2px solid #dee2e6;
}

.table-responsive {
    border-radius: 0.375rem;
}

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

/* Dark table header specific styles */
.table-dark .sortable {
    color: #ffffff;
}

.table-dark .sortable:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #000000 !important;
    border-radius: 4px;
}

.table-dark .sortable:hover .sort-icon {
    color: #000000 !important;
}

.table-dark .fas.fa-sort-up,
.table-dark .fas.fa-sort-down {
    color: #ffc107 !important;
}

/* Dashboard specific styles */
.dashboard-table {
    font-size: 0.9rem;
}

.dashboard-table .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.dashboard-table td {
    vertical-align: middle;
    padding: 0.5rem 0.75rem;
}

.dashboard-table .badge.bg-info {
    background-color: #0dcaf0 !important;
    font-weight: 600;
}

.dashboard-table .badge.bg-success {
    background-color: #198754 !important;
}

.dashboard-table .badge.bg-secondary {
    background-color: #6c757d !important;
}

.dashboard-table tbody tr:hover {
    background-color: rgba(13, 202, 240, 0.1) !important;
    transition: background-color 0.15s ease-in-out;
}

.dashboard-stats .card {
    transition: transform 0.2s ease-in-out;
}

.dashboard-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Dashboard table sortable styles */
.dashboard-table .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.dashboard-table .sortable:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dashboard-table .sortable .fas {
    margin-left: 5px;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

.dashboard-table .sortable:hover .fas {
    opacity: 1;
}

.dashboard-table .sortable .fa-sort-up,
.dashboard-table .sortable .fa-sort-down {
    opacity: 1;
    color: #ffc107;
}

/* Pasif durum için kırmızı badge */
.dashboard-table .badge.bg-danger {
    background-color: #dc3545 !important;
    font-weight: 600;
}
