body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    height: 100%;
    color: #fff;
}

body {
    background: url('../landing.jpeg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.container {
    min-height: 100vh;
    padding: 0 40px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.navbar nav a {
    color: #ffffff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #00e0ff;
}

.hero {
    text-align: center;
    margin: 30px 0 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    color: #dcdcdc;
    margin-bottom: 30px;
}

.simulation-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    background: #00e0ff;
    color: #121228;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #00b8d4;
    transform: translateY(-2px);
}

button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin: 0 auto;
    max-width: 800px;
}

.process {
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.process.general {
    background-color: rgba(100, 100, 255, 0.3);
}

.process.leader {
    background-color: rgba(255, 100, 100, 0.5);
}

.process.active {
    background-color: rgba(100, 255, 100, 0.5);
}

.process.fired {
    background-color: rgba(255, 165, 0, 0.7);
}

.process-label {
    position: absolute;
    bottom: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.state-indicator {
    position: absolute;
    top: 2px;
    font-size: 12px;
}

.simulation-settings {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
}

.settings-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    margin-bottom: 5px;
    color: #dcdcdc;
}

input {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 80px;
}

.speed-control {
    width: 150px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    margin-bottom: 30px;
}

.info-box h3 {
    color: #00e0ff;
    margin-top: 0;
}

.step-display {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    color: #00e0ff;
}

.status-message {
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
    color: #dcdcdc;
    min-height: 20px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-leader {
    background-color: rgba(255, 100, 100, 0.5);
}

.legend-general {
    background-color: rgba(100, 100, 255, 0.3);
}

.legend-active {
    background-color: rgba(100, 255, 100, 0.5);
}

.legend-fired {
    background-color: rgba(255, 165, 0, 0.7);
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #dcdcdc;
    font-size: 14px;
    width: 100%;
}