@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aurebesh&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 20%, #607d8b 40%, #90a4ae 60%, #cfd8dc 100%);
    color: #37474f;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(12px, 2vw, 16px);
}

/* Responsive Schriftgrößen */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: #37474f;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.nav-terminal {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    padding: clamp(12px, 3vw, 18px) clamp(15px, 4vw, 25px);
}

.data-field, .officer-selector {
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: clamp(10px, 2.5vw, 15px);
}

/* Animierte Sterne */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Hangar Lichter */
.hangar-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hangar-light {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #4fc3f7, #03a9f4, transparent);
    border-radius: 2px;
    animation: hangarBlink 2s infinite;
}

@keyframes hangarBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: clamp(10px, 3vw, 20px);
}

/* Login Screen */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
}

.login-container {
    background: linear-gradient(45deg, rgba(144, 164, 174, 0.9), rgba(176, 190, 197, 0.8));
    border: 3px solid #37474f;
    border-radius: 20px;
    padding: clamp(30px, 6vw, 50px);
    box-shadow: 0 0 50px rgba(55, 71, 79, 0.4);
    max-width: 400px;
    width: 90%;
}

.login-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    color: #37474f;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #37474f;
    border-radius: 10px;
    background: rgba(207, 216, 220, 0.8);
    color: #37474f;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-field:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
    background: rgba(207, 216, 220, 1);
}

.login-btn {
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 2px solid #37474f;
    color: #37474f;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    width: 100%;
    text-transform: uppercase;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 125, 139, 0.4);
}

.error-message {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
}

/* Admin Panel Tab */
.admin-tab {
    position: fixed;
    top: 50%;
    left: -280px;
    transform: translateY(-50%);
    width: 300px;
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 3px solid #37474f;
    border-left: none;
    border-radius: 0 15px 15px 0;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(55, 71, 79, 0.4);
}

.admin-tab:hover,
.admin-tab.expanded {
    left: 0;
}

.admin-tab-trigger {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: 2px solid #37474f;
    border-left: none;
    color: #cfd8dc;
    padding: 15px 8px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
    animation: adminGlow 2s ease-in-out infinite alternate;
}

@keyframes adminGlow {
    from { box-shadow: 0 0 15px rgba(128, 0, 0, 0.5); }
    to { box-shadow: 0 0 25px rgba(128, 0, 0, 0.8); }
}

.admin-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-title {
    color: #37474f;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.admin-email {
    font-size: 0.8rem;
    color: #37474f;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0.7;
}

.manage-access-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: 2px solid #37474f;
    color: #cfd8dc;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    width: 100%;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.manage-access-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
}

/* Republic Logo */
.republic-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjEwMCIgcj0iOTUiIGZpbGw9IiMzNzQ3NGYiIHN0cm9rZT0iI2NmZDhkYyIgc3Ryb2tlLXdpZHRoPSIxMCIvPgo8Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjcwIiBmaWxsPSIjODAwMDAwIiBzdHJva2U9IiNjZmQ4ZGMiIHN0cm9rZS13aWR0aD0iNSIvPgo8Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjQ1IiBmaWxsPSIjY2ZkOGRjIi8+CjxyZWN0IHg9Ijg1IiB5PSI0MCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzgwMDAwMCIvPgo8cmVjdCB4PSI0MCIgeT0iODUiIHdpZHRoPSIxMjAiIGhlaWdodD0iMzAiIGZpbGw9IiM4MDAwMDAiLz4KPC9zdmc+') center/contain no-repeat;
    opacity: 0.8;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 10px rgba(207, 216, 220, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(207, 216, 220, 0.8)); }
}

/* Startseite */
.startup-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    animation: bootSequence 2s ease-out;
}

