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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Háttér animációk */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.skull {
    position: absolute;
    font-size: 4rem;
    color: rgba(106, 13, 173, 0.2);
    animation: float 25s infinite linear;
    user-select: none;
    pointer-events: none;
}

#skull1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

#skull2 {
    top: 70%;
    left: 80%;
    animation-delay: -7s;
}

#skull3 {
    top: 40%;
    left: 90%;
    animation-delay: -14s;
}

#skull4 {
    top: 80%;
    left: 15%;
    animation-delay: -21s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.glitch-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(106, 13, 173, 0.05) 50%, transparent 51%);
    background-size: 5px 5px;
    opacity: 0.3;
    animation: glitch 0.1s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    10% {
        transform: translate(-1px, 1px);
    }
    20% {
        transform: translate(1px, -1px);
    }
    30% {
        transform: translate(-1px, -1px);
    }
    40% {
        transform: translate(1px, 1px);
    }
    50% {
        transform: translate(-1px, 1px);
    }
    60% {
        transform: translate(1px, -1px);
    }
    70% {
        transform: translate(-1px, -1px);
    }
    80% {
        transform: translate(1px, 1px);
    }
    90% {
        transform: translate(-1px, 1px);
    }
}

.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* Fő konténer */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Fejléc */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 2px solid #6a0dad;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6a0dad, #9d4edd, #6a0dad, transparent);
    animation: pulse 3s infinite;
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #9d4edd;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px #6a0dad, 0 0 20px #6a0dad;
}

.vachub {
    color: #9d4edd;
    text-shadow: 0 0 5px #9d4edd, 0 0 10px #9d4edd;
}

.subtitle {
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Fő tartalom */
.main-content {
    margin-bottom: 30px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Panel stílusok */
.panel {
    background: rgba(15, 15, 20, 0.85);
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    transform: translateY(-5px);
}

.panel-header {
    background: linear-gradient(90deg, #1a1a2a, #2a1a3a);
    padding: 15px 20px;
    border-bottom: 1px solid #6a0dad;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header i {
    color: #9d4edd;
    font-size: 1.2rem;
}

.panel-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
}

.panel-content {
    padding: 20px;
}

/* Űrlap elemek */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.form-group label i {
    color: #9d4edd;
}

.select-box, .input-field {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

.select-box:focus, .input-field:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.select-box option {
    background: #1a1a2a;
    color: #fff;
}

/* Gombok */
.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6a0dad, #9d4edd);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.generate-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #9d4edd, #6a0dad);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.7);
    transform: scale(1.02);
}

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

.copy-btn {
    width: 100%;
    padding: 12px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.copy-btn:hover:not(:disabled) {
    background: rgba(40, 40, 50, 0.9);
    border-color: #6a0dad;
    color: #fff;
}

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

/* Kulcs megjelenítő */
.key-output {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #9d4edd;
    word-break: break-all;
    position: relative;
    overflow: hidden;
}

.key-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.key-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.key-placeholder i {
    font-size: 2rem;
}

/* Status display */
.status-display {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(30, 30, 40, 0.8);
    border-left: 3px solid #6a0dad;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-display i {
    color: #9d4edd;
}

.key-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.key-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.key-info-item i {
    color: #6a0dad;
}

/* Történet lista */
.history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(30, 30, 40, 0.8);
}

.history-list::-webkit-scrollbar-thumb {
    background: #6a0dad;
    border-radius: 3px;
}

.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #555;
    text-align: center;
    gap: 15px;
}

.empty-history i {
    font-size: 2.5rem;
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(106, 13, 173, 0.1);
}

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

.history-game {
    font-weight: bold;
    color: #9d4edd;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-key {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 5px;
    word-break: break-all;
}

.history-date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.stat i {
    color: #9d4edd;
}

.stat strong {
    color: #fff;
}

/* Lábléc */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.warning {
    background: rgba(173, 13, 13, 0.1);
    border-left: 3px solid #ad0d0d;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ff9999;
}

.warning i {
    color: #ff3333;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.glitch-text {
    color: #9d4edd;
    animation: glitch-text 2s infinite;
}

@keyframes glitch-text {
    0%, 100% {
        text-shadow: 1px 1px 0 #6a0dad, -1px -1px 0 #9d4edd;
    }
    25% {
        text-shadow: -1px -1px 0 #6a0dad, 1px 1px 0 #9d4edd;
    }
    50% {
        text-shadow: 1px -1px 0 #6a0dad, -1px 1px 0 #9d4edd;
    }
    75% {
        text-shadow: -1px 1px 0 #6a0dad, 1px -1px 0 #9d4edd;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(15, 15, 20, 0.95);
    border-radius: 8px;
    border: 1px solid #6a0dad;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.7);
}

.modal-header {
    background: linear-gradient(90deg, #2a1a3a, #1a1a2a);
    padding: 20px;
    border-bottom: 1px solid #6a0dad;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header i {
    color: #ff3333;
    font-size: 1.5rem;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.modal-footer button {
    padding: 12px 30px;
    background: #6a0dad;
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-footer button:hover {
    background: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

/* Reszponzív design */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .panel-content {
        padding: 15px;
    }
}