/* ---- additions on top of the original site styles ---- */

/* nickname styling (available to every user) */
.nick { color: var(--c1, #ffffff); font-weight: 800; }

.anim-gradient,
.anim-rainbow {
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: nick_slide 4s linear infinite;
}
.anim-gradient { background-image: linear-gradient(90deg, var(--c1), var(--c2), var(--c1)); }
.anim-rainbow  { background-image: linear-gradient(90deg,#ff0040,#ff8000,#ffe000,#00e676,#00e5ff,#2979ff,#b388ff,#ff0040); animation-duration: 3s; }
@keyframes nick_slide { to { background-position: 200% center; } }

.anim-glow { color: var(--c1, #fff); animation: nick_glow 1.6s ease-in-out infinite alternate; }
@keyframes nick_glow {
    from { text-shadow: 0 0 2px var(--c1), 0 0 4px var(--c1); }
    to   { text-shadow: 0 0 8px var(--c1), 0 0 16px var(--c1), 0 0 24px var(--c1); }
}

.anim-pulse { color: var(--c1, #fff); animation: nick_pulse 1.2s ease-in-out infinite; }
@keyframes nick_pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* generic helpers */
.muted { color: rgba(255,255,255,0.6) !important; }
.accent { color: rgb(128,130,195) !important; }
.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 0.5rem; }
.w100 { width: 100%; }
.center { align-items: center; text-align: center; }
.form_host.wide { width: min(720px, 92vw); align-items: stretch; }

/* unified input styling — covers all the types 1.css missed (url, email, search, tel, date, time, datetime-local, textarea) */
input[type="url"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
    padding: 5px 5px;
    color: white;
    box-shadow: 0 1px 20px 0 rgba(128, 130, 195, 0.2);
    background: rgb(22, 22, 22, 0.3);
    backdrop-filter: blur(2px);
    border: 2px solid;
    border-color: rgb(30, 30, 30, 0.5);
    border-radius: 5px;
    font-family: 'Jura';
}
textarea { resize: vertical; }

.form_host input[type="text"],
.form_host input[type="password"],
.form_host input[type="number"],
.form_host input[type="url"],
.form_host input[type="email"],
.form_host input[type="search"],
.form_host input[type="tel"],
.form_host textarea,
.form_host select { width: 100%; box-sizing: border-box; font-family: 'Jura'; }
.form_host label { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: -0.25rem; align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; margin: 0.1rem 0; }
.link_line { color: rgb(128,130,195); word-break: break-all; }

/* role badge */
.role_badge {
    display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px;
    border: 1px solid rgba(128,130,195,0.7);
    background: rgba(128,130,195,0.15);
    color: var(--rc, rgb(128,130,195));
}

/* file cards (files manager) */
.file_grid { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.file_item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.5rem 0.7rem; border-radius: 10px;
    border: 2px solid rgb(30,30,30,0.5);
    background: rgb(22,22,22,0.35);
    box-shadow: 0 1px 12px 0 rgba(128,130,195,0.25);
    color: #fff;
}
/* form-style file_item (column layout used on links.php / edit panels) — keep it tight */
.file_item[style*="flex-direction:column"],
.file_item[style*="flex-direction: column"] {
    gap: 0.35rem;
}
.file_thumb {
    width: 54px; height: 54px; border-radius: 8px; object-fit: cover;
    background: rgba(0,0,0,0.4); flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.file_thumb i { font-size: 24px; color: rgb(128,130,195); }
.file_meta { flex: 1 1 auto; min-width: 0; }
.file_meta .fname { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file_meta .fsub { font-size: 12px; color: rgba(255,255,255,0.6); }
.file_actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.btn_sm { padding: 5px 10px !important; font-size: 13px !important; }
.btn_danger { box-shadow: 0 1px 16px 0 rgb(255 60 60 / 35%) !important; }

/* quota bar */
.quota_bar { width: 100%; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.1); overflow: hidden; border: 1px solid rgba(128,130,195,0.4); }
.quota_fill { height: 100%; background: rgb(128,130,195); width: 0; transition: width .4s ease; }

/* admin tables */
.adm_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm_table th, .adm_table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(128,130,195,0.25); }
.adm_table th { color: rgb(128,130,195); }
.adm_table td { color: #fff; }
.adm_table tr:hover td { background: rgba(128,130,195,0.08); }
.adm_table input[type="text"], .adm_table input[type="number"], .adm_table select { font-size: 13px; }

/* tabs */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tab { cursor: pointer; }
.tab.active { box-shadow: 0 1px 20px 0 rgba(128,130,195,0.6) !important; border-color: rgb(128,130,195) !important; }

/* color inputs */
input[type="color"] {
    width: 42px; height: 30px; padding: 0; border: 2px solid rgb(30,30,30,0.6);
    border-radius: 6px; background: transparent; cursor: pointer;
}
.copy_btn { cursor: pointer; }

/* ---- file viewer (v.php) ---- */
.file_viewer { gap: 0.75rem; }
.fv_title {
    font-size: 22px; font-weight: 800; margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fv_sub { font-size: 12px; margin: 2px 0 0 0; }
.fv_author {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 4px 10px; border-radius: 10px;
    border: 2px solid rgb(30,30,30,0.5);
    background: rgb(22,22,22,0.35);
    box-shadow: 0 1px 12px 0 rgba(128,130,195,0.2);
    flex: 0 0 auto;
}
.fv_avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(128,130,195,0.4);
}
.fv_preview {
    width: 100%;
    min-height: 220px;
    max-height: 65vh;
    display: flex; align-items: center; justify-content: center;
    padding: 0.5rem;
    border-radius: 10px;
    border: 2px solid rgb(30,30,30,0.5);
    background: rgb(0,0,0,0.35);
    box-shadow: inset 0 1px 16px 0 rgba(128,130,195,0.18);
    overflow: hidden;
}
.fv_media {
    max-width: 100%; max-height: 60vh;
    border-radius: 8px;
    display: block;
}
.fv_iframe {
    width: 100%; height: 60vh; background: #1a1a1a;
    border: 0; border-radius: 8px;
}
.fv_audio { width: min(420px, 100%); margin-top: 0.6rem; }
.fv_audio_wrap { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.fv_placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 1rem;
}
.fv_placeholder svg { filter: drop-shadow(0 0 12px rgba(128,130,195,0.45)); }
.fv_stats { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.fv_stat {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 10px; font-size: 13px;
    border: 1px solid rgba(128,130,195,0.4);
    background: rgba(128,130,195,0.12);
    color: #fff;
}
.fv_stat i { color: rgb(128,130,195); }
.fv_link_row { width: 100%; }
.fv_link { font-size: 13px; }
.fv_actions { justify-content: flex-start; gap: 0.5rem; }
.fv_actions .button { padding: 7px 16px; }

@media only screen and (max-width: 600px) {
    .fv_title { font-size: 18px; }
    .fv_preview { min-height: 180px; }
    .fv_iframe { height: 50vh; }
}