@keyframes bootSequence {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.startup-logo {
    width: clamp(150px, 25vw, 250px);
    height: clamp(150px, 25vw, 250px);
    margin-bottom: 30px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjEwMCIgY3k9IjEwMCIgcj0iOTUiIGZpbGw9IiMzNzQ3NGYiIHN0cm9rZT0iI2NmZDhkYyIgc3Ryb2tlLXdpZHRoPSIxMCIvPgo8Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjcwIiBmaWxsPSIjODAwMDAwIiBzdHJva2U9IiNjZmQ4ZGMiIHN0cm9rZS13aWR0aD0iNSIvPgo8Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjQ1IiBmaWxsPSIjY2ZkOGRjIi8+CjxyZWN0IHg9Ijg1IiB5PSI0MCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjEyMCIgZmlsbD0iIzgwMDAwMCIvPgo8cmVjdCB4PSI0MCIgeT0iODUiIHdpZHRoPSIxMjAiIGhlaWdodD0iMzAiIGZpbGw9IiM4MDAwMDAiLz4KPC9zdmc+') center/contain no-repeat;
    animation: logoSpin 4s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.startup-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    color: #37474f;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.startup-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #607d8b;
    margin-bottom: 40px;
}

.enter-btn {
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 2px solid #37474f;
    color: #37474f;
    padding: clamp(15px, 3vw, 20px) clamp(30px, 6vw, 40px);
    border-radius: 10px;
    cursor: pointer;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.enter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(96, 125, 139, 0.4);
}

/* Datapad Header */
.datapad-header {
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 3px solid #cfd8dc;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 25px);
    margin-bottom: clamp(20px, 4vw, 30px);
    text-align: center;
    box-shadow: 
        0 0 30px rgba(207, 216, 220, 0.4),
        inset 0 0 20px rgba(96, 125, 139, 0.3);
    position: relative;
    overflow: hidden;
}

.datapad-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(207, 216, 220, 0.2), transparent);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.datapad-header h1 {
    font-weight: 900;
    color: #cfd8dc;
    text-shadow: 0 0 20px #cfd8dc;
    margin-bottom: 10px;
    letter-spacing: clamp(1px, 0.5vw, 3px);
}

.datapad-header h2 {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #90a4ae;
    font-weight: 400;
    letter-spacing: clamp(1px, 0.3vw, 2px);
}

.security-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #800000;
    color: #cfd8dc;
    padding: clamp(5px, 1.5vw, 8px) clamp(10px, 2.5vw, 15px);
    border-radius: 15px;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    font-weight: 700;
    border: 2px solid #cfd8dc;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(207, 216, 220, 0.5); }
    50% { box-shadow: 0 0 25px rgba(207, 216, 220, 0.8); }
}

/* Navigation */
.nav-console {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: clamp(30px, 5vw, 40px);
    flex-wrap: wrap;
}

.nav-terminal {
    background: linear-gradient(45deg, #546e7a, #607d8b);
    border: 2px solid #cfd8dc;
    color: #cfd8dc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: clamp(160px, 22vw, 180px);
    text-align: center;
}

.nav-terminal::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #cfd8dc;
    opacity: 0.5;
}

.nav-terminal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(84, 110, 122, 0.4);
    background: linear-gradient(45deg, #607d8b, #78909c);
}

.nav-terminal.active {
    background: linear-gradient(45deg, #800000, #a52a2a);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.6);
}

/* Content Panels */
.terminal-screen {
    display: none;
    background: linear-gradient(45deg, rgba(144, 164, 174, 0.9), rgba(176, 190, 197, 0.8));
    border: 3px solid #37474f;
    border-radius: 15px;
    padding: clamp(20px, 4vw, 30px);
    box-shadow: 
        0 0 40px rgba(55, 71, 79, 0.3),
        inset 0 0 30px rgba(207, 216, 220, 0.2);
    animation: terminalBoot 0.8s ease-out;
    position: relative;
}

.terminal-screen.active {
    display: block;
}

@keyframes terminalBoot {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.terminal-screen::before {
    content: 'SECURE CONNECTION ESTABLISHED';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(45deg, #607d8b, #78909c);
    color: #37474f;
    padding: 5px 15px;
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid #37474f;
}

/* Form Elements */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 40vw, 300px), 1fr));
    gap: clamp(15px, 3vw, 25px);
    margin-top: 20px;
}

.unit-module {
    background: linear-gradient(45deg, rgba(96, 125, 139, 0.4), rgba(120, 144, 156, 0.6));
    border: 2px solid #37474f;
    border-radius: 12px;
    padding: clamp(15px, 3vw, 20px);
    position: relative;
    transition: all 0.3s ease;
}

