:root { --accent-color: #3fb950; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar-brand .logo-svg {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    fill: var(--accent-color);
}

/* Stats Card */
.stats-card {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.stats-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color) !important;
}

/* Health Bar */
.health-bar {
    font-size: 0.8rem;
    padding: 5px 20px;
    background-color: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
}
.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-online {
    background-color: #3fb950;
    box-shadow: 0 0 8px #3fb950;
}

/* Buttons */
.btn-primary {
    background-color: #238636;
    border-color: #2ea043;
    color: #fff;
}
.btn-primary:hover {
    background-color: #2ea043;
    border-color: #3fb950;
    color: #fff;
}

/* NFO Viewer */
.nfo-viewer {
    color: var(--accent-color);
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    overflow-x: auto;
    padding: 15px;
    font-size: 0.85rem;
}

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.theme-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Table constraints */
#torrentTable th, #torrentTable td {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-custom {
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#customSearch:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25 rbg(63, 185, 80, 0.25);
}

/* Centralize and style DataTables Search */
.dataTables_filter {
    float: none !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    margin-top: 1rem !important;
}

.dataTables_filter label {
    font-size: 1.25rem;
    width: 100%;
    max-width: 600px;
    display: inline-block;
}

.dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--bs-border-color) !important;
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
    font-size: 1.1rem;
    text-align: center;
}

.dataTables_filter input:focus {
    border-color: var(--accent-color) !important;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(63, 185, 80, 0.25) !important;
}

/* Badge sizing */
.badge-icon {
    padding: 0.4em 0.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.badge-icon i {
    font-size: 1rem;
}