* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:#0b1420;
    color:#e5edf7;
    font-family:Arial,Helvetica,sans-serif;
}

.layout {
    display:flex;
}

.sidebar {
    position:fixed;
    left:0;
    top:0;
    width:185px;
    height:100vh;
    background:#101b2b;
    border-right:1px solid #22344a;
    padding:20px 15px;
}

.logo {
    font-size:24px;
    font-weight:bold;
    color:white;
}

.subtitle {
    color:#8193aa;
    font-size:12px;
    margin-bottom:30px;
}

.sidebar h4 {
    color:#7f92aa;
    font-size:12px;
    margin:20px 0 8px;
}

.sidebar a {
    display:block;
    color:#c8d5e5;
    text-decoration:none;
    padding:8px;
    font-size:14px;
    border-radius:7px;
}

.sidebar a.active {
    background:#263d5b;
}

.footer {
    position:absolute;
    bottom:20px;
    color:#71849b;
    font-size:11px;
}


.main {
    margin-left:185px;
    width:calc(100% - 185px);
}


header {
    height:55px;
    border-bottom:1px solid #22344a;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding:0 25px;
}


.status {
    color:#00df9a;
    font-size:13px;
}


section {
    padding:16px;
}


.dashboard {
    width:100%;
}


.top-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}


.panel-card,
.service-card,
.large-card,
.stat-card {
    background:#152438;
    border:1px solid #22384f;
    border-radius:10px;
}


.panel-card {
    padding:16px;
    min-height:130px;
}


.app-head {
    display:flex;
    align-items:center;
    gap:12px;
}


.app-icon {
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    background:#2563eb;
}


.jelly {
    background:#9b3cff;
}

.disk,
.server {
    background:#2563eb;
}


h2 {
    font-size:18px;
    margin:0;
}


.online {
    color:#00df9a;
    font-size:12px;
}


.info-line {
    margin-top:8px;
}





.blue {
    background:#168cff;
}

.purple {
    background:#a84cff;
}


.progress {
    height:9px;
    background:#263b50;
    border-radius:10px;
    margin:12px 0 10px 0;
    overflow:hidden;
}


.progress div {
    width:0%;
    height:100%;
    background:#00df9a;
    border-radius:10px;
    transition:width .5s ease;
}


.service-grid {
    margin-top:14px;
    display:grid;
    grid-template-columns:repeat(12,1fr);
    gap:12px;
}

.service-grid .service-card {
    grid-column:span 3;
}

.service-grid .service-card:nth-child(n+5) {
    grid-column:span 4;
}


.service-card {
    padding:14px;
}


.chart-grid {
    margin-top:14px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}


.large-card {
    padding:14px;
}


.fake-chart {
    height:190px;
    margin-top:15px;
    border-bottom:2px solid #168cff;
    background:
    repeating-linear-gradient(
    0deg,
    transparent,
    transparent 35px,
    #20344b 36px
    );
}


.stats-grid {
    margin-top:14px;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
    height:85px;
}


.stat-card {
    padding:14px;
    height:85px;
    background:#152438;
    border:1px solid #22384f;
    border-radius:10px;
}


.stat-card h4 {
    margin:0 0 6px 0;
    color:#9fb0c4;
    font-size:14px;
    font-weight:500;
}


.stat-card strong {
    font-size:28px;
    line-height:1;
}


.bottom-grid {
    margin-top:14px;
    display:block;
}


table {
    width:100%;
    border-collapse:collapse;
}


td,th {
    padding:10px;
    text-align:left;
}

.app-icon img {
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:contain;
}


.app-icon {
    width:46px;
    height:46px;
    border-radius:50%;
    overflow:hidden;
    background:transparent;
    display:flex;
    align-items:center;
    justify-content:center;
}

.app-icon img {
    width:46px;
    height:46px;
    object-fit:contain;
}


/* FINAL APP ICON STYLE */

.app-icon {
    width:52px;
    height:52px;
    border-radius:12px;
    overflow:hidden;
    background:transparent;
    flex-shrink:0;
}

.app-icon img {
    width:100%;
    height:100%;
    object-fit:contain;
}


/* remove old colored circles */
.app-icon.qb,
.app-icon.jelly,
.app-icon.disk,
.app-icon.server {
    background:transparent;
}







.mini-chart {
    height:45px;
    margin-top:8px;
    position:relative;
    overflow:hidden;
    background:transparent;
}

.mini-svg {
    width:100%;
    height:100%;
    display:block;
}



.qb-bottom {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-top:8px;
}

.small-graph {
    width:180px;
    height:45px;
}

.small-graph svg {
    width:100%;
    height:100%;
}

























.card-bottom {
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
}

.small-graph {
    width:180px;
    height:45px;
}

.small-graph svg {
    width:100%;
    height:100%;
}

.app-card {
    display:flex;
    flex-direction:column;
}



.jelly-media-line {
    display:flex;
    gap:24px;
    margin-top:8px;
}



.disk-text {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
    margin-top:10px;
    margin-left:60px;
}

.disk-text + .progress {
    margin-left:60px;
    width:calc(100% - 75px);
}

.card-bottom {
    margin-left:60px;
}



.disk-layout {
    display:flex;
    align-items:center;
    gap:18px;
}

.disk-content {
    flex:1;
}

.disk-content h2 {
    margin:0 0 10px 0;
}

.disk-content .disk-text,
.disk-content .progress,
.disk-content .info-line {
    margin-left:0;
}



.disk-layout {
    display:flex;
    align-items:center;
    gap:18px;
}

.disk-content {
    flex:1;
}

.disk-content h2 {
    margin:0 0 10px 0;
}

.disk-text {
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
}

.disk-content .progress {
    margin:0;
}



/* Disk card alignment */
.disk-content {
    flex: 1;
}

.disk-text {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-left:0;
    margin-right:20px;
}

.disk-text span:last-child {
    margin-right:10px;
}

.disk-content .progress {
    margin-left:0;
    width:calc(100% - 20px);
}

#disk-free {
    margin-left:0;
    margin-top:10px;
}



.server-bottom .resource {
    display:grid;
    grid-template-columns:70px 1fr;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.server-bottom .resource .bar {
    grid-column:2;
    height:8px;
    margin-top:-2px;
}

.server-bottom .resource span {
    grid-column:2;
}

.server-bottom .resource {
    position:relative;
}

.server-bottom .resource > .bar {
    width:100%;
}

#server-cpu-bar {
    background:#2196ff;
}

#server-ram-bar {
    background:#00df9a;
}



.server-bottom .resource {
    margin-bottom:12px;
}

.server-bottom .resource .bar {
    height:8px;
    background:#263b50;
    border-radius:10px;
    overflow:hidden;
    margin-top:6px;
}

.server-bottom .resource .bar div {
    height:100%;
    border-radius:10px;
}

#server-cpu-bar {
    background:#2196ff;
}

#server-ram-bar {
    background:#00df9a;
}



.server-bottom {
    margin-top:15px;
}

.server-bottom .resource {
    margin-bottom:12px;
}

.server-bottom .bar {
    width:100%;
    height:8px;
    margin-top:6px;
    background:#263b50;
    border-radius:10px;
    overflow:hidden;
}

.server-bottom .bar div {
    height:100%;
    border-radius:10px;
}

#server-cpu-bar {
    background:#2196ff;
}

#server-ram-bar {
    background:#00df9a;
}



.server-bottom {
    margin-left:0;
    padding-left:0;
}

.server-bottom .resource {
    margin-left:0;
}



.server-bottom {
    margin-left:-15px;
}

.server-bottom .resource {
    margin-left:0;
    padding-left:0;
}



/* Compact server card */
.server-bottom {
    margin-top:8px;
}

.server-bottom .resource {
    margin-bottom:6px;
}

.server-bottom .bar {
    height:6px;
    margin-top:4px;
}



/* Tight server spacing */
.server-bottom .resource {
    margin-bottom:4px;
}

.server-bottom .bar {
    margin-top:2px;
    height:7px;
}



/* Server ultra compact */
.server-bottom .resource {
    margin:0 0 8px 0;
    padding:0;
    line-height:1.1;
}

.server-bottom .resource span {
    display:block;
    margin:0;
    padding:0;
}

.server-bottom .bar {
    margin-top:1px;
    height:6px;
}

.server-bottom {
    padding-top:4px;
}



/* FINAL SERVER COMPACT FIX */

.server-bottom {
    margin-top:5px !important;
    padding:0 !important;
}

.server-bottom .resource {
    margin:0 0 6px 0 !important;
    padding:0 !important;
    line-height:1 !important;
}

.server-bottom .resource span {
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
}

.server-bottom .bar {
    margin-top:2px !important;
    height:6px !important;
}

.server-bottom .bar div {
    height:6px !important;
}



/* Server final spacing */
.server-bottom {
    margin-top:0px !important;
}

.server-bottom .resource {
    margin-bottom:3px !important;
    line-height:1 !important;
}

.server-bottom .resource span {
    margin-bottom:0 !important;
    line-height:1 !important;
}

.server-bottom .bar {
    margin-top:1px !important;
    margin-bottom:4px !important;
    height:6px !important;
}



.service-logo {
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.service-logo img {
    max-width:34px;
    max-height:34px;
}

.service-card {
    display:flex;
    align-items:center;
    gap:12px;
}



/* TRAFFIC CHART */



/* CLEAN TRAFFIC CHART */

.traffic-card{
    position:relative;
    padding:24px;
}


.traffic-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.traffic-header h2{
    margin:0;
}


#traffic-range{
    background:#16263b;
    color:white;
    border:1px solid #29415d;
    border-radius:12px;
    padding:10px 18px;
}


.traffic-top{
    display:flex;
    align-items:center;
    gap:50px;
    margin-top:25px;
}


.traffic-stat{
    display:flex;
    flex-direction:column;
}


.speed-row{
    display:flex;
    align-items:center;
    gap:12px;
}


.speed-row strong{
    font-size:32px;
    font-weight:800;
}


.speed-row label{
    display:block;
    margin-top:5px;
    color:#9aaac0;
}


.arrow-icon{
    width:35px;
    height:35px;
}


.download-arrow::before{
    content:"";
    display:block;
    width:8px;
    height:25px;
    background:#00df9a;
    margin-left:14px;
}


.download-arrow::after{
    content:"";
    display:block;
    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-top:14px solid #00df9a;
}


.upload-arrow::before{
    content:"";
    display:block;
    width:8px;
    height:25px;
    background:#168cff;
    margin-left:14px;
    margin-top:10px;
}


.upload-arrow::after{
    content:"";
    display:block;
    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-bottom:14px solid #168cff;
}


.traffic-legend{
    position:absolute;
    right:40px;
    top:105px;
    display:flex;
    flex-direction:column;
    gap:15px;
}


.traffic-legend i{
    display:inline-block;
    width:14px;
    height:14px;
    border-radius:50%;
    margin-right:10px;
}


.traffic-legend .green{
    background:#00df9a;
}


.traffic-legend .blue{
    background:#168cff;
}


.traffic-chart{
    margin-top:40px;
    height:300px;
}


.traffic-chart svg{
    width:100%;
    height:100%;
}


/* FIX SPEED COLORS */
.download strong,
.download .arrow-icon{
    color:#00df9a;
}

.upload strong,
.upload .arrow-icon{
    color:#168cff;
}


/* FIX ARROWS */
.arrow-icon{
    width:36px;
    height:36px;
    position:relative;
    display:inline-block;
}


.download-arrow::before{
    content:"";
    position:absolute;
    width:8px;
    height:25px;
    background:#00df9a;
    left:14px;
    top:0;
    border-radius:3px;
}


.download-arrow::after{
    content:"";
    position:absolute;
    left:4px;
    bottom:0;
    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-top:14px solid #00df9a;
}


.upload-arrow::before{
    content:"";
    position:absolute;
    width:8px;
    height:25px;
    background:#168cff;
    left:14px;
    bottom:0;
    border-radius:3px;
}


.upload-arrow::after{
    content:"";
    position:absolute;
    left:4px;
    top:0;
    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-bottom:14px solid #168cff;
}