.unit-module::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #4fc3f7;
    border-radius: 50%;
    animation: statusBlink 1.5s infinite;
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.unit-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(55, 71, 79, 0.2);
}

.unit-designation {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 2px);
}

/* Einheiten-spezifische Farben */
.unit-module[data-unit="212th"] {
    border-left: 5px solid #ff8c00;
}

.unit-module[data-unit="212th"] .unit-designation {
    color: #ff8c00;
}

.unit-module[data-unit="501st"] {
    border-left: 5px solid #1a237e;
}

.unit-module[data-unit="501st"] .unit-designation {
    color: #1a237e;
}

.unit-module[data-unit="ST"] {
    border-left: 5px solid #800000;
}

.unit-module[data-unit="ST"] .unit-designation {
    color: #800000;
}

.unit-module[data-unit="CT"] {
    border-left: 5px solid #b0bec5;
}

.unit-module[data-unit="CT"] .unit-designation {
    color: #607d8b;
}

/* Aurebesh Font für Details */
.aurebesh-detail {
    font-family: 'Aurebesh', 'Orbitron', monospace;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    opacity: 0.7;
    margin-bottom: 15px;
}

/* Dropdown für Vollständigkeit */
.status-dropdown {
    width: 100%;
    padding: clamp(10px, 2.5vw, 12px);
    border: 2px solid #37474f;
    border-radius: 8px;
    background: rgba(207, 216, 220, 0.8);
    color: #37474f;
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2vw, 1rem);
    cursor: pointer;
}

.status-dropdown:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

/* Input Fields */
.data-field {
    width: 100%;
    border: 2px solid #37474f;
    border-radius: 8px;
    background: rgba(207, 216, 220, 0.8);
    color: #37474f;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.data-field:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
    background: rgba(207, 216, 220, 1);
}

.data-field::placeholder {
    color: rgba(55, 71, 79, 0.6);
}

.officer-selector {
    width: 100%;
    border: 2px solid #37474f;
    border-radius: 8px;
    background: rgba(207, 216, 220, 0.8);
    color: #37474f;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
}

/* Cargo Animation */
.cargo-container {
    position: relative;
    height: clamp(50px, 8vw, 60px);
    background: linear-gradient(90deg, rgba(96, 125, 139, 0.3), rgba(144, 164, 174, 0.3));
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #37474f;
}

.cargo-transport {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(60px, 10vw, 80px);
    height: clamp(20px, 4vw, 30px);
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 2px solid #37474f;
    border-radius: 5px;
    animation: cargoMove 8s linear infinite;
}

.cargo-transport::before {
    content: 'FRACHT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.5rem, 1vw, 0.6rem);
    color: #37474f;
    font-weight: 700;
}

@keyframes cargoMove {
    0% { left: -100px; }
    100% { left: calc(100% + 20px); }
}

/* Cargo Items */
.cargo-entry {
    background: rgba(144, 164, 174, 0.4);
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #37474f;
    display: flex;
    gap: 10px;
    align-items: center;
    animation: dataLoad 0.5s ease;
}

@keyframes dataLoad {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cargo-entry input {
    flex: 1;
}

.delete-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: none;
    color: #cfd8dc;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 2.5vw, 15px);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
}

.delete-btn:hover {
    background: linear-gradient(45deg, #b71c1c, #d32f2f);
    transform: scale(1.05);
}

/* Buttons */
.add-cargo-btn {
    background: linear-gradient(45deg, #546e7a, #607d8b);
    border: 2px solid #37474f;
    color: #37474f;
    padding: clamp(10px, 2.5vw, 12px) clamp(20px, 4vw, 25px);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.add-cargo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 110, 122, 0.4);
}

.transmit-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: 3px solid #37474f;
    color: #cfd8dc;
    padding: clamp(15px, 3vw, 18px) clamp(30px, 6vw, 40px);
    border-radius: 10px;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    margin: clamp(20px, 4vw, 30px) auto 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.transmit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.5);
    text-shadow: 0 0 10px #cfd8dc;
}

.form-section {
    margin-bottom: clamp(20px, 4vw, 25px);
}

