.page { min-height: calc(100vh - 70px); background: radial-gradient(circle at 84% 8%, rgba(255, 177, 65, 0.16), transparent 33%), radial-gradient(circle at 15% 25%, rgba(26, 148, 255, 0.15), transparent 40%), #eef4f9; padding: 30px 20px 50px; } .container { max-width: 1260px; margin: 0 auto; } .loading, .error, .denied { margin: 24px; padding: 16px; border-radius: 10px; text-align: center; } .error, .denied { background: #ffe6e6; color: #b03b3b; } .header { margin-bottom: 20px; } .header h1 { font-size: clamp(30px, 4.5vw, 42px); color: #11253e; margin-bottom: 8px; } .header p { color: #466186; } .statsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; } .statCard { background: linear-gradient(145deg, #173255, #1d3f6b); color: #ffffff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 25px rgba(21, 45, 80, 0.2); } .statCard span { display: block; opacity: 0.84; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; } .statCard strong { display: block; margin-top: 8px; font-size: 24px; } .layoutGrid { display: grid; grid-template-columns: 1fr; gap: 16px; } .card { background: #ffffff; border: 1px solid #d6e0ec; border-radius: 16px; box-shadow: 0 10px 24px rgba(25, 53, 92, 0.09); padding: 16px; } .card h2 { color: #11253e; margin-bottom: 12px; } .userTools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } .searchInput { width: min(360px, 100%); border: 1px solid #d4e0ee; border-radius: 10px; padding: 8px 11px; font-size: 13px; color: #1f3858; background: #fbfdff; } .searchInput:focus { outline: none; border-color: #9eb9dc; box-shadow: 0 0 0 3px rgba(83, 134, 196, 0.15); } .userCount { color: #4f6a8e; font-size: 12px; font-weight: 600; } .tableWrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; min-width: 780px; } .table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid #e8edf4; color: #1f3858; font-size: 14px; } .table th { color: #4e6d92; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; } .actionRow { display: grid; grid-template-columns: 44px 32px; column-gap: 8px; align-items: center; } .actionRow > button { border: 1px solid transparent; border-radius: 8px; background: #2f6fbf; color: #fff; height: 34px; padding: 6px 8px; font-size: 11px; width: 100%; font-weight: 600; white-space: nowrap; } .premiumActivate { background: #2d8d5a !important; } .premiumDeactivate { background: #b56f1b !important; } .premiumCellBtn { border: 1px solid transparent; border-radius: 8px; color: #fff; height: 32px; padding: 6px 10px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .loadingBtn { background: #6a7f99 !important; } .btnSpinner { width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #ffffff; border-radius: 50%; animation: spin .8s linear infinite; } .actionMenuWrap { position: relative; width: 32px; height: 32px; } .kebabBtn { width: 32px; height: 32px; border: 1px solid #dbe4ef; border-radius: 8px; background: #ffffff; color: #4d617d; font-size: 16px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .kebabBtn:disabled { opacity: 0.65; cursor: not-allowed; } .miniSpinner { width: 12px; height: 12px; border: 2px solid rgba(77, 97, 125, 0.28); border-top-color: #4d617d; border-radius: 50%; animation: spin .8s linear infinite; } .kebabBtn:hover { background: #f3f7fc; border-color: #cfdced; } .actionMenu { position: absolute; top: 36px; right: 0; min-width: 140px; background: #ffffff; border: 1px solid #dbe4ef; border-radius: 10px; box-shadow: 0 12px 26px rgba(25, 53, 92, 0.18); z-index: 12; padding: 6px; } .actionMenuUp { top: auto; bottom: 36px; } .menuItem { width: 100%; border: none; border-radius: 8px; background: transparent; text-align: left; padding: 8px 10px; font-size: 12px; font-weight: 600; cursor: pointer; } .menuItem:disabled { opacity: 0.5; cursor: not-allowed; } .menuSuccess { color: #1f6a44; } .menuWarn { color: #9a6a10; } .menuDanger { color: #b43f3f; } .menuItem:hover { background: #f4f7fb; } .modalOverlay { position: fixed; inset: 0; background: rgba(9, 18, 32, 0.45); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; } .userModal { width: min(460px, 100%); background: #ffffff; border: 1px solid #d7e3f0; border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 29, 53, 0.25); padding: 16px; } .userModal h3 { color: #11253e; margin-bottom: 12px; } .userDetailsGrid { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; } .userDetailsGrid span { color: #5a7191; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; } .userDetailsGrid strong { color: #1c3557; font-size: 14px; } .modalActions { display: flex; justify-content: flex-end; margin-top: 14px; } .modalActions button { border: 1px solid #cfdced; background: #f4f8fc; color: #1f3858; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; } .actionRow .danger { background: #c44a4a; } .actionRow .success { background: #2d8d5a; } .actionRow .warn { background: #c78a1c; color: #1f2328; } .pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; } .pageBtn { border: 1px solid #d4e0ee; border-radius: 8px; background: #ffffff; color: #264569; padding: 7px 11px; font-size: 12px; font-weight: 600; } .pageBtn:disabled { opacity: 0.45; cursor: not-allowed; } .pageInfo { color: #567294; font-size: 12px; font-weight: 600; } .switch { position: relative; display: inline-block; width: 44px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #bdc3cd; transition: .2s; border-radius: 999px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; } .switch input:checked + .slider { background-color: #1b8f5d; } .switch input:checked + .slider:before { transform: translateX(20px); } .switch input:disabled + .slider { cursor: not-allowed; opacity: 0.6; } .sliderBusy::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%); animation: sliderSweep .9s ease-in-out infinite; } .chatLayout { display: grid; grid-template-columns: 280px 1fr; gap: 12px; } .threadList { border: 1px solid #deebf6; border-radius: 12px; padding: 10px; max-height: 460px; overflow-y: auto; background: #f7fbff; } .threadBtn { width: 100%; border: 1px solid #dce8f6; background: #ffffff; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; padding: 8px; margin-bottom: 8px; text-align: left; } .threadBtn:disabled { opacity: 0.7; } .threadBtn strong { display: block; color: #14335a; } .threadBtn small { color: #567198; } .threadBtn span { background: #ff8a00; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; } .threadLoader { width: 16px; height: 16px; border: 2px solid rgba(29, 116, 217, 0.22); border-top-color: #1d74d9; border-radius: 50%; animation: spin .8s linear infinite; } .threadBtnActive { border-color: #1d74d9; box-shadow: 0 0 0 2px rgba(29, 116, 217, 0.15); } .chatWindow { border: 1px solid #deebf6; border-radius: 12px; padding: 10px; background: #f8fbfe; display: flex; flex-direction: column; min-height: 420px; } .chatHeader { border-bottom: 1px solid #e4eef8; padding-bottom: 8px; margin-bottom: 10px; } .chatHeader h3 { color: #163a65; } .chatHeader small { color: #5f7da4; } .chatForm button, .premiumCellBtn, .pageBtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; } .msgAdmin, .msgPlayer { max-width: 80%; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; } .msgAdmin { align-self: flex-end; background: #1d74d9; color: #fff; } .msgPlayer { align-self: flex-start; background: #e8f3ff; color: #1c3d63; } @keyframes spin { to { transform: rotate(360deg); } } @keyframes sliderSweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(110%); } } .msgAdmin small, .msgPlayer small { font-size: 11px; opacity: 0.8; } .chatForm { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; } .chatForm input { border: 1px solid #c8daf0; border-radius: 10px; padding: 10px; } .chatForm button { border: none; border-radius: 10px; background: linear-gradient(135deg, #1d74d9, #1658a6); color: #fff; padding: 10px 14px; font-weight: 600; } @media (max-width: 980px) { .chatLayout { grid-template-columns: 1fr; } .threadList { max-height: 220px; } }