body {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e2e8f0;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card {
    transition: all 0.3s ease;
}

.hero-card.ko {
    opacity: 0.6;
    background: rgba(127, 29, 29, 0.5) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.15);
    filter: brightness(70%) saturate(60%);
}

.hero-card.active {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
    transform: scale(1.05);
}

.hero-card.target {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}

.damage-number {
    position: absolute;
    font-weight: bold;
    color: #ef4444;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.attacking-right {
    animation: attackRight 0.5s ease-in-out;
}

.attacking-left {
    animation: attackLeft 0.5s ease-in-out;
}

@keyframes attackRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes attackLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.login-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    margin: 4rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-panel h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.panel-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.2);
}

.panel-card h3 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.results-list {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #6366f1;
}

.logout-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.constraint-builder {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.panel-description {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.admin-panel h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-panel .btn-primary {
    width: 100%;
}

.login-panel #loginError {
    margin-top: 1rem;
    width: 100%;
}

.panel-card .btn-primary {
    margin-top: 1rem;
}