@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background: #F7F8F9;
}

.background-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    object-position: 0 +20%;
}

/* Server Info */

.server-info {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.server-info-container {
    position: relative;
    height: 21rem;
    width: 48rem;
    transform: translateY(calc(-21rem/2));
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 1.6rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    padding: 3rem 5rem;
    min-height: 0;
    min-width: 0;
    justify-items: start;
}

.server-stat {
    border-radius: 92px;
    padding: 0.35rem 1rem;
    white-space: nowrap;
}

.server-stat-title {
    white-space: nowrap;
}

.server-info-footer {
    position: absolute;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 600;
    right: 1rem;
    bottom: 1rem;
}

/* Set ellipses */

.ellipse-green {
    color: #065F46;
    background: #D1FAE5;
}

.ellipse-red {
    color: #991B1B;
    background: #FEE2E2;
}

.ellipse-yellow {
    color: #E9A219;
    background: #FEF3E2;
}

.ellipse-indigo {
    color: #4E46F5;
    background: #E0E7FF;
}

.ellipse-grey {
    color: #4B5563;
    background: #F3F4F6;
}

/* Online Players */

.divider1 {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    width: 80%;
    left: 10%;
    transform: translateY(-4rem);
}

.player-divider {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    width: 90%;
    left: 5%;
    margin: 10px 0;
}

.online-players h1 {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.player-card-container {
    position: relative;
    display: grid;
    grid-gap: 3rem 0px;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 3rem;
    align-items: center;
    max-width: 100%;
    word-wrap: break-word;
    justify-items: center;
}

.player-license-item {
    font-size: .5rem;
}

.player-card {
    position: relative;
    min-height: 10rem;
    width: 22.5rem;
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    overflow: visible;
    padding: 1rem;
    white-space: normal;
    word-wrap: break-word;
}

.player-card-top {
    display: flex;
    justify-content: space-between;
    width: 99%;
}

.player-name {
    margin-top: 20px;
}

.player-id {
    color: #646464;
    margin: 0 10px;
    text-align: center;
}

.player-ping {
    text-align: right;
    display: flex;
    justify-content: right;
    align-items: center;
}

.player-left, .player-right {
    display: flex;
    align-items: center;
}

.player-ping span { margin: 0 5px; }
.ping-green { color: #29A914; }
.ping-yellow { color: #DBB800; }
.ping-red { color: #BA160C; }

/* Styl wyszukiwarki graczy */
.search-container {
  margin-left: 20px;
}

.search-container input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9fb;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.search-container input:focus {
  outline: none;
  border-color: #8b8bff;
  box-shadow: 0 0 6px rgba(139, 139, 255, 0.4);
}

/* Podwietlenie wyszukanego gracza */
.highlight-player {
  background-color: #e6e6ff;   /* jasny fiolet */
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.player-job {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #4f46e5;
  border-radius: 6px;
}


/* Media screens */

@media screen and (min-width: 1900px) {
    /* Graczy Online */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1300px) and (min-width: 1050px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .player-card {
        width: 18rem;
    }
}

@media screen and (max-width: 1050px) and (min-width: 900px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) and (min-width: 750px) {
    
    /* Server stats */
    .server-info-container {
        height: 18rem;
        width: 38rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 1.5rem 3rem 5rem 3rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }

    .player-card {
        width: 18rem;
    }
}

@media screen and (max-width: 750px) and (min-width: 550px) {
    
    /* Server stats */
    .server-info-container {
        height: 16rem;
        width: 32rem;
        transform: translateY(calc(-15rem/2));
        font-size: 1.4rem;
        grid-gap: 2rem;
        padding: 2rem 2rem 3rem 2rem;
    }

    .server-stat {
        border-radius: 92px;
        padding: 0.175rem .75rem;
    }

    .server-info-footer {
        bottom: .75rem;
    }

    .background-image img {
        height: 20rem;
    }

    /* Online players */
    .player-card-container {
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 550px) and (min-width: 410px) {
    
    /* Server stats */
    .server-info-container {
        position: relative;
        height: 12rem;
        width: 90%;
        transform: translateY(calc(-12rem/2));
        font-size: 1rem;
        padding: 1.5rem 3rem;
    }

    .server-info-footer {
        font-size: 9px;
        bottom: .5rem;
    }

    .server-stat {
        padding: 0.175rem .75rem;
    }

    .background-image img {
        height: 10rem;
    }

    /* Online players */
    .player-card-container {
        margin: .5rem;
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }

    .player-card {
        width: 90%;
    }
}

@media screen and (max-width: 410px) {
    
    /* Server stats */
    .server-info-container {
        position: relative;
        height: 22rem;
        width: 90%;
        grid-gap: 0;
        grid-template-columns: 1fr;
        justify-items: center;
        transform: translateY(calc(-12rem/2));
        font-size: 1rem;
        padding: 1.5rem 3rem;
        min-height: auto;
        min-width: auto;
    }

    .server-info-footer {
        font-size: 8px;
        bottom: .5rem;
    }

    .server-stat {
        padding: 0.175rem .75rem;
        text-align: center;
    }

    /* Background image */
    .background-image img {
        height: 10rem;
    }

    /* Online players */
    .player-card-container {
        margin: .5rem;
        grid-gap: 1rem;
        grid-template-columns: 1fr;
    }

    .player-card {
        width: 90%;
    }

    .player-id { 
        margin: 0 3px;
        font-size: .8rem;
    }

    .player-ping span {
        margin: 0 3px;
        font-size: .8rem;
    }
}
/* Ikonka panelu admina */
.admin-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 9999;
}

.admin-icon a {
  color: #8b8bff;
  text-decoration: none;
}

.admin-svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, color 0.3s ease;
}

.admin-icon:hover .admin-svg {
  transform: scale(1.15);
  color: #6366f1;
}


/* Tracked players UI tweaks */
.tracked-wrapper.panel{ padding:12px; border-radius:8px; background: rgba(255,255,255,0.02); box-shadow: 0 2px 6px rgba(0,0,0,0.3); margin-bottom:12px; }
.panel-header h3{ margin:0 0 8px 0; font-size:16px; }
.tracked-controls{ display:flex; gap:8px; margin-bottom:8px; }
.tracked-controls .input{ flex:1; padding:8px 10px; border-radius:6px; border:1px solid rgba(255,255,255,0.04); background:transparent; color:inherit; }
.tracked-list{ display:flex; flex-direction:column; gap:6px; }
.tracked-row{ display:flex; justify-content:space-between; align-items:center; padding:8px; border-radius:6px; background: rgba(255,255,255,0.01); }
.tracked-name{ font-weight:600; }
.btn-small{ padding:6px 8px; font-size:13px; }
.btn-danger{ background: #b91c1c; color:#fff; border: none; cursor:pointer; border-radius:6px; }
.btn-primary{ background: #0ea5a4; color:#fff; border:none; cursor:pointer; border-radius:6px; padding:8px 12px; }
.btn{ background: rgba(255,255,255,0.03); color:inherit; border:1px solid rgba(255,255,255,0.04); padding:8px 10px; border-radius:6px; cursor:pointer; }
.loading, .error, .empty{ padding:8px; color:rgba(255,255,255,0.6); }