.arrow-icon{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
}

.arrow-icon svg{
    width:36px;
    height:36px;
}


.arrow-icon{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    transform:translateY(-5px);
}


.arrow-icon{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    transform:translateY(-10px);
}


.traffic-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.traffic-legend{
    position:absolute;
    right:40px;
    top:85px;
}


#traffic-range{
    position:absolute;
    right:180px;
    top:60px;
}



.traffic-legend{
    transform:translateY(-25px);
}



.system-header{
    margin-top:10px;
    margin-bottom:10px;
}


.system-title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.system-title-row h2{
    margin:0;
}


.system-range{
    background:#1b2c42;
    border:1px solid #26384d;
    color:#9aaac0;
    border-radius:8px;
    padding:6px 12px;
}


.system-info-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-top:12px;
}


.system-legend{
    display:flex;
    gap:20px;
    font-size:15px;
}


.system-values{
    display:flex;
    gap:45px;
    text-align:center;
}


.system-values span{
    font-size:14px;
    color:#9aaac0;
}


.system-values b{
    font-size:20px;
}


#cpu-value{
    color:#168cff;
}


#ram-value{
    color:#00df9a;
}


.large-card .chart-area{
    height:300px;
    margin-top:20px;
    display:block;
}

.large-card .chart-area svg{
    width:100%;
    height:100%;
    transform:translateY(40px);
}

.large-card .chart-area svg{
    width:100%;
    height:100%;
}





.stat-icon{
    font-size:22px;
    margin-bottom:6px;
    color:#9aaac0;
}

.stats-grid {
    width:100%;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
    height:85px;
}

.stats-grid .stat-card {
    height:85px;
    box-sizing:border-box;
}

.bottom-grid {
    margin-top:14px;
    display:block;
    width:100%;
}

.large-card.torrents {
    width:100%;
}

.right-stack {
    margin-top:14px;
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}




.stats-grid {
    clear:both !important;
    position:relative;
    display:grid !important;
    grid-template-columns:repeat(6,1fr) !important;
    width:100% !important;
    height:85px !important;
    margin-top:14px !important;
}

.bottom-grid {
    clear:both !important;
    position:relative;
    display:grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap:14px !important;
    width:100% !important;
}


.stats-grid .stat-card {
    display:flex;
    align-items:center;
    gap:14px;
    height:85px;
}

.stats-grid .stat-icon {
    width:42px;
    height:42px;
    border-radius:50%;
    background:#1b2d45;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:bold;
    flex-shrink:0;
}

.stats-grid .stat-info h4 {
    margin:0 0 5px 0;
    color:#9fb0c4;
    font-size:14px;
}

.stats-grid .stat-info strong {
    font-size:28px;
    line-height:1;
    color:white;
}


.stats-grid .stat-icon img {
    width:42px;
    height:42px;
    display:block;
}

.stats-grid .stat-icon {
    width:42px;
    height:42px;
    flex-shrink:0;
}


/* Premium stats cards */

.stats-grid .stat-card {
    background:
    linear-gradient(145deg,#17283d,#101c2b);
    border:1px solid #22384f;
    border-radius:12px;
    padding:12px 16px;
    display:flex;
    align-items:center;
    gap:16px;
    height:85px;
}


.stats-grid .stat-icon {
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}


.stats-grid .stat-icon img {
    width:50px;
    height:50px;
}


.stats-grid .stat-info h4 {
    margin:0;
    font-size:13px;
    font-weight:500;
    color:#9fb0c4;
}


.stats-grid .stat-info strong {
    margin-top:3px;
    display:block;
    font-size:27px;
    font-weight:700;
    color:#ffffff;
}


.stats-grid .stat-icon {
    width:42px;
    height:42px;
    border-radius:50%;
    background:#1b2b40;
    display:flex;
    align-items:center;
    justify-content:center;
}

.stats-grid .stat-icon img {
    width:26px;
    height:26px;
}


.stats-grid .stat-icon {
    width:46px;
    height:46px;
}

.stats-grid .stat-icon img {
    width:30px;
    height:30px;
}


.stats-grid .stat-icon {
    width:50px;
    height:50px;
}

.stats-grid .stat-icon img {
    width:34px;
    height:34px;
}


.stats-grid .stat-card {
    gap:12px;
}


.stats-grid .stat-info strong {
    font-size:29px;
}

.stats-grid .stat-info h4 {
    font-size:13px;
}


.stats-grid .stat-card {
    height:78px;
    padding:10px 14px;
}

.stats-grid .stat-icon {
    width:46px;
    height:46px;
}


.stats-grid .stat-card {
    gap:10px;
}



.torrent-status {
    display:inline-block;
    padding:4px 10px;
    border-radius:12px;
    font-size:13px;
    background:#14532d;
    color:#86efac;
}


.torrent-status.downloading {
    background:#1e3a8a;
    color:#93c5fd;
}


.torrent-status.paused {
    background:#7f1d1d;
    color:#fca5a5;
}


.torrent-progress {
    display:inline-block;
    width:75px;
    height:8px;
    background:#26384d;
    border-radius:10px;
    overflow:hidden;
    margin-right:8px;
    vertical-align:middle;
}


.torrent-progress div {
    height:100%;
    background:#168cff;
    border-radius:10px;
}


.torrent-status.uploading {
    background:#1e40af;
    color:#bfdbfe;
}


.right-stack {
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    gap:14px !important;
}

.right-stack .large-card {
    width:100% !important;
}


.disk-info {
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
}


.torrent-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.torrent-header span {
    color:#168cff;
    font-size:14px;
    cursor:pointer;
}



.torrent-controls {
    display:flex;
    gap:12px;
    margin:15px 0;
}


.torrent-controls select {
    background:#152438;
    color:#dbe7f5;
    border:1px solid #22384f;
    border-radius:8px;
    padding:8px 12px;
}



.disk-title {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.disk-title span {
    color:#2196ff;
    font-size:14px;
}



/* SYSTEM PAGE */

.system-top-grid {
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap:14px;
    margin-bottom:14px;
}

.system-top-grid .panel-card {
    min-height:110px;
    padding:14px;
}


.system-top-grid h2 {
    font-size:14px;
    margin-bottom:6px;
}


.system-top-grid .big-number {
    font-size:22px;
    font-weight:700;
}


@media(max-width:1200px){

.system-top-grid {
    grid-template-columns:repeat(3,1fr);
}

}

@media(max-width:700px){

.system-top-grid {
    grid-template-columns:1fr;
}

}



/* SYSTEM HISTORY */

.history-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:15px;
}


.history-card {
    background:rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:14px;
    height:260px;
}


.history-card h3 {
    margin:0 0 10px 0;
    font-size:14px;
}


.history-card canvas {
    width:100%;
    height:210px;
}




/* SYSTEM LOWER CARDS */

.server-info-card {
    height:260px !important;
    min-height:260px !important;
}


.memory-card {
    height:260px;
    min-height:260px;
}




.memory-card {
    margin-top:14px;
}


.memory-row {
    display:flex;
    justify-content:space-between;
    margin-top:12px;
}


.memory-bar {
    height:12px;
    background:#20344d;
    border-radius:10px;
    overflow:hidden;
    margin-top:8px;
}


.memory-bar div {
    height:100%;
    width:0%;
    background:#8b3cff;
    border-radius:10px;
}


.memory-info {
    display:flex;
    justify-content:space-between;
    margin-top:8px;
    color:#9fb3c8;
    font-size:13px;
}


.swap-title {
    margin-top:22px;
}




.side-column {
    display:flex;
    flex-direction:column;
    gap:14px;
}


.server-info-card {
    height:260px;
}


.memory-card {
    height:260px;
}




.server-info-card {
    height:310px !important;
    min-height:310px !important;
}




.server-info-card {
    height:360px !important;
    min-height:360px !important;
}




#swap-bar {
    background:#2196f3 !important;
}




#server-info {
    line-height:1.45;
    margin-top:15px;
}




.memory-card {
    min-height:300px !important;
}




/* ==========================================================
   MEDIA PAGE
   ========================================================== */

.media-page {
    padding-bottom:30px;
}


.media-page-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:18px;
}


.media-page-header h1 {
    margin-bottom:4px;
}


.media-jellyfin-status {
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    padding:8px 12px;
    color:#b8c9da;
    font-size:13px;
}


.media-status-dot {
    width:8px;
    height:8px;
    border-radius:50%;
    background:#35d07f;
    box-shadow:0 0 10px rgba(53,208,127,.5);
}


.media-stat-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-bottom:14px;
}


.media-stat-card {
    min-height:105px;
    display:flex;
    align-items:center;
    gap:15px;
}


.media-stat-icon {
    width:44px;
    height:44px;
    border-radius:12px;
    background:rgba(33,150,243,.10);
    border:1px solid rgba(33,150,243,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}


.media-stat-label {
    display:block;
    color:#8fa6bd;
    font-size:13px;
    margin-bottom:5px;
}


.media-stat-number {
    font-size:25px;
    font-weight:700;
    color:#edf5ff;
}


.media-info-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:14px;
    margin-bottom:14px;
}


.media-server-card,
.media-library-card {
    min-height:225px;
}


.media-card-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}


.media-card-heading h2 {
    margin-bottom:3px;
}


.media-card-heading p,
.media-library-card > p {
    color:#8298ae;
    font-size:13px;
    margin-top:0;
}


.media-online-badge {
    color:#47d88b;
    background:rgba(71,216,139,.08);
    border:1px solid rgba(71,216,139,.18);
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
}


.media-online-badge.offline {
    color:#ff6b6b;
    background:rgba(255,107,107,.08);
    border-color:rgba(255,107,107,.18);
}


.media-server-content {
    display:flex;
    align-items:center;
    gap:24px;
    margin-top:25px;
}


.media-server-logo {
    width:85px;
    height:85px;
    border-radius:18px;
    background:rgba(139,60,255,.08);
    border:1px solid rgba(139,60,255,.15);
    display:flex;
    align-items:center;
    justify-content:center;
}


.media-server-logo img {
    width:52px;
    height:52px;
}


.media-server-details {
    flex:1;
}


.media-detail-row {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.055);
    font-size:13px;
}


.media-detail-row span {
    color:#8298ae;
}


.media-library-list {
    margin-top:17px;
}


.media-library-list div {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.055);
    font-size:13px;
}


.media-library-list span {
    color:#8da3b8;
}


.media-storage-card {
    margin-bottom:14px;
}


.media-storage-bar {
    width:100%;
    height:12px;
    background:#20344d;
    border-radius:20px;
    overflow:hidden;
    margin:20px 0 14px;
}


#media-storage-fill {
    height:100%;
    width:0;
    border-radius:20px;
    background:linear-gradient(90deg,#168cff,#8b3cff);
    transition:width .5s ease;
}


.media-storage-values {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
}


.media-storage-values div {
    display:flex;
    flex-direction:column;
    gap:4px;
}


.media-storage-values span {
    color:#8197ad;
    font-size:12px;
}


.media-storage-values strong {
    font-size:14px;
}


.media-recent-card {
    min-height:270px;
}


.media-view-all {
    color:#2196ff;
    font-size:13px;
    cursor:pointer;
}


.media-recent-grid {
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:14px;
    margin-top:18px;
}


.media-poster-card {
    overflow:hidden;
    border-radius:12px;
    background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.07);
    transition:transform .18s ease,border-color .18s ease;
}


.media-poster-card:hover {
    transform:translateY(-3px);
    border-color:rgba(33,150,243,.35);
}


.media-poster-placeholder {
    height:160px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(
        145deg,
        rgba(33,150,243,.12),
        rgba(139,60,255,.12)
    );
    font-size:28px;
    color:#839bb4;
}


.media-poster-info {
    padding:10px;
}


.media-poster-info strong {
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:13px;
}


.media-poster-info span {
    color:#7f96ad;
    font-size:11px;
}


.media-empty {
    color:#8197ad;
    font-size:13px;
    padding:20px 0;
}


@media(max-width:1200px) {

    .media-stat-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .media-recent-grid {
        grid-template-columns:repeat(4,1fr);
    }

}