.form-section label {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: #37474f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modals */
.user-modal, .logging-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.user-modal-content, .logging-modal-content {
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 3px solid #37474f;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.logging-modal-content {
    max-width: 800px;
    max-height: 85vh;
    width: 95%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #37474f;
    text-transform: uppercase;
}

.close-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: none;
    color: #cfd8dc;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-panel {
    background: rgba(144, 164, 174, 0.4);
    border: 2px solid #37474f;
    border-radius: 12px;
    padding: 20px;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #37474f;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.user-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #37474f;
    border-radius: 8px;
    background: rgba(207, 216, 220, 0.8);
    color: #37474f;
    font-family: 'Orbitron', monospace;
}

.action-btn {
    background: linear-gradient(45deg, #546e7a, #607d8b);
    border: 2px solid #37474f;
    color: #37474f;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    width: 100%;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(84, 110, 122, 0.4);
}

.delete-btn-action {
    background: linear-gradient(45deg, #800000, #a52a2a);
    color: #cfd8dc;
}

.user-list {
    margin-top: 20px;
}

.user-item {
    background: rgba(207, 216, 220, 0.6);
    border: 2px solid #37474f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    color: #37474f;
    margin-bottom: 5px;
}

.password-toggle {
    font-size: 0.8rem;
    color: #607d8b;
    cursor: pointer;
    text-decoration: underline;
}

.password-display {
    font-size: 0.8rem;
    color: #37474f;
    font-family: monospace;
    display: none;
}

.delete-user-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: none;
    color: #cfd8dc;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Logging System Styles */
.logging-header {
    text-align: center;
    margin-bottom: 25px;
}

.logging-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #37474f;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(55, 71, 79, 0.3);
}

.logging-subtitle {
    font-size: 1rem;
    color: #546e7a;
    font-weight: 400;
}

.log-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(45deg, #546e7a, #607d8b);
    border: 2px solid #37474f;
    color: #37474f;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #800000, #a52a2a);
    color: #cfd8dc;
}

.log-entries {
    max-height: 60vh;
    overflow-y: auto;
    border: 2px solid #37474f;
    border-radius: 10px;
    background: rgba(207, 216, 220, 0.1);
    padding: 15px;
}

.log-entry {
    background: rgba(207, 216, 220, 0.8);
    border: 1px solid #37474f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    animation: logEntryFade 0.5s ease-in;
}

@keyframes logEntryFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.log-timestamp {
    font-size: 0.8rem;
    color: #546e7a;
    font-weight: 700;
}

.log-user {
    font-size: 0.9rem;
    color: #800000;
    font-weight: 700;
    text-transform: uppercase;
}

.log-action {
    font-size: 1rem;
    color: #37474f;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.log-details {
    font-size: 0.9rem;
    color: #546e7a;
    line-height: 1.4;
}

.log-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.log-type-system {
    background: #1a237e;
    color: #ffffff;
}

.log-type-cargo {
    background: #ff8c00;
    color: #ffffff;
}

.log-type-personnel {
    background: #4caf50;
    color: #ffffff;
}

.clear-logs-btn {
    background: linear-gradient(45deg, #800000, #a52a2a);
    border: 2px solid #37474f;
    color: #cfd8dc;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    margin-top: 15px;
    float: right;
}

.clear-logs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
}

.empty-logs {
    text-align: center;
    padding: 40px 20px;
    color: #607d8b;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-content {
    background: linear-gradient(45deg, #607d8b, #78909c);
    border: 3px solid #37474f;
    border-radius: 20px;
    padding: clamp(30px, 6vw, 40px);
    text-align: center;
    max-width: min(500px, 90vw);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-family: 'Aurebesh', 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #4caf50;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #4caf50;
}

.success-message {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #37474f;
    margin-bottom: 30px;
    line-height: 1.6;
}

.loading-bar {
    width: 100%;
    height: 10px;
    background: rgba(55, 71, 79, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #03a9f4);
    width: 0%;
    animation: loadingProgress 3s ease-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .nav-console {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-terminal {
        min-width: 80%;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .cargo-entry {
        flex-direction: column;
        gap: 10px;
    }
    
    .cargo-entry input {
        width: 100%;
    }
    
    .admin-tab {
        display: none;
    }
    
    .user-actions {
        grid-template-columns: 1fr;
    }

    .log-filters {
        justify-content: center;
    }

    .log-entry-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}