/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Dashboard Grid */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Panel Styles */
.panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-icon {
    width: 40px;
    height: 40px;
    background: #2a5298;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
}

.panel-title {
    font-size: 1.4rem;
    color: #2a5298;
    font-weight: 600;
}

.panel-content {
    padding: 10px 0;
}

/* Overlay */

.overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .80);
    z-index: 90;
}


/* Modal styles */

.modal {
    position: absolute;
    top: 30%;
    left: 43%;
    z-index: 100;
}

.modal:hover {
    transform: none;
}

.modal-btns {
    padding-top: 1rem;
    float: inline-end;
}


/* Status Items */
.status-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.status-label {
    font-weight: 500;
    color: #555;
}

.status-value {
    font-weight: 600;
    color: #2a5298;
}

/* Visualisierungselemente */
.visualization {
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ddd;
    color: #888;
}

.canvas-div {
    height: 10rem;
    padding: 1rem 1rem .25rem .5rem;
    display: flex;
    flex-direction: column;
}

.canvas-row {
    display: flex;
    /* Memory + Canvas nebeneinander */
    align-items: center;
    justify-content: center;
}

.memory-title {
    font-size: .625rem;
    writing-mode: vertical-lr;
    rotate: 180deg;
    margin-right: .125rem;
}

.time-title {
    font-size: .625rem;
    margin-top: .125rem;
    text-align: center;
}




/* Button Styles */
.btn {
    background: #2a5298;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background: #1e3c72;
}

.cancel-btn {
    background: white;
    color: #333;
    border: 1px solid #b4c2db;
    transition: background .3s ease, border-color .3s ease;
}

.cancel-btn:hover {
    background: #f2f2f2;
    border-color: transparent;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* Progress Bars */
.progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: #2a5298;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Responsive Anpassungen */
@media (max-width: 48em) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}