@media(max-width:800px) {

    .media-info-grid {
        grid-template-columns:1fr;
    }

    .media-storage-values {
        grid-template-columns:repeat(2,1fr);
    }

    .media-recent-grid {
        grid-template-columns:repeat(2,1fr);
    }

}


@media(max-width:600px) {

    .media-stat-grid {
        grid-template-columns:1fr;
    }

    .media-page-header {
        flex-direction:column;
        gap:12px;
    }

}


/* ==========================================================
   MEDIA POSTERS
   ========================================================== */

.media-poster-image {
    position:relative;
    width:100%;
    aspect-ratio:2 / 3;
    overflow:hidden;
    background:rgba(255,255,255,.03);
}


.media-poster-image img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .25s ease;
}


.media-poster-card:hover
.media-poster-image img {
    transform:scale(1.035);
}


.media-poster-image
.media-poster-placeholder {
    width:100%;
    height:100%;
    min-height:0;
    border-radius:0;
}


.media-poster-info {
    min-height:55px;
}


.media-poster-info strong {
    color:#edf5ff;
    margin-bottom:5px;
}


.media-poster-info span {
    display:block;
}


@media(min-width:1400px) {

    .media-recent-grid {
        grid-template-columns:
            repeat(6,minmax(0,1fr));
    }

}


/* ==========================================================
   NEWPANEL V3 MEDIA LAYOUT FIX
   Isolated from legacy dashboard/card styling
   ========================================================== */

.np-media {
    width:100%;
    box-sizing:border-box;
    padding:24px;
}


/* HEADER */

.np-media-header {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:20px;
    margin-bottom:22px;
}

.np-media-header h1 {
    margin:0 0 5px 0;
    font-size:25px;
    line-height:1.2;
}

.np-media-header p {
    margin:0;
    color:#8197ad;
    font-size:13px;
}

.np-media-online {
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid #243d59;
    border-radius:9px;
    background:#13243a;
    color:#c6d5e5;
    font-size:12px;
}

.np-media-online > span {
    display:block;
    width:8px;
    height:8px;
    flex:0 0 8px;
    border-radius:50%;
    background:#35d07f;
}


/* TOP STATS */

.np-media-stats {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
    width:100%;
    margin:0 0 14px 0;
}

.np-media-stat {
    box-sizing:border-box;
    min-width:0;
    height:105px;
    padding:18px;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:14px !important;

    background:#14263d;
    border:1px solid #223d5b;
    border-radius:11px;
}

.np-media-stat-icon {
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    min-height:46px !important;
    max-height:46px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:11px;
    background:#102e4b;
    border:1px solid #20486c;
    font-size:20px;
}

.np-media-stat span {
    display:block;
    margin-bottom:4px;
    color:#8da3b9;
    font-size:12px;
}

.np-media-stat strong {
    display:block;
    color:#f0f6fc;
    font-size:25px;
    line-height:1;
}


/* GENERIC MEDIA BOX */

.np-media-box {
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;

    padding:18px !important;
    margin:0 !important;

    background:#14263d !important;
    border:1px solid #223d5b !important;
    border-radius:11px !important;

    overflow:hidden;
}

.np-media-box-header {
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:20px;
}

.np-media-box-header h2 {
    margin:0 0 4px 0 !important;
    font-size:15px !important;
    line-height:1.3 !important;
    color:#f0f6fc;
}

.np-media-box-header p {
    margin:0 !important;
    color:#8197ad !important;
    font-size:12px !important;
}


/* SERVER + LIBRARY */

.np-media-two-column {
    display:grid !important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) !important;
    gap:14px !important;
    width:100%;
    margin-bottom:14px;
}

.np-media-two-column > .np-media-box {
    min-width:0 !important;
    min-height:215px !important;
}

.np-media-badge {
    white-space:nowrap;
    padding:6px 10px;
    border-radius:7px;
    background:rgba(53,208,127,.08);
    border:1px solid rgba(53,208,127,.22);
    color:#42d98b;
    font-size:11px;
}

.np-media-badge.offline {
    color:#ff6d78;
    border-color:rgba(255,109,120,.25);
    background:rgba(255,109,120,.08);
}


/* IMPORTANT: Jellyfin logo fixed size */

.np-media-server {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:22px !important;
    margin-top:25px;
}

.np-media-jellyfin-logo {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:82px !important;
    height:82px !important;
    min-width:82px !important;
    min-height:82px !important;
    max-width:82px !important;
    max-height:82px !important;

    flex:0 0 82px !important;

    padding:0 !important;
    margin:0 !important;

    overflow:hidden !important;

    border-radius:16px;
    background:#112b47;
    border:1px solid #25415f;
}

.np-media-jellyfin-logo img {
    display:block !important;

    width:52px !important;
    height:52px !important;

    min-width:52px !important;
    min-height:52px !important;

    max-width:52px !important;
    max-height:52px !important;

    object-fit:contain !important;

    margin:0 !important;
    padding:0 !important;
}

.np-media-server-info {
    flex:1 1 auto;
    min-width:0;
}

.np-media-server-info > div {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;

    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.np-media-server-info span {
    color:#8399af;
    font-size:12px;
}

.np-media-server-info strong {
    color:#edf4fb;
    font-size:12px;
}


/* LIBRARY */

.np-media-library {
    margin-top:17px;
}

.np-media-library > div {
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:center !important;

    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.np-media-library span {
    color:#849aaf;
    font-size:12px;
}

.np-media-library strong {
    color:#edf4fb;
    font-size:12px;
}


/* STORAGE */

.np-media-storage {
    margin-bottom:14px !important;
}

.np-media-percent {
    font-size:12px;
    color:#d9e7f5;
}

.np-media-storage-track {
    display:block !important;

    width:100% !important;
    height:10px !important;

    margin:19px 0 16px 0 !important;
    padding:0 !important;

    overflow:hidden !important;

    background:#0d1e31 !important;
    border-radius:20px !important;
}

.np-media-storage-track #media-storage-fill {
    display:block !important;

    height:10px !important;
    min-height:10px !important;
    max-height:10px !important;

    width:0;

    margin:0 !important;
    padding:0 !important;

    border-radius:20px !important;
    background:linear-gradient(
        90deg,
        #168cff,
        #7c5ce5
    ) !important;
}

.np-media-storage-data {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:15px !important;
}

.np-media-storage-data > div {
    display:flex !important;
    flex-direction:column !important;
    gap:4px;
    min-width:0;
}

.np-media-storage-data span {
    color:#8197ad;
    font-size:11px;
}

.np-media-storage-data strong {
    color:#edf4fb;
    font-size:13px;
}


/* RECENT MEDIA */

.np-media-recent {
    min-height:300px;
}

.np-media-view-all {
    color:#4da7ff;
    font-size:12px;
}

.np-media-poster-grid {
    display:grid !important;

    grid-template-columns:
        repeat(6,minmax(0,1fr)) !important;

    gap:14px !important;

    width:100% !important;

    margin-top:18px !important;
    padding:0 !important;

    align-items:start !important;
}


/* Poster card created by media.js */

.np-media-poster-grid .media-poster-card {
    display:block !important;

    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    background:#101f32 !important;
    border:1px solid #213a56 !important;
    border-radius:10px !important;

    transition:
        transform .18s ease,
        border-color .18s ease !important;
}

.np-media-poster-grid .media-poster-card:hover {
    transform:translateY(-3px);
    border-color:#35628d !important;
}


/* Absolutely constrain poster */

.np-media-poster-grid .media-poster-image {
    display:block !important;
    position:relative !important;

    width:100% !important;
    height:auto !important;

    aspect-ratio:2 / 3 !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    background:#0c1929 !important;
}

.np-media-poster-grid .media-poster-image img {
    display:block !important;

    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    min-width:0 !important;
    min-height:0 !important;

    max-width:100% !important;
    max-height:100% !important;

    margin:0 !important;
    padding:0 !important;

    object-fit:cover !important;
}

.np-media-poster-grid
.media-poster-card:hover
.media-poster-image img {
    transform:scale(1.035);
}


/* Missing poster */

.np-media-poster-grid
.media-poster-placeholder {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    min-width:0 !important;
    min-height:0 !important;

    margin:0 !important;
    padding:0 !important;

    font-size:28px !important;

    background:
        linear-gradient(
            145deg,
            #102943,
            #1d2444
        ) !important;
}


/* Poster text */

.np-media-poster-grid .media-poster-info {
    display:block !important;

    box-sizing:border-box !important;

    width:100% !important;
    min-height:58px !important;

    padding:9px 10px !important;
    margin:0 !important;
}

.np-media-poster-grid .media-poster-info strong {
    display:block !important;

    width:100% !important;

    margin:0 0 5px 0 !important;

    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;

    color:#edf4fb !important;
    font-size:12px !important;
    line-height:1.3 !important;
}

.np-media-poster-grid .media-poster-info span {
    display:block !important;

    margin:0 !important;

    color:#7f96ac !important;
    font-size:10px !important;
}


/* RESPONSIVE */

@media (max-width:1200px) {

    .np-media-stats {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .np-media-poster-grid {
        grid-template-columns:
            repeat(4,minmax(0,1fr)) !important;
    }

}


@media (max-width:800px) {

    .np-media {
        padding:16px;
    }

    .np-media-two-column {
        grid-template-columns:1fr !important;
    }

    .np-media-storage-data {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .np-media-poster-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr)) !important;
    }

}


@media (max-width:550px) {

    .np-media-header {
        align-items:flex-start !important;
        flex-direction:column !important;
    }

    .np-media-stats {
        grid-template-columns:1fr !important;
    }

    .np-media-poster-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/* ==========================================================
   MEDIA DETAIL PAGE
   ========================================================== */

.media-poster-card {
    cursor:pointer;
}


.np-detail {
    width:100%;
    min-height:100vh;
    padding-bottom:30px;
}


.np-detail-loading,
.np-detail-error {
    padding:40px;
    color:#9db0c3;
}


.np-detail-backdrop {
    position:relative;
    width:100%;
    height:390px;
    overflow:hidden;

    background:
        radial-gradient(
            circle at 70% 20%,
            #243d5a,
            #0c1827 70%
        );
}


.np-detail-backdrop > img {
    position:absolute;
    inset:0;

    width:100% !important;
    height:100% !important;

    max-width:none !important;
    max-height:none !important;

    object-fit:cover !important;
}


.np-detail-backdrop-shade {
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to bottom,
            rgba(8,17,29,.10) 0%,
            rgba(8,17,29,.40) 45%,
            #0d1b2a 100%
        );
}


.np-detail-back {
    position:absolute;
    z-index:5;
    top:22px;
    left:25px;

    padding:8px 12px;

    border:1px solid rgba(255,255,255,.16);
    border-radius:8px;

    background:rgba(8,18,31,.72);

    color:#edf5ff;
    text-decoration:none;

    font-size:12px;

    backdrop-filter:blur(8px);
}


.np-detail-main {
    position:relative;
    z-index:4;

    display:grid;
    grid-template-columns:210px minmax(0,1fr);
    gap:28px;

    max-width:1250px;

    margin:-125px auto 0 auto;
    padding:0 25px;
}


.np-detail-poster {
    width:210px;
    aspect-ratio:2 / 3;

    overflow:hidden;

    border-radius:12px;
    border:1px solid #314b67;

    background:#102035;

    box-shadow:
        0 15px 35px rgba(0,0,0,.35);
}


.np-detail-poster img {
    display:block;

    width:100% !important;
    height:100% !important;

    max-width:100% !important;
    max-height:100% !important;

    object-fit:cover !important;
}


.np-detail-no-poster {
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:45px;
}


.np-detail-summary {
    align-self:end;
    padding-bottom:12px;
}


.np-detail-type {
    display:inline-block;

    padding:4px 8px;
    margin-bottom:8px;

    border-radius:6px;

    background:#168cff;

    color:white;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
}


.np-detail-summary h1 {
    margin:0 0 10px 0;

    color:#f3f7fc;

    font-size:31px;
    line-height:1.15;
}


