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

body {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c2c2c;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: bold;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255,255,255,0.7);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.8;
}

.info-card .value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c2c2c;
}

.timer {
    color: #ffeb3b;
}

.bot-count {
    color: #4caf50;
}

.status.active {
    color: #4caf50;
}

.status.inactive {
    color: #f44336;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.game-area {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.grid-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 2px;
    background: #333;
    border-radius: 10px;
    padding: 8px;
    aspect-ratio: 1;
    width: 100%;
}

.cell {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
    min-height: 30px;
}

.cell.has-point {
    background: #ffeb3b22;
}

.cell.has-mega-point {
    background: #ff572222;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.cell.has-bomb {
    background: #f4433622;
    animation: pulse 1s infinite;
}

.cell.has-static-bomb {
    background: #5d4e37;
    border: 1px solid #8b7355;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cell-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot {
    font-size: 18px;
    z-index: 3;
}

.point {
    font-size: 14px;
    z-index: 1;
}

.mega-point {
    font-size: 20px;
    z-index: 2;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bomb {
    font-size: 16px;
    z-index: 2;
}

.static-bomb {
    font-size: 16px;
    z-index: 2;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leaderboard, .controls, .bot-list {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.leaderboard h2, .controls h2, .bot-list h2 {
    margin-bottom: 15px;
    color: #2c2c2c;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    font-weight: bold;
    color: #2c2c2c;
    min-width: 30px;
}

.bot-info {
    flex: 1;
    margin-left: 10px;
}

.bot-name {
    font-weight: bold;
}

.bot-status {
    font-size: 0.8em;
    opacity: 0.7;
}

.score {
    font-weight: bold;
    color: #2c2c2c;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #2c2c2c;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #1a1a1a;
}

.btn-primary {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    border: 2px solid #4caf50;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: #4caf50;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    border: 2px solid #f44336;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f44336, #da190b);
    border-color: #f44336;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    border: 2px solid #ff9800;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff9800, #e68900);
    border-color: #ff9800;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bot-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bot-item:last-child {
    border-bottom: none;
}

.bot-item .bot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-action {
    font-size: 0.8em;
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    font-family: monospace;
    border: 1px solid rgba(44, 44, 44, 0.2);
    font-weight: 500;
}

.remove-bot {
    background: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.remove-bot:hover {
    background: #da190b;
}

/* Admin page specific styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #2c2c2c;
    backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2c2c2c;
    background: rgba(255,255,255,1);
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.form-group input::placeholder {
    color: rgba(44,44,44,0.6);
}

.success-message {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4caf50;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-weight: 500;
}

.error-message {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid #f44336;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-weight: 500;
}

.info-message {
    background: rgba(33, 150, 243, 0.15);
    border: 2px solid #2196f3;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-weight: 500;
}

/* Admin page specific improvements */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    margin-bottom: 10px;
    color: #2c2c2c;
    font-weight: bold;
}

.admin-header p {
    opacity: 0.8;
    font-size: 1.1em;
    color: #2c2c2c;
}

.form-section {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #2c2c2c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.4em;
}

.instructions-panel {
    background: rgba(255,255,255,0.8);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    border-left: 4px solid #2c2c2c;
    border: 1px solid rgba(44,44,44,0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.instructions-panel h3 {
    color: #2c2c2c;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.instructions-panel ul {
    margin: 15px 0;
    padding-left: 25px;
}

.instructions-panel li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #2c2c2c;
}

.instructions-panel code {
    background: rgba(44,44,44,0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #2c2c2c;
    font-weight: bold;
    border: 1px solid rgba(44,44,44,0.2);
}

.bot-card {
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #4caf50, #2196f3);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bot-info-main {
    flex: 1;
}

.bot-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.bot-stats {
    font-size: 0.9em;
    opacity: 0.8;
    display: flex;
    gap: 15px;
}

.bot-url {
    font-size: 0.85em;
    opacity: 0.8;
    word-break: break-all;
    background: rgba(44,44,44,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 12px 0;
    font-family: monospace;
    color: #2c2c2c;
    border: 1px solid rgba(44,44,44,0.15);
}

.bot-status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2em;
    font-weight: bold;
    color: #4caf50;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        min-width: 200px;
    }
    
    h1 {
        font-size: 2em;
    }
}