378 lines
6.8 KiB
CSS
378 lines
6.8 KiB
CSS
body {
|
|
background: #f4f5f7;
|
|
color: #0f172a;
|
|
font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.panel {
|
|
background: #ffffff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.form-control,
|
|
.form-select {
|
|
border-radius: 8px;
|
|
border-color: #d1d5db;
|
|
}
|
|
|
|
.form-control:focus,
|
|
.form-select:focus {
|
|
box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.15);
|
|
border-color: #111827;
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 8px;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
.btn-dark {
|
|
background: #111827;
|
|
border-color: #111827;
|
|
}
|
|
|
|
.btn-dark:hover {
|
|
background: #0b1220;
|
|
border-color: #0b1220;
|
|
}
|
|
|
|
.room-status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 16px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.room-status-grid .label {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.room-status-grid .value {
|
|
font-weight: 600;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.game-board {
|
|
display: grid;
|
|
grid-template-columns: repeat(13, 28px);
|
|
grid-template-rows: repeat(11, 28px);
|
|
gap: 4px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.game-cell {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.cell-solid {
|
|
background: #111827;
|
|
border-color: #111827;
|
|
}
|
|
|
|
.cell-breakable {
|
|
background: #cbd5f5;
|
|
border-color: #94a3b8;
|
|
}
|
|
|
|
.cell-powerup {
|
|
border: 1px dashed #0f172a;
|
|
}
|
|
|
|
.cell-bomb::after {
|
|
content: '';
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: #111827;
|
|
display: block;
|
|
}
|
|
|
|
.cell-explosion {
|
|
background: #111827;
|
|
color: #fff;
|
|
}
|
|
|
|
.player-chip {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 9px;
|
|
color: #fff;
|
|
}
|
|
|
|
.player-list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.player-list-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Background Animations */
|
|
.bg-animations {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 0;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.blob {
|
|
position: absolute;
|
|
width: 500px;
|
|
height: 500px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 50%;
|
|
filter: blur(80px);
|
|
animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
|
|
}
|
|
|
|
.blob-1 {
|
|
top: -10%;
|
|
left: -10%;
|
|
background: rgba(238, 119, 82, 0.4);
|
|
}
|
|
|
|
.blob-2 {
|
|
bottom: -10%;
|
|
right: -10%;
|
|
background: rgba(35, 166, 213, 0.4);
|
|
animation-delay: -7s;
|
|
width: 600px;
|
|
height: 600px;
|
|
}
|
|
|
|
.blob-3 {
|
|
top: 40%;
|
|
left: 30%;
|
|
background: rgba(231, 60, 126, 0.3);
|
|
animation-delay: -14s;
|
|
width: 450px;
|
|
height: 450px;
|
|
}
|
|
|
|
@keyframes move {
|
|
0% { transform: translate(0, 0) rotate(0deg) scale(1); }
|
|
33% { transform: translate(150px, 100px) rotate(120deg) scale(1.1); }
|
|
66% { transform: translate(-50px, 200px) rotate(240deg) scale(0.9); }
|
|
100% { transform: translate(0, 0) rotate(360deg) scale(1); }
|
|
}
|
|
|
|
.header-link {
|
|
font-size: 14px;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.header-link:hover {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Admin Styles */
|
|
.admin-container {
|
|
max-width: 900px;
|
|
margin: 3rem auto;
|
|
padding: 2.5rem;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-radius: 24px;
|
|
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.admin-container h1 {
|
|
margin-top: 0;
|
|
color: #212529;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0 8px;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.table th {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 1rem;
|
|
color: #6c757d;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.table td {
|
|
background: #fff;
|
|
padding: 1rem;
|
|
border: none;
|
|
}
|
|
|
|
.table tr td:first-child { border-radius: 12px 0 0 12px; }
|
|
.table tr td:last-child { border-radius: 0 12px 12px 0; }
|
|
|
|
.form-group {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
transition: all 0.3s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #23a6d5;
|
|
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.1);
|
|
}
|
|
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-links {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.admin-card {
|
|
background: rgba(255, 255, 255, 0.6);
|
|
padding: 2rem;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
margin-bottom: 2.5rem;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.admin-card h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn-delete {
|
|
background: #dc3545;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-add {
|
|
background: #212529;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-save {
|
|
background: #0088cc;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.8rem 1.5rem;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
width: 100%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.webhook-url {
|
|
font-size: 0.85em;
|
|
color: #555;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.history-table-container {
|
|
overflow-x: auto;
|
|
background: rgba(255, 255, 255, 0.4);
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.history-table {
|
|
width: 100%;
|
|
}
|
|
|
|
.history-table-time {
|
|
width: 15%;
|
|
white-space: nowrap;
|
|
font-size: 0.85em;
|
|
color: #555;
|
|
}
|
|
|
|
.history-table-user {
|
|
width: 35%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.history-table-ai {
|
|
width: 50%;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.no-messages {
|
|
text-align: center;
|
|
color: #777;
|
|
}
|