.np-detail-meta {
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-bottom:12px;
}


.np-detail-meta span {
    color:#aebfd0;
    font-size:12px;
}


.np-detail-meta span:not(:last-child)::after {
    content:"•";
    margin-left:8px;
    color:#526c86;
}


.np-detail-genres {
    display:flex;
    flex-wrap:wrap;
    gap:6px;

    margin-bottom:13px;
}


.np-detail-genres span {
    padding:5px 8px;

    border:1px solid #29455f;
    border-radius:20px;

    background:#12263a;

    color:#a9bfd2;

    font-size:10px;
}


.np-detail-overview {
    max-width:850px;

    margin:0;

    color:#b5c4d2;
    font-size:13px;
    line-height:1.6;
}


.np-detail-content {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:14px;

    max-width:1250px;

    margin:24px auto 0 auto;
    padding:0 25px;
}


.np-detail-box {
    box-sizing:border-box;

    padding:18px;

    background:#14263d;
    border:1px solid #223d5b;
    border-radius:11px;
}


.np-detail-section-title h2 {
    margin:0 0 17px 0;

    color:#eef5fc;
    font-size:15px;
}


.np-detail-tech-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}


.np-detail-tech-grid > div {
    padding:12px;

    border:1px solid rgba(255,255,255,.055);
    border-radius:8px;

    background:#102136;
}


.np-detail-tech-grid span {
    display:block;

    margin-bottom:5px;

    color:#7f96ad;
    font-size:10px;
}


.np-detail-tech-grid strong {
    color:#e8f0f8;
    font-size:12px;
}


.np-detail-info-list > div {
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:15px;

    padding:9px 0;

    border-bottom:
        1px solid rgba(255,255,255,.055);
}


.np-detail-info-list span {
    color:#8097ad;
    font-size:11px;
}


.np-detail-info-list strong {
    max-width:65%;

    color:#e8f0f8;
    font-size:11px;
    text-align:right;
}


.np-detail > .np-detail-box {
    max-width:1250px;

    margin:14px auto 0 auto;
}


.np-season-list {
    display:flex;
    flex-direction:column;
    gap:10px;
}


.np-season {
    overflow:hidden;

    border:1px solid #233d58;
    border-radius:9px;

    background:#102136;
}


.np-season-header {
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:12px 14px;

    background:#132a43;
}


.np-season-header strong {
    color:#edf5fc;
    font-size:12px;
}


.np-season-header span {
    color:#8199b0;
    font-size:10px;
}


.np-episode-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
}


.np-episode {
    display:flex;
    align-items:center;
    gap:11px;

    min-width:0;

    padding:10px 13px;

    border-top:
        1px solid rgba(255,255,255,.045);
}


.np-episode-number {
    width:27px;
    height:27px;
    flex:0 0 27px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:6px;

    background:#183653;

    color:#73b8f7;
    font-size:10px;
}


.np-episode-info {
    min-width:0;
}


.np-episode-info strong {
    display:block;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;

    color:#dfe9f3;
    font-size:11px;
}


.np-episode-info span {
    color:#70889f;
    font-size:9px;
}


@media(max-width:800px) {

    .np-detail-backdrop {
        height:300px;
    }

    .np-detail-main {
        grid-template-columns:140px minmax(0,1fr);
        gap:18px;

        margin-top:-80px;
    }

    .np-detail-poster {
        width:140px;
    }

    .np-detail-summary h1 {
        font-size:22px;
    }

    .np-detail-content {
        grid-template-columns:1fr;
    }

    .np-detail-tech-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .np-episode-list {
        grid-template-columns:1fr;
    }

}


/* ==========================================================
   NEWPANEL V3 - NAVIGATION V2
   ========================================================== */

.np-sidebar {
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
}


/* BRAND */

.np-sidebar-brand {
    padding-bottom:17px;
    margin-bottom:5px;
    border-bottom:1px solid rgba(255,255,255,.055);
}


/* SECTION LABEL */

.np-sidebar-label {
    margin:15px 12px 7px 12px;

    color:#617c97;
    font-size:9px;
    font-weight:700;
    letter-spacing:.8px;
}

.np-sidebar-system-label {
    margin-top:19px;
}


/* NORMAL LINK */

.sidebar .np-nav-link {
    box-sizing:border-box;

    display:flex;
    align-items:center;
    gap:9px;

    width:100%;

    padding:9px 12px;
    margin:1px 0;

    border-radius:6px;

    color:#9fb1c3;
    text-decoration:none;

    font-size:11px;

    transition:
        background .15s ease,
        color .15s ease;
}

.sidebar .np-nav-link:hover {
    background:#142b42;
    color:#eef6ff;
}

.sidebar .np-nav-link.active {
    background:#173550;
    color:#ffffff;

    box-shadow:
        inset 3px 0 0 #2da8ff;
}


/* ICON */

.np-nav-icon {
    width:15px;
    flex:0 0 15px;

    text-align:center;

    color:#72a9d8;
}


/* GROUP */

.np-nav-group {
    width:100%;
    margin:1px 0;
}


/* GROUP BUTTON */

.sidebar .np-nav-group-button {
    appearance:none;

    box-sizing:border-box;

    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;

    padding:9px 12px;

    border:0;
    border-radius:6px;

    background:transparent;

    color:#9fb1c3;

    font-family:inherit;
    font-size:11px;

    cursor:pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.sidebar .np-nav-group-button:hover,
.np-nav-group.open > .np-nav-group-button {
    background:#12283d;
    color:#eef6ff;
}


.np-nav-group-left {
    display:flex;
    align-items:center;
    gap:9px;
}


.np-nav-chevron {
    color:#668199;
    font-size:16px;

    transform:rotate(0deg);

    transition:transform .18s ease;
}


.np-nav-group.open
> .np-nav-group-button
.np-nav-chevron {
    transform:rotate(90deg);
}


/* SUBMENU */

.np-nav-submenu {
    display:none;

    margin:2px 0 5px 0;
    padding-left:24px;
}


.np-nav-group.open
> .np-nav-submenu {
    display:block;
}


.sidebar .np-nav-submenu a {
    box-sizing:border-box;

    display:block;

    padding:7px 10px;

    margin:1px 0;

    border-radius:5px;

    color:#7891a8;

    text-decoration:none;
    font-size:10px;

    transition:
        background .15s ease,
        color .15s ease;
}


.sidebar .np-nav-submenu a:hover {
    background:#12283d;
    color:#eaf4fd;
}


.sidebar .np-nav-submenu a.active {
    background:#173550;
    color:#ffffff;

    box-shadow:
        inset 2px 0 0 #2da8ff;
}


/* DISABLED */

.sidebar .np-nav-disabled {
    opacity:.48;
    cursor:default;
}

.sidebar .np-nav-disabled:hover {
    background:transparent;
}


/* FOOTER */

.np-sidebar .footer {
    margin-top:auto;
}


/* ==========================================================
   TOP HEADER
   ========================================================== */

.np-top-header {
    box-sizing:border-box;

    display:flex;
    align-items:center;
    justify-content:space-between !important;

    min-height:52px;

    padding:0 22px;
}


.np-header-title {
    color:#7e94a9;
    font-size:11px;
    font-weight:600;
}


/* ==========================================================
   HORIZONTAL NAVIGATION
   ========================================================== */

.np-top-nav {
    box-sizing:border-box;

    display:flex;
    align-items:center;

    gap:4px;

    width:calc(100% - 32px);

    margin:10px 16px 0 16px;
    padding:5px;

    overflow-x:auto;

    border:1px solid #1f354c;
    border-radius:9px;

    background:#102035;
}


.np-top-nav a {
    flex:0 0 auto;

    padding:7px 12px;

    border-radius:6px;

    color:#718ba3;

    text-decoration:none;

    font-size:10px;
    font-weight:500;

    transition:
        color .15s ease,
        background .15s ease;
}


.np-top-nav a:hover {
    color:#e8f2fc;
    background:#162c43;
}


.np-top-nav a.active {
    color:#ffffff;
    background:#183a57;

    box-shadow:
        inset 0 -2px 0 #27a5ff;
}


/* Scrollbar */

.np-top-nav::-webkit-scrollbar {
    height:3px;
}

.np-top-nav::-webkit-scrollbar-thumb {
    background:#29445e;
    border-radius:5px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:900px) {

    .np-top-nav {
        gap:2px;
    }

    .np-top-nav a {
        padding:7px 9px;
    }

}


/* ==========================================================
   DOWNLOADS & AUTOMATION
   ========================================================== */

.np-dl-page {
    box-sizing:border-box;
    width:calc(100% - 32px);
    max-width:1450px;
    margin:22px auto 50px auto;
}


/* HEADER */

.np-dl-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
}

.np-dl-header h1 {
    margin:0;
    color:#f2f7fc;
    font-size:25px;
    font-weight:650;
}

.np-dl-header p {
    margin:5px 0 0 0;
    color:#6f879e;
    font-size:11px;
}

.np-dl-live {
    display:flex;
    align-items:center;
    gap:7px;

    padding:6px 10px;

    border:1px solid #1f3b53;
    border-radius:20px;

    color:#7f9bb3;
    font-size:9px;
    font-weight:700;
    letter-spacing:.7px;
}

.np-dl-live span {
    width:6px;
    height:6px;

    border-radius:50%;
    background:#35d07f;

    box-shadow:0 0 8px rgba(53,208,127,.6);
}


/* BOX */

.np-dl-box {
    box-sizing:border-box;

    border:1px solid #1d3449;
    border-radius:10px;

    background:#101f31;

    padding:18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.10);
}

.np-dl-box-title {
    margin-bottom:16px;

    color:#dce8f3;
    font-size:11px;
    font-weight:700;
    letter-spacing:.3px;
}


/* DOWNLOAD FLOW */

.np-dl-flow {
    display:flex;
    align-items:center;
    justify-content:center;

    gap:15px;

    padding:7px 5px;
}

.np-dl-flow-item {
    min-width:125px;

    text-align:center;
}

.np-dl-flow-icon {
    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    margin:0 auto 8px auto;

    border:1px solid #28445e;
    border-radius:50%;

    background:#14283c;

    color:#8da7bd;
    font-size:10px;
    font-weight:800;
}

.np-dl-flow-item strong {
    display:block;

    color:#d6e2ec;
    font-size:11px;
    font-weight:600;
}

.np-dl-flow-item .np-dl-status {
    display:block;

    margin-top:4px;

    color:#69839a;
    font-size:9px;
}


/* FLOW STATES */

.np-dl-flow-item.ok .np-dl-flow-icon {
    border-color:rgba(48,201,123,.45);
    color:#43d98d;
    background:rgba(32,134,86,.10);
}

.np-dl-flow-item.ok .np-dl-status {
    color:#43c985;
}

.np-dl-flow-item.warning .np-dl-flow-icon {
    border-color:rgba(235,177,69,.55);
    color:#efbb55;
    background:rgba(174,120,27,.10);
}

.np-dl-flow-item.warning .np-dl-status {
    color:#d9a84b;
}

.np-dl-flow-item.error .np-dl-flow-icon {
    border-color:rgba(235,91,91,.55);
    color:#f16e6e;
    background:rgba(167,46,46,.10);
}

.np-dl-flow-item.error .np-dl-status {
    color:#e06a6a;
}

.np-dl-arrow {
    color:#36536c;
    font-size:19px;
}


/* SUMMARY */

.np-dl-summary {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:14px;

    margin:14px 0;
}

.np-dl-stat {
    box-sizing:border-box;

    min-height:108px;

    padding:17px 18px;

    border:1px solid #1d3449;
    border-radius:9px;

    background:#101f31;
}

.np-dl-stat > span {
    display:block;

    color:#6f879e;
    font-size:9px;
    font-weight:700;
    letter-spacing:.55px;
}

.np-dl-stat > strong {
    display:block;

    margin:8px 0 3px;

    color:#f0f6fb;
    font-size:25px;
    line-height:1;
}

.np-dl-stat small {
    color:#60798f;
    font-size:9px;
}

.np-dl-stat.warning > strong {
    color:#efb44e;
}


