/* PolyDan - Dialog / Popup Styles */
.dialog-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.dialog-box {
    background: #16213e;
    border-radius: 12px;
    padding: 24px;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.dialog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.dialog-body {
    margin-bottom: 20px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dialog-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.dialog-btn-primary {
    background: #e94560;
    color: #fff;
}

.dialog-btn-primary:hover {
    background: #d63551;
}

.dialog-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ccc;
}

.dialog-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Input Felder in Dialogen */
.dialog-input {
    width: 100%;
    padding: 10px 12px;
    background: #0f3460;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    margin-bottom: 10px;
}

.dialog-input:focus {
    border-color: #e94560;
}

/* Projektliste im Dialog */
.project-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 10px;
}

.project-item:hover {
    background: rgba(83, 52, 131, 0.3);
}

.project-item.selected {
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid rgba(233, 69, 96, 0.4);
}

.project-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.project-item .p-name {
    flex: 1;
    font-size: 14px;
}

.project-item .p-lock-info {
    font-size: 11px;
    color: #e94560;
}

.project-item .p-date {
    font-size: 11px;
    color: #888;
}
