/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 3px solid #00ff00;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.modal-content.large {
    max-width: 900px;
}

.modal h2 {
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #00ff00;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ff0000;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #003300 0%, #006600 100%);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.btn:hover {
    background: linear-gradient(135deg, #006600 0%, #009900 100%);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn.large {
    font-size: 18px;
    padding: 15px 40px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Vollbild-Inventar */
#full-inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}

#full-inventory-grid .inventory-item {
    padding: 15px;
}

#full-inventory-grid .item-icon {
    font-size: 36px !important;
}

#full-inventory-grid .item-name {
    font-size: 12px !important;
}

/* Interaktions-Modal */
#interaction-content {
    margin: 20px 0;
    line-height: 1.6;
}

#interaction-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Quest-Modal */
#quest-description {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    line-height: 1.6;
}

#quest-requirements {
    margin: 20px 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #00ff00;
    margin-bottom: 10px;
}

.requirement.completed {
    border-left-color: #00ffff;
}

.requirement.incomplete {
    border-left-color: #ff0000;
}

.requirement-icon {
    font-size: 24px;
}

.requirement-text {
    flex: 1;
}

.requirement-status {
    font-size: 20px;
}

#quest-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Teleporter-Modal */
#teleporter-code-input {
    margin: 20px 0;
    text-align: center;
}

#teleporter-code-input label {
    display: block;
    margin-bottom: 10px;
}

#code-input {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
    width: 200px;
}

#code-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

#known-codes {
    margin-top: 30px;
}

#known-codes h3 {
    color: #00ff00;
    margin-bottom: 15px;
}

#codes-list {
    list-style: none;
}

#codes-list li {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

#codes-list li:hover {
    background: rgba(0, 100, 0, 0.5);
    transform: translateX(5px);
}

.code-name {
    font-weight: bold;
    color: #00ffff;
}

.code-value {
    color: #00ff00;
    margin-left: 10px;
    letter-spacing: 3px;
}

/* Ladebildschirm */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-content h1 {
    font-size: 48px;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    margin-bottom: 30px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px #00ff00;
    }
    50% {
        text-shadow: 0 0 40px #00ff00, 0 0 60px #00ff00;
    }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 0, 0.2);
    border-top: 4px solid #00ff00;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Container-Listen */
.container-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.container-item {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.container-item:hover {
    background: rgba(0, 100, 0, 0.5);
    transform: scale(1.05);
}

.container-item .item-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 5px;
}

/* Reparatur-Interface */
.repair-interface {
    margin: 20px 0;
}

.repair-parts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.repair-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 10px;
}

.repair-part.has {
    border-color: #00ffff;
}

.repair-part.missing {
    border-color: #ff0000;
}

.part-name {
    flex: 1;
}

.part-status {
    font-size: 20px;
}

/* Animationen */
.fade-in {
    animation: fadeIn 0.5s;
}

.slide-in {
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1001;
    white-space: nowrap;
}