/* COLUMNS */

.np-dl-columns {
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:14px;

    margin-bottom:14px;
}


/* ROWS */

.np-dl-row {
    display:flex;
    align-items:center;
    justify-content:space-between;

    min-height:34px;

    border-bottom:1px solid rgba(70,100,125,.14);

    color:#7890a5;
    font-size:10px;
}

.np-dl-row:last-child {
    border-bottom:0;
}

.np-dl-row strong {
    color:#dce7f0;
    font-size:11px;
    font-weight:600;
}


/* PROBLEMS */

.np-dl-problems-box {
    margin-bottom:14px;
}

.np-dl-title-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.np-dl-problem-count {
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:21px;
    height:21px;

    padding:0 5px;

    border-radius:20px;

    background:rgba(218,153,48,.12);
    color:#eab44f;

    font-size:9px;
}

.np-dl-problem {
    display:flex;
    align-items:flex-start;
    gap:11px;

    padding:11px 12px;

    border:1px solid rgba(220,158,58,.22);
    border-radius:7px;

    background:rgba(166,109,24,.07);
}

.np-dl-problem + .np-dl-problem {
    margin-top:7px;
}

.np-dl-problem.error {
    border-color:rgba(225,83,83,.25);
    background:rgba(159,44,44,.07);
}

.np-dl-problem-icon {
    display:flex;
    align-items:center;
    justify-content:center;

    width:21px;
    height:21px;

    flex:0 0 21px;

    border-radius:50%;

    background:rgba(232,170,67,.14);
    color:#eab24d;

    font-size:11px;
    font-weight:800;
}

.np-dl-problem.error .np-dl-problem-icon {
    background:rgba(224,77,77,.14);
    color:#ef6c6c;
}

.np-dl-problem strong,
.np-dl-all-ok strong {
    display:block;

    color:#dce7f0;
    font-size:10px;
}

.np-dl-problem p,
.np-dl-all-ok p {
    margin:3px 0 0;

    color:#71899e;
    font-size:10px;
}

.np-dl-all-ok {
    display:flex;
    align-items:center;
    gap:11px;

    padding:11px 12px;

    border:1px solid rgba(48,201,123,.20);
    border-radius:7px;

    background:rgba(34,143,91,.06);
}

.np-dl-all-ok .np-dl-problem-icon {
    color:#45d58c;
    background:rgba(45,194,119,.12);
}

.np-dl-loading {
    color:#71899e;
    font-size:10px;
}


/* SERVICES */

.np-dl-services {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:8px;
}

.np-dl-service {
    display:flex;
    align-items:center;
    gap:9px;

    padding:10px 11px;

    border:1px solid #1a3044;
    border-radius:7px;

    background:#0e1c2c;
}

.np-dl-service-dot {
    width:7px;
    height:7px;

    flex:0 0 7px;

    border-radius:50%;
}

.np-dl-service.online .np-dl-service-dot {
    background:#3bd083;
    box-shadow:0 0 7px rgba(59,208,131,.35);
}

.np-dl-service.offline .np-dl-service-dot {
    background:#e75f5f;
}

.np-dl-service strong {
    display:block;

    color:#cddbe7;
    font-size:10px;
}

.np-dl-service small {
    display:block;

    margin-top:2px;

    color:#617a90;
    font-size:8px;
}


/* RESPONSIVE */

@media(max-width:1050px) {

    .np-dl-flow {
        overflow-x:auto;
        justify-content:flex-start;
    }

    .np-dl-summary {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .np-dl-services {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px) {

    .np-dl-summary,
    .np-dl-columns,
    .np-dl-services {
        grid-template-columns:1fr;
    }

    .np-dl-page {
        width:calc(100% - 20px);
    }
}

/* ==========================================================
   DOWNLOAD FLOW - FORCE SAFE LOGO SIZE
   ========================================================== */

.np-dl-flow .np-dl-flow-icon {
    width:52px !important;
    min-width:52px !important;
    max-width:82px !important;
    height:52px !important;
    min-height:52px !important;
    max-height:52px !important;

    padding:7px !important;
    overflow:hidden !important;

    position:relative;
    box-sizing:border-box;
}

.np-dl-flow .np-dl-flow-icon img,
.np-dl-flow .np-dl-flow-icon svg {
    display:block !important;

    width:38px !important;
    max-width:38px !important;

    height:38px !important;
    max-height:38px !important;

    min-width:0 !important;
    min-height:0 !important;

    object-fit:contain !important;

    position:static !important;
    transform:none !important;

    margin:auto !important;
}

.np-dl-flow .np-dl-double-logo {
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
}

.np-dl-flow .np-dl-double-logo img {
    width:30px !important;
    max-width:30px !important;
    height:30px !important;
    max-height:30px !important;
    margin:0 !important;
}



/* ==========================================================
   DOWNLOAD PROBLEM DETAILS
   ========================================================== */

.np-dl-problem-wrap + .np-dl-problem-wrap {
    margin-top:7px;
}

.np-dl-problem.clickable {
    cursor:pointer;
    user-select:none;
}

.np-dl-problem.clickable:hover {
    border-color:rgba(239,181,75,.48);
    background:rgba(166,109,24,.12);
}

.np-dl-problem-text {
    flex:1;
    min-width:0;
}

.np-dl-expand-arrow {
    margin-left:auto;
    padding:2px 5px;

    color:#9cafbf;
    font-size:16px;

    transition:transform .18s ease;
}

.np-dl-problem.expanded .np-dl-expand-arrow {
    transform:rotate(180deg);
}


/* EXPANDED AREA */

.np-dl-expanded-details {
    display:none;

    margin:5px 4px 10px 32px;

    border:1px solid #1d3449;
    border-radius:7px;

    background:#0c1927;

    overflow:hidden;
}

.np-dl-expanded-details.open {
    display:block;
}

.np-dl-details-loading,
.np-dl-details-empty,
.np-dl-details-error {
    padding:14px;

    color:#7890a5;
    font-size:10px;
}

.np-dl-details-error {
    color:#e66b6b;
}


/* RADARR */

.np-dl-detail-header,
.np-dl-radarr-detail {
    display:grid;
    grid-template-columns:minmax(250px, 42%) 1fr;
    gap:18px;

    padding:9px 12px;
}

.np-dl-detail-header {
    background:#102236;

    color:#68839a;
    font-size:8px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.np-dl-radarr-detail {
    border-top:1px solid rgba(71,99,123,.16);

    color:#8ca0b2;
    font-size:9px;
}

.np-dl-detail-name {
    color:#d3e0ea;
    font-weight:600;

    overflow:hidden;
    text-overflow:ellipsis;
}

.np-dl-detail-reason {
    color:#bd9858;
}


/* QBITTORRENT */

.np-dl-qbit-header,
.np-dl-qbit-row {
    display:grid;

    grid-template-columns:
        minmax(300px, 1fr)
        70px
        85px
        55px
        55px
        145px;

    gap:10px;

    align-items:center;

    padding:9px 12px;
}

.np-dl-qbit-header {
    background:#102236;

    color:#68839a;
    font-size:8px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.np-dl-qbit-row {
    border-top:1px solid rgba(71,99,123,.16);

    color:#8da2b5;
    font-size:9px;
}

.np-dl-zero {
    color:#e7a84d;
    font-weight:700;
}

.np-dl-tracker {
    color:#718ba1;
}


/* MOBILE */

@media(max-width:900px) {

    .np-dl-qbit-header {
        display:none;
    }

    .np-dl-qbit-row {
        grid-template-columns:1fr 70px;
    }

    .np-dl-detail-header {
        display:none;
    }

    .np-dl-radarr-detail {
        grid-template-columns:1fr;
        gap:5px;
    }

    .np-dl-expanded-details {
        margin-left:0;
    }
}



/* ==========================================================
   TORRENT TOPLISTE
   ========================================================== */

.np-dl-top-box {
    margin-bottom:14px;
}

.np-dl-top-subtitle {
    display:block;
    margin-top:3px;

    color:#668096;
    font-size:8px;
    font-weight:400;
}

.np-dl-top-total {
    padding:4px 8px;

    border:1px solid #274158;
    border-radius:12px;

    color:#7f99af;
    font-size:8px;
}

.np-dl-top-head,
.np-dl-top-row {
    display:grid;

    grid-template-columns:
        35px
        minmax(280px, 1fr)
        100px
        70px
        150px
        90px;

    gap:12px;

    align-items:center;
}

.np-dl-top-head {
    padding:8px 10px;

    border-bottom:1px solid #294056;

    color:#698299;

    font-size:8px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.4px;
}

.np-dl-top-row {
    min-height:38px;

    padding:5px 10px;

    border-bottom:
        1px solid rgba(71,99,123,.15);

    color:#93a7b9;
    font-size:9px;
}

.np-dl-top-row:last-child {
    border-bottom:0;
}

.np-dl-top-row:hover {
    background:rgba(37,72,101,.12);
}

.np-dl-top-rank {
    color:#d5e2ec;
    font-weight:700;
}

.np-dl-top-name {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    color:#d6e2eb;
    font-weight:600;
}

.np-dl-top-uploaded {
    color:#61c996;
    font-weight:600;
}


@media(max-width:900px) {

    .np-dl-top-head {
        display:none;
    }

    .np-dl-top-row {
        grid-template-columns:30px 1fr 80px;
    }

    .np-dl-top-row > :nth-child(4),
    .np-dl-top-row > :nth-child(5),
    .np-dl-top-row > :nth-child(6) {
        display:none;
    }
}



/* ==========================================================
   FULL TORRENT TOPLIST
   ========================================================== */

.np-top-page {
    width:calc(100% - 32px);
    max-width:1600px;
    margin:22px auto 50px;
}

.np-top-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.np-top-header h1 {
    margin:0;
    color:#f0f6fb;
    font-size:24px;
}

.np-top-header p {
    margin:5px 0 0;
    color:#70889d;
    font-size:10px;
}

.np-top-back {
    padding:7px 11px;
    border:1px solid #28445c;
    border-radius:6px;
    color:#8fa8bc;
    text-decoration:none;
    font-size:9px;
}


/* CONTROLS */

.np-top-controls {
    display:grid;
    grid-template-columns:240px 160px 1fr;
    gap:14px;

    padding:15px;

    border:1px solid #1d3449;
    border-radius:9px;

    background:#101f31;
}

.np-top-controls label > span {
    display:block;
    margin-bottom:6px;
    color:#71899e;
    font-size:9px;
}

.np-top-controls select,
.np-top-controls input {
    box-sizing:border-box;
    width:100%;
    height:34px;

    padding:0 10px;

    border:1px solid #294359;
    border-radius:5px;

    outline:none;

    background:#0b1928;
    color:#cddbe6;

    font-size:10px;
}

.np-top-controls input:focus,
.np-top-controls select:focus {
    border-color:#3c7198;
}


/* STATS */

.np-top-stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin:12px 0;
}

.np-top-stats > div {
    padding:13px 15px;

    border:1px solid #1d3449;
    border-radius:8px;

    background:#101f31;
}

.np-top-stats span {
    display:block;
    color:#70889d;
    font-size:8px;
    text-transform:uppercase;
}

.np-top-stats strong {
    display:block;
    margin-top:5px;
    color:#e5eef5;
    font-size:18px;
}


/* TABLE */

.np-top-table-wrap {
    border:1px solid #1d3449;
    border-radius:9px;
    overflow:hidden;

    background:#101f31;
}

.np-top-table-head,
.np-top-table-row {
    display:grid;

    grid-template-columns:
        38px
        minmax(280px,1fr)
        90px
        100px
        65px
        90px
        145px
        100px
        80px
        80px;

    gap:10px;
    align-items:center;
}

.np-top-table-head {
    min-height:34px;
    padding:0 12px;

    background:#12253a;
    border-bottom:1px solid #294258;

    color:#718ba1;
    font-size:8px;
    font-weight:700;

    text-transform:uppercase;
}

.np-top-table-row {
    min-height:43px;
    padding:0 12px;

    border-bottom:
        1px solid rgba(72,101,126,.16);

    color:#8da3b5;
    font-size:9px;
}

.np-top-table-row:last-child {
    border-bottom:0;
}

.np-top-table-row:hover {
    background:rgba(36,72,102,.13);
}

.np-top-rank {
    color:#d6e3ed;
    font-weight:700;
}

.np-top-name {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    color:#d5e2ec;
    font-weight:600;
}

.np-top-uploaded {
    color:#5fd09a;
    font-weight:600;
}

.np-top-tracker {
    color:#81a2ba;
}

.np-top-empty,
.np-top-error {
    padding:25px;
    text-align:center;
    color:#71899e;
    font-size:10px;
}

.np-top-error {
    color:#e66c6c;
}


@media(max-width:1100px) {

    .np-top-controls {
        grid-template-columns:1fr 1fr;
    }

    .np-top-search-wrap {
        grid-column:1 / -1;
    }

    .np-top-table-wrap {
        overflow-x:auto;
    }

    .np-top-table-head,
    .np-top-table-row {
        min-width:1150px;
    }
}



/* =========================================================
   REUSE
   ========================================================= */

.np-reuse-page {
    padding: 6px 0 30px;
}

.np-reuse-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.np-reuse-header h1 {
    margin: 0 0 5px;
    font-size: 27px;
}

.np-reuse-header p,
.np-reuse-updated {
    margin: 0;
    color: var(--text-muted, #8fa2bd);
}

.np-reuse-updated {
    font-size: 13px;
    padding-top: 8px;
}

.np-reuse-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.np-reuse-status-card,
.np-reuse-metric,
.np-reuse-panel {
    background: rgba(14, 28, 52, .72);
    border: 1px solid rgba(119, 157, 211, .13);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.np-reuse-status-card {
    padding: 18px;
}

.np-reuse-status-head {
    display: flex;
    justify-content: space-between;
    color: #a8bad2;
    margin-bottom: 13px;
}

.np-reuse-status-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.np-reuse-status-card small,
.np-reuse-metric small {
    color: #7f93ad;
}

.np-reuse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 8px rgba(107, 114, 128, .5);
}

.np-reuse-dot.ok {
    background: #34d399;
    box-shadow: 0 0 9px rgba(52, 211, 153, .65);
}

.np-reuse-dot.error {
    background: #fb7185;
    box-shadow: 0 0 9px rgba(251, 113, 133, .65);
}

.np-reuse-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.np-reuse-metric {
    padding: 18px;
}

.np-reuse-metric > span {
    display: block;
    color: #91a6c2;
    font-size: 13px;
    margin-bottom: 9px;
}

.np-reuse-metric strong {
    display: block;
    font-size: 25px;
    margin-bottom: 4px;
}

.np-reuse-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.np-reuse-panel {
    padding: 18px;
}

.np-reuse-panel h2 {
    font-size: 16px;
    margin: 0 0 14px;
}

.np-reuse-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(130, 160, 200, .1);
}

.np-reuse-activity-row:last-child {
    border-bottom: 0;
}

.np-reuse-activity-main {
    min-width: 0;
}

.np-reuse-activity-main strong {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-reuse-activity-main small {
    display: block;
    color: #758aa6;
    margin-top: 4px;
}

.np-reuse-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(148, 163, 184, .12);
    color: #aab8ca;
}

.np-reuse-badge.ok {
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
}

.np-reuse-badge.warning {
    background: rgba(251, 191, 36, .12);
    color: #fcd34d;
}

.np-reuse-empty {
    color: #7488a3;
    padding: 15px 0;
}

.np-reuse-how p {
    color: #91a6c2;
    line-height: 1.65;
    max-width: 950px;
}

@media (max-width: 950px) {
    .np-reuse-status-grid,
    .np-reuse-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .np-reuse-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .np-reuse-status-grid,
    .np-reuse-metrics {
        grid-template-columns: 1fr;
    }

    .np-reuse-header {
        display: block;
    }
}

/* Reuse total */
.np-reuse-total {
    border-color: rgba(52, 211, 153, .28);
}

.np-reuse-total strong {
    font-size: 27px;
}

/* =========================================================
   MEDIA STATUS
   ========================================================= */

.np-media-status {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.np-media-status .np-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.np-media-status .np-page-header h1 {
    margin: 0 0 5px;
}

.np-media-status .np-page-header p {
    margin: 0;
    opacity: .65;
}

.np-ms-refresh,
.np-ms-link-button {
    border: 1px solid rgba(96,165,250,.28);
    background: rgba(37,99,235,.12);
    color: #bfdbfe;
    border-radius: 9px;
    padding: 8px 14px;
    cursor: pointer;
}

.np-ms-refresh:hover,
.np-ms-link-button:hover {
    background: rgba(37,99,235,.22);
}

.np-ms-refresh:disabled {
    opacity: .55;
    cursor: default;
}

.np-ms-apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.np-ms-app-card,
.np-ms-panel {
    background: rgba(11,25,48,.72);
    border: 1px solid rgba(96,165,250,.15);
    border-radius: 14px;
    padding: 18px;
}

.np-ms-app-head,
.np-ms-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.np-ms-app-head h2,
.np-ms-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.np-ms-app-head > div > span,
.np-ms-panel-head span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: .55;
}

.np-ms-status {
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
}

.np-ms-status.ok {
    background: rgba(34,197,94,.12);
    color: #86efac;
    border: 1px solid rgba(34,197,94,.25);
}

.np-ms-status.error {
    background: rgba(239,68,68,.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.25);
}

.np-ms-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 9px;
    margin-bottom: 15px;
}

.np-ms-stats > div {
    background: rgba(4,14,31,.45);
    border: 1px solid rgba(148,163,184,.09);
    border-radius: 10px;
    padding: 11px;
    min-width: 0;
}

.np-ms-stats span {
    display: block;
    font-size: 11px;
    opacity: .58;
    margin-bottom: 5px;
}

.np-ms-stats strong {
    font-size: 21px;
}

.np-ms-missing {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid rgba(148,163,184,.1);
}

.np-ms-missing-row {
    padding: 10px 4px;
    font-size: 13px;
    border-bottom: 1px solid rgba(148,163,184,.07);
}

.np-ms-table-wrap {
    overflow-x: auto;
}

.np-ms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.np-ms-table th {
    text-align: left;
    padding: 9px 10px;
    font-size: 11px;
    font-weight: 600;
    opacity: .55;
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.np-ms-table td {
    padding: 11px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148,163,184,.07);
}

.np-ms-title {
    max-width: 480px;
    overflow-wrap: anywhere;
}

.np-ms-app-tag,
.np-ms-queue-status {
    display: inline-block;
    white-space: nowrap;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.np-ms-app-tag.sonarr {
    background: rgba(59,130,246,.13);
    color: #93c5fd;
}

.np-ms-app-tag.radarr {
    background: rgba(168,85,247,.13);
    color: #d8b4fe;
}

.np-ms-queue-status.active {
    background: rgba(59,130,246,.13);
    color: #93c5fd;
}

.np-ms-queue-status.warning {
    background: rgba(245,158,11,.13);
    color: #fcd34d;
}

.np-ms-queue-status.error {
    background: rgba(239,68,68,.13);
    color: #fca5a5;
}

.np-ms-queue-status.normal {
    background: rgba(148,163,184,.1);
}

.np-ms-progress {
    width: 85px;
    height: 5px;
    overflow: hidden;
    background: rgba(148,163,184,.12);
    border-radius: 999px;
    margin-bottom: 3px;
}

.np-ms-progress > div {
    height: 100%;
    background: currentColor;
    border-radius: inherit;
}

.np-ms-table small {
    font-size: 10px;
    opacity: .55;
}

.np-ms-problems {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-ms-problem {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(245,158,11,.055);
    border: 1px solid rgba(245,158,11,.15);
    border-radius: 10px;
}

.np-ms-problem strong {
    font-size: 13px;
}

.np-ms-problem p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: .65;
}

.np-ms-all-ok {
    color: #86efac;
    font-size: 13px;
}

.np-ms-empty {
    padding: 16px !important;
    text-align: center;
    opacity: .55;
}

@media (max-width: 1100px) {
    .np-ms-apps {
        grid-template-columns: 1fr;
    }

    .np-ms-stats {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 650px) {
    .np-ms-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}


/* Media Status - compact problem groups */

.np-ms-problem-main {
    min-width: 0;
}

.np-ms-problem-toggle {
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 7px;
    border: 1px solid rgba(245,158,11,.22);
    background: rgba(245,158,11,.08);
    color: #fcd34d;
    font-size: 11px;
    cursor: pointer;
}

.np-ms-problem-toggle:hover {
    background: rgba(245,158,11,.15);
}

.np-ms-problem-details {
    margin-top: 10px;
    border-top: 1px solid rgba(245,158,11,.12);
}

.np-ms-problem-detail {
    padding: 8px 2px;
    font-size: 12px;
    opacity: .75;
    border-bottom: 1px solid rgba(148,163,184,.07);
}


/* =========================================================
   JELLYFIN STATUS
   ========================================================= */

.np-jf-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.np-jf-status .np-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-jf-status .np-page-header h1 {
    margin: 0 0 5px;
}

.np-jf-status .np-page-header p {
    margin: 0;
    opacity: .6;
}

.np-jf-refresh {
    border: 1px solid rgba(96,165,250,.28);
    background: rgba(37,99,235,.12);
    color: #bfdbfe;
    border-radius: 9px;
    padding: 8px 14px;
    cursor: pointer;
}

.np-jf-server,
.np-jf-card,
.np-jf-panel {
    background: rgba(11,25,48,.72);
    border: 1px solid rgba(96,165,250,.15);
    border-radius: 14px;
}

.np-jf-server {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-jf-server strong,
.np-jf-server small {
    display: block;
}

.np-jf-server small {
    margin-top: 4px;
    opacity: .55;
}

.np-jf-label {
    display: block;
    font-size: 10px;
    opacity: .5;
    margin-bottom: 5px;
}

.np-jf-server-state {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-jf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.np-jf-dot.ok {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,.45);
}

.np-jf-dot.error {
    background: #ef4444;
}

.np-jf-metrics {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 12px;
}

.np-jf-card {
    padding: 15px;
}

.np-jf-card span {
    display: block;
    font-size: 11px;
    opacity: .58;
    margin-bottom: 6px;
}

.np-jf-card strong {
    font-size: 24px;
}

.np-jf-panels {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.np-jf-panel {
    padding: 18px;
}

.np-jf-panel h2 {
    margin: 0 0 15px;
    font-size: 17px;
}

.np-jf-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.np-jf-panel-head h2 {
    margin: 0;
}

.np-jf-panel-head span {
    font-size: 11px;
    opacity: .55;
}

.np-jf-process-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148,163,184,.07);
    font-size: 13px;
}

.np-jf-process-row span {
    opacity: .6;
}

.np-jf-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid rgba(148,163,184,.08);
}

.np-jf-session strong,
.np-jf-session span {
    display: block;
}

.np-jf-session > div > span {
    margin-top: 4px;
    font-size: 11px;
    opacity: .55;
}

.np-jf-play-method {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(59,130,246,.12);
    color: #93c5fd;
    font-size: 11px;
}

.np-jf-empty {
    padding: 18px 4px;
    opacity: .5;
    font-size: 13px;
}

@media (max-width:1100px) {
    .np-jf-metrics {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width:750px) {
    .np-jf-panels {
        grid-template-columns: 1fr;
    }

    .np-jf-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


/* Jellyfin - Senest afspillet */

.np-jf-recent-panel {
    overflow: hidden;
}

.np-jf-recent {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.np-jf-recent-item {
    min-width: 0;
    display: flex;
    gap: 12px;
    padding: 11px;
    border: 1px solid rgba(96,165,250,.10);
    background: rgba(15,31,57,.48);
    border-radius: 11px;
}

.np-jf-recent-poster {
    width: 72px;
    height: 106px;
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255,255,255,.035);
}

.np-jf-recent-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.np-jf-recent-info {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.np-jf-recent-info strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-jf-recent-info > span {
    display: block;
    font-size: 10px;
    opacity: .58;
    margin-top: 4px;
}

.np-jf-recent-progress {
    height: 4px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148,163,184,.12);
}

.np-jf-recent-progress > div {
    height: 100%;
    border-radius: inherit;
    background: #3b82f6;
}

.np-jf-recent-info .np-jf-recent-percent {
    margin-top: 4px;
    font-size: 9px;
    opacity: .45;
}

@media (max-width: 1400px) {
    .np-jf-recent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .np-jf-recent {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   SERVICES
   ============================================================ */

.np-services-page {
    padding: 4px 0 40px;
}

.np-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.np-services-header h1 {
    margin: 0 0 5px;
}

.np-services-header p {
    margin: 0;
    opacity: .65;
}

.np-service-refresh {
    background: #182a46;
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.np-service-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.np-service-stat,
.np-service-card {
    background: #101c30;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}

.np-service-stat {
    padding: 17px 20px;
}

.np-service-stat span {
    display: block;
    font-size: 12px;
    opacity: .55;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.np-service-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 25px;
}

.np-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.np-service-card {
    padding: 18px;
}

.np-service-card-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.np-service-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.np-service-card small {
    opacity: .45;
}

.np-service-state {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
}

.np-service-state span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.np-service-state.running {
    color: #54d890;
}

.np-service-state.running span {
    background: #54d890;
}

.np-service-state.stopped {
    color: #ef7070;
}

.np-service-state.stopped span {
    background: #ef7070;
}

.np-service-version {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.np-service-version > div {
    background: rgba(255,255,255,.025);
    padding: 11px 13px;
    border-radius: 7px;
}

.np-service-version span {
    display: block;
    font-size: 11px;
    opacity: .5;
    margin-bottom: 5px;
}

.np-service-version strong {
    font-size: 14px;
}

.np-service-actions {
    display: flex;
    gap: 8px;
}

.np-service-actions button {
    border: 1px solid rgba(255,255,255,.10);
    background: #182a46;
    color: #fff;
    border-radius: 7px;
    padding: 8px 13px;
}

.np-service-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.np-service-loading,
.np-service-error {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    opacity: .65;
}

@media (max-width: 900px) {
    .np-service-grid {
        grid-template-columns: 1fr;
    }

    .np-service-summary {
        grid-template-columns: 1fr;
    }
}


/* Service version status */

.np-version-current {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #54d890;
}

.np-version-update {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #f0b85a;
}

.np-version-unknown {
    opacity: .55;
}

/* Service Manager update status */
.np-update-status {
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.np-update-status.updating {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.np-update-status.success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.np-update-status.failed {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* =========================================================
   NEWPANEL V3 - DISK & STORAGE
   ========================================================= */

.np-disk-page {
    width: 100%;
}

.np-disk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.np-disk-header h1 {
    margin: 0;
}

.np-disk-header p {
    margin: 6px 0 0;
    color: #94a3b8;
}

.np-disk-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.np-disk-stat,
.np-disk-card {
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px;
}

.np-disk-stat {
    padding: 18px;
}

.np-disk-stat span {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 8px;
}

.np-disk-stat strong {
    font-size: 25px;
}

.np-disk-card {
    padding: 20px;
    margin-bottom: 18px;
}

.np-disk-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.np-disk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-disk-card-header h2 {
    margin-bottom: 4px;
}

.np-disk-card-header span {
    color: #94a3b8;
    font-size: 13px;
}

.np-disk-progress {
    height: 12px;
    background: rgba(148, 163, 184, .12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 18px;
}

.np-disk-progress > div {
    height: 100%;
    width: 0;
    background: #3b82f6;
    border-radius: inherit;
    transition: width .4s ease;
}

.np-disk-progress-info {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 9px;
}

.np-disk-grid {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(400px, 1.2fr);
    gap: 18px;
}

.np-forecast-status {
    color: #94a3b8;
    line-height: 1.7;
}

.np-forecast-status strong {
    color: #e2e8f0;
}

.np-forecast-details {
    margin-top: 18px;
}

.np-forecast-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(148, 163, 184, .10);
}

.np-forecast-row small {
    grid-column: 1 / -1;
    color: #64748b;
}

.np-history-controls {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.np-history-controls button {
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(30,41,59,.7);
    color: #cbd5e1;
    border-radius: 7px;
    padding: 6px 10px;
    cursor: pointer;
}

.np-history-controls button:hover {
    background: rgba(51,65,85,.9);
}

.np-disk-chart-wrap {
    width: 100%;
    min-height: 240px;
}

#diskHistoryChart {
    display: block;
    width: 100%;
}

@media (max-width: 900px) {
    .np-disk-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-disk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .np-disk-summary {
        grid-template-columns: 1fr;
    }
}

/* RAID */

.np-raid-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.np-raid-item {
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 10px;
    padding: 16px;
}

.np-raid-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.np-raid-top > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.np-raid-top strong {
    font-size: 17px;
}

.np-raid-top div span {
    color: #94a3b8;
    font-size: 12px;
}

.np-raid-status {
    font-size: 11px;
    font-weight: 700;
}

.np-raid-status.ok {
    color: #4ade80;
}

.np-raid-status.error {
    color: #f87171;
}

.np-raid-size {
    font-size: 23px;
    font-weight: 700;
    margin: 18px 0;
}

.np-raid-devices {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #94a3b8;
    font-size: 12px;
}

.np-raid-devices strong {
    color: #e2e8f0;
}

.np-raid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(148,163,184,.10);
    margin-top: 12px;
    padding-top: 12px;
    color: #64748b;
    font-size: 11px;
}

.np-raid-redundancy {
    padding: 3px 7px;
    border-radius: 999px;
}

.np-raid-redundancy.ok {
    color: #4ade80;
    background: rgba(34,197,94,.10);
}

.np-raid-redundancy.info {
    color: #fbbf24;
    background: rgba(245,158,11,.10);
}

.np-raid-loading {
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .np-raid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .np-raid-grid {
        grid-template-columns: 1fr;
    }
}

/* Physical disks */

.np-drive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.np-drive-item {
    background: rgba(15,23,42,.55);
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 10px;
    padding: 16px;
}

.np-drive-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.np-drive-top > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.np-drive-top > div > strong {
    font-size: 17px;
}

.np-drive-top > div > span {
    color: #94a3b8;
    font-size: 12px;
}

.np-drive-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0;
}

.np-drive-main > strong {
    font-size: 23px;
}

.np-drive-temp {
    font-size: 20px;
    font-weight: 700;
}

.np-drive-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #94a3b8;
    font-size: 12px;
}

.np-drive-row strong {
    color: #e2e8f0;
}

.np-drive-serial {
    border-top: 1px solid rgba(148,163,184,.10);
    margin-top: 12px;
    padding-top: 10px;
    color: #64748b;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .np-drive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .np-drive-grid {
        grid-template-columns: 1fr;
    }
}

/* Disk forecast main estimate */

.np-forecast-main {
    text-align: center;
    padding: 18px 10px 22px;
}

.np-forecast-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.np-forecast-days {
    display: block;
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 7px;
}

.np-forecast-date {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.np-forecast-quality {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

/* History */

.np-history-page {
    width: 100%;
}

.np-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.np-history-header h1 {
    margin: 0;
}

.np-history-header p {
    margin: 5px 0 0;
    color: #94a3b8;
}

.np-history-refresh,
.np-history-range button {
    background: rgba(30,41,59,.75);
    color: #cbd5e1;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
}

.np-history-range {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.np-history-range button.active {
    background: #2563eb;
    color: white;
}

.np-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.np-history-card {
    background: rgba(15,23,42,.55);
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 12px;
    padding: 18px;
}

.np-history-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.np-history-card-head h2 {
    margin: 0;
    font-size: 17px;
}

.np-history-card-head span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

.np-history-card-head > strong {
    font-size: 20px;
}

.np-history-card canvas {
    display: block;
    width: 100%;
    height: 180px;
}

.np-history-stats {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(148,163,184,.10);
    padding-top: 12px;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.np-history-stats strong {
    color: #e2e8f0;
    margin-left: 4px;
}

@media (max-width: 900px) {
    .np-history-grid {
        grid-template-columns: 1fr;
    }
}

/* Logs */

.np-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.np-logs-header h1 {
    margin: 0;
}

.np-logs-header p {
    margin: 5px 0 0;
    color: #94a3b8;
}

.np-log-refresh,
.np-log-toolbar select,
.np-log-toolbar input {
    background: rgba(30,41,59,.8);
    border: 1px solid rgba(148,163,184,.15);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
}

.np-log-refresh {
    cursor: pointer;
}

.np-log-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.np-log-toolbar select {
    min-width: 130px;
}

.np-log-toolbar input[type="search"] {
    min-width: 230px;
    flex: 1;
}

.np-log-auto {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 13px;
}

.np-log-info {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 12px;
    margin: 10px 2px;
}

.np-log-viewer {
    height: 620px;
    overflow: auto;
    background: rgba(2,6,23,.8);
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 10px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.np-log-line {
    white-space: pre-wrap;
    word-break: break-word;
    padding: 2px 6px;
    border-radius: 4px;
}

.np-log-line.warning {
    color: #fbbf24;
    background: rgba(245,158,11,.06);
}

.np-log-line.error {
    color: #f87171;
    background: rgba(239,68,68,.08);
}

.np-log-empty {
    color: #64748b;
    text-align: center;
    padding: 80px 20px;
}

@media (max-width: 700px) {
    .np-log-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .np-log-toolbar select,
    .np-log-toolbar input[type="search"] {
        width: 100%;
        min-width: 0;
    }

    .np-log-viewer {
        height: 500px;
    }
}

/* Settings */

.np-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.np-settings-header h1 {
    margin: 0;
}

.np-settings-header p {
    margin: 5px 0 0;
    color: #94a3b8;
}

.np-settings-save {
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.np-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.np-settings-card {
    background: rgba(15,23,42,.55);
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 12px;
    padding: 20px;
}

.np-settings-card-head {
    margin-bottom: 20px;
}

.np-settings-card-head h2 {
    margin: 0;
    font-size: 17px;
}

.np-settings-card-head span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.np-setting-field {
    display: block;
    margin-bottom: 17px;
}

.np-setting-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.np-setting-field input,
.np-setting-field select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(30,41,59,.8);
    border: 1px solid rgba(148,163,184,.15);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 11px;
}

.np-setting-field small,
.np-setting-toggle small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.np-setting-input-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.np-setting-input-unit input {
    flex: 1;
}

.np-setting-input-unit > span {
    color: #94a3b8;
    font-size: 12px;
    min-width: 35px;
}

.np-setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.np-setting-toggle > div > span {
    font-size: 13px;
    font-weight: 600;
}

.np-setting-toggle input {
    width: 18px;
    height: 18px;
}

.np-settings-message {
    display: none;
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.np-settings-message.show {
    display: block;
}

.np-settings-message.success {
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.25);
    color: #86efac;
}

.np-settings-message.error {
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}

@media (max-width: 900px) {
    .np-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   NEWPANEL - MIN KONTO
   ========================================================= */

.np-account-page {
    max-width: 1200px;
}

.np-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.np-account-card {
    padding: 24px;
}

.np-account-card h2 {
    margin-top: 0;
    margin-bottom: 22px;
}

.np-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.np-account-row:last-child {
    border-bottom: 0;
}

.np-account-row span,
.np-account-description,
.np-account-note {
    color: #9aa9bd;
}

.np-account-button {
    margin-top: 18px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    opacity: .45;
    cursor: not-allowed;
}

.np-account-note {
    margin-top: 14px;
    font-size: 13px;
}

@media (max-width: 850px) {
    .np-account-grid {
        grid-template-columns: 1fr;
    }
}


/* Min konto - formularer */

.np-account-form {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.np-account-form h3 {
    margin: 0 0 18px 0;
}

.np-account-form label {
    display: block;
    margin: 14px 0 7px;
    color: #9aa9bd;
    font-size: 13px;
}

.np-account-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
    color: inherit;
    outline: none;
}

.np-account-form input:focus {
    border-color: rgba(255,255,255,.28);
}

.np-account-form .np-account-button {
    opacity: 1;
    cursor: pointer;
}

.np-account-form .np-account-button:disabled {
    opacity: .5;
    cursor: wait;
}

.np-account-message {
    min-height: 20px;
    margin-top: 13px;
    font-size: 13px;
}

.np-account-success {
    color: #69d59b;
}

.np-account-error {
    color: #ff7b86;
}


/* =========================================================
   NEWPANEL LOGIN
   ========================================================= */

.np-login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07101d;
    color: #e7edf5;
    font-family: Arial, sans-serif;
}

.np-login-box {
    width: min(400px, calc(100% - 40px));
    box-sizing: border-box;
    padding: 34px;
    background: #101b2b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.np-login-brand {
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 700;
}

.np-login-box h1 {
    margin: 0 0 8px;
}

.np-login-description {
    margin-bottom: 26px;
    color: #9aa9bd;
}

.np-login-box label {
    display: block;
    margin: 15px 0 7px;
    color: #9aa9bd;
    font-size: 13px;
}

.np-login-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
    color: #e7edf5;
    outline: none;
}

.np-login-box input:focus {
    border-color: rgba(255,255,255,.35);
}

.np-login-box button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.np-login-box button:disabled {
    opacity: .5;
    cursor: wait;
}

.np-login-message {
    min-height: 20px;
    margin-top: 14px;
    color: #ff7b86;
    font-size: 13px;
}


/* Min konto - Log ud */

.np-account-page .np-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.np-account-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    color: #e7edf5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}

.np-account-logout:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.22);
}


/* =========================================================
   SECURITY
   ========================================================= */

.np-security-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.np-security-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-security-summary-card span {
    color: #93a3b8;
    font-size: 13px;
}

.np-security-summary-card strong {
    font-size: 18px;
}

.np-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.np-security-card h2,
.np-security-warning-card h2 {
    margin-top: 0;
}

.np-security-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.np-security-row > span {
    color: #93a3b8;
}

.np-sec-ok {
    color: #57d68d !important;
}

.np-sec-warn {
    color: #f4c76b !important;
}

.np-sec-bad {
    color: #ff727c !important;
}

.np-security-warnings {
    margin-bottom: 20px;
}

.np-security-warning {
    padding: 9px 0;
    color: #f4c76b;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.np-security-warning:last-child {
    border-bottom: 0;
}

.np-security-good-card {
    color: #57d68d;
}

.np-security-table-wrap {
    margin-top: 15px;
    overflow-x: auto;
}

.np-security-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.np-security-table th,
.np-security-table td {
    padding: 9px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.np-security-table th {
    color: #93a3b8;
    font-weight: 500;
}

.np-security-ports {
    max-height: 420px;
    overflow-y: auto;
}

.np-wireguard-interface {
    margin-bottom: 18px;
}

.np-wireguard-interface:last-child {
    margin-bottom: 0;
}

.np-wireguard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
}

.np-wireguard-peer {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0,0,0,.13);
    border-radius: 8px;
}

.np-security-description,
.np-security-muted {
    color: #93a3b8;
}

@media (max-width: 1000px) {
    .np-security-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-security-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .np-security-summary {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   Apps - Card Redesign
   ========================================================== */

.apps-page {
    width: 100%;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.apps-header h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.apps-header p {
    margin: 0;
    opacity: .58;
    font-size: 13px;
}

.apps-refresh {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    color: inherit;
    border-radius: 9px;
    padding: 9px 15px;
    cursor: pointer;
    transition: .18s ease;
}

.apps-refresh:hover {
    background: rgba(255,255,255,.10);
}

.apps-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.apps-summary-card {
    background: rgba(12, 28, 48, .72);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 12px;
    padding: 15px 17px;
}

.apps-summary-card span {
    display: block;
    font-size: 11px;
    opacity: .55;
    margin-bottom: 5px;
}

.apps-summary-card strong {
    font-size: 22px;
    line-height: 1;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.app-install-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            145deg,
            rgba(15, 34, 57, .92),
            rgba(9, 24, 42, .88)
        );
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 14px;
    padding: 18px;
    overflow: hidden;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.app-install-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.app-install-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.app-install-top > div {
    min-width: 0;
}

.app-install-top h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
}

.app-install-top p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    opacity: .55;
}

.app-status {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 5px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.07);
}

.app-status.running {
    color: #74e8a4;
    background: rgba(40,180,100,.14);
    border: 1px solid rgba(70,220,130,.12);
}

.app-status.stopped {
    color: #f1c66d;
    background: rgba(240,170,40,.13);
    border: 1px solid rgba(240,170,40,.12);
}

.app-status.available {
    color: #9ec7ff;
    background: rgba(60,130,220,.14);
    border: 1px solid rgba(70,140,240,.12);
}

.app-status.missing {
    color: #ff9a9a;
    background: rgba(220,70,70,.13);
}

.app-status.installing {
    color: #9ec7ff;
    background: rgba(70,140,240,.18);
}

.app-install-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.055);
    font-size: 10px;
}

.app-install-info span {
    opacity: .45;
}

.app-install-info code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    opacity: .65;
}

.np-service-version {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.np-service-version > div {
    min-width: 0;
    padding: 10px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 8px;
}

.np-service-version span {
    display: block;
    font-size: 9px;
    opacity: .45;
    margin-bottom: 4px;
}

.np-service-version strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    white-space: nowrap;
}

.np-version-update,
.np-version-current {
    margin-top: 5px;
    font-size: 9px;
}

.np-version-update {
    color: #f1c66d;
}

.np-version-current {
    color: #74e8a4;
}

.app-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 15px;
}

.app-install-actions button,
.app-install-actions .app-install-button {
    width: auto;
    flex: 1 1 auto;
    min-width: 76px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    background: rgba(255,255,255,.055);
    color: inherit;
    cursor: pointer;
    transition: .15s ease;
}

.app-install-actions button:hover,
.app-install-actions .app-install-button:hover {
    background: rgba(255,255,255,.105);
    border-color: rgba(255,255,255,.13);
}

.app-install-actions button.start,
.app-install-actions .app-install-button {
    background: rgba(55,125,220,.14);
    border-color: rgba(80,150,245,.18);
}

.app-install-actions button.danger {
    background: rgba(210,65,65,.10);
    border-color: rgba(230,80,80,.13);
}

.app-install-actions button.update {
    background: rgba(210,150,40,.10);
}

.app-install-actions button:disabled {
    opacity: .42;
    cursor: default;
}

.app-install-log {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    box-sizing: border-box;
    max-height: 180px;
    overflow: auto;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.45;
    border-radius: 7px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.05);
}

.apps-loading,
.apps-error {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    opacity: .6;
}

/* Logo area - official logos are added next */
.app-logo-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.055);
}

.app-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

@media (min-width: 1500px) {
    .apps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1150px) {
    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .apps-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .apps-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .apps-summary {
        grid-template-columns: 1fr 1fr;
    }

    .np-service-version {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SETTINGS - REDESIGN
   ========================================================= */

.np-settings-grid {
    align-items: start;
    gap: 18px;
}

.np-settings-card {
    padding: 22px;
    min-width: 0;
}

.np-settings-card--cleaning {
    grid-column: 1 / -1;
    position: relative;
}

.np-settings-card--cleaning::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: #2563eb;
}

.np-settings-card--cleaning .np-settings-card-head {
    padding-left: 10px;
}

.np-settings-card--cleaning .np-setting-toggle {
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    background: rgba(30,41,59,.35);
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 9px;
}

.np-settings-card--cleaning .np-setting-field {
    margin-bottom: 16px;
}

.np-settings-card--cleaning > small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.np-settings-header {
    margin-bottom: 24px;
}

.np-settings-header h1 {
    font-size: 24px;
    letter-spacing: -.3px;
}

.np-settings-save {
    padding: 11px 18px;
    border-radius: 8px;
}

@media (min-width: 901px) {
    .np-settings-card--cleaning {
        padding: 22px 26px;
    }

    .np-settings-card--cleaning .np-setting-field {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
    }

    .np-settings-card--cleaning .np-setting-field > span {
        margin-bottom: 0;
    }

    .np-settings-card--cleaning .np-setting-field small {
        grid-column: 2;
    }

    .np-settings-card--cleaning .np-setting-input-unit {
        max-width: 100%;
    }
}


/* Settings - Cleaning layout */

.np-settings-card--cleaning {
    grid-column: 1 / -1;
}

.np-settings-card--cleaning .np-cleaning-fields {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 16px;
}

.np-settings-card--cleaning .np-setting-field {
    margin-bottom: 0;
}

.np-settings-card--cleaning .np-setting-toggle {
    padding: 12px 14px;
    margin-bottom: 20px;
    background: rgba(30,41,59,.35);
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 9px;
}

.np-cleaning-help {
    display: block;
    margin-top: 16px;
    color: #64748b;
    font-size: 11px;
}

@media (max-width: 900px) {
    .np-settings-card--cleaning {
        grid-column: auto;
    }

    .np-settings-card--cleaning .np-cleaning-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .np-settings-card--cleaning .np-setting-field {
        margin-bottom: 17px;
    }
}

/* Remove blue accent from Cleaning card */
.np-settings-card--cleaning::before {
    display: none;
}

.np-settings-card--cleaning .np-settings-card-head {
    padding-left: 0;
}


/* ==========================================================
   AUTOBRR CLEANUP
   ========================================================== */

.np-cleanup-panel {
    margin-top: 24px;
}

.np-cleanup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.np-cleanup-head h2 {
    margin: 0 0 4px;
}

.np-cleanup-head p {
    margin: 0;
    opacity: .65;
    font-size: 13px;
}

.np-cleanup-state {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.np-cleanup-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.np-cleanup-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(100, 160, 220, .14);
    border-radius: 12px;
    background: rgba(18, 40, 70, .35);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.np-cleanup-card > span {
    font-size: 12px;
    opacity: .7;
}

.np-cleanup-card strong {
    font-size: 20px;
    line-height: 1.15;
}

.np-cleanup-card small {
    opacity: .65;
}

.np-cleanup-card-total {
    border-color: rgba(45, 200, 190, .30);
}

.np-cleanup-limits-title {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 12px;
    font-weight: 600;
    opacity: .65;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.np-cleanup-limits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.np-cleanup-limits > div {
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(18, 40, 70, .28);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.np-cleanup-limits strong {
    font-size: 15px;
}

.np-cleanup-limits span {
    font-size: 11px;
    opacity: .6;
}

.np-cleanup-settings {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.np-cleanup-settings a {
    font-size: 12px;
    text-decoration: none;
    opacity: .75;
}

.np-cleanup-settings a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .np-cleanup-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .np-cleanup-summary {
        grid-template-columns: 1fr;
    }

    .np-cleanup-limits {
        grid-template-columns: 1fr 1fr;
    }
}

/* WireGuard download button */
.np-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.np-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    text-decoration: none;
}

.np-btn:active {
    transform: translateY(0);
}

/* WireGuard download button - NewPanel dark style */
.np-btn {
    background: #18243a;
    color: #dbe7f5 !important;
    border: 1px solid #30435f;
    box-shadow: none;
}

.np-btn:hover {
    background: #22324d;
    border-color: #4b6487;
    color: #ffffff !important;
}

.np-btn:active {
    background: #141f32;
}

/* Apps buttons - samme stil som WireGuard-knappen */
.app-install-button {
    background: #18243a !important;
    color: #dbe7f5 !important;
    border: 1px solid #30435f !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-install-button:hover {
    background: #22324d !important;
    border-color: #4b6487 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.app-install-button:active {
    background: #141f32 !important;
    transform: translateY(0);
}

/* Apps - logo header */
.app-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.app-card-head .app-logo-wrap {
    margin-bottom: 0;
}

.app-card-head + .app-install-top {
    display: block;
}


/* =========================================================
   SIDEBAR APP LINKS
   ========================================================= */

.np-apps-label {
    margin-top: 22px;
}

.np-app-link {
    display: flex;
    align-items: center;
    gap: 11px;
}

.np-app-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

