* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 2rem;
}

.project-controls {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.project-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    min-width: 200px;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.board-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.board-header h2 {
    color: #2c3e50;
}

.event-controls {
    display: flex;
    gap: 1rem;
}

.event-board {
    background-color: white;
    min-height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
}

.board-message {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-top: 100px;
}

.event-card {
    position: absolute;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: move;
    min-width: 200px;
    max-width: 300px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-type {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

.event-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: #7f8c8d;
}

.event-actions button:hover {
    color: #2c3e50;
}

.event-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.event-type-domain { background-color: #ffe4b5; border-left: 4px solid #ff8c00; }
.event-type-command { background-color: #e6f3ff; border-left: 4px solid #3498db; }
.event-type-aggregate { background-color: #fff0f5; border-left: 4px solid #ff69b4; }
.event-type-policy { background-color: #f0e68c; border-left: 4px solid #daa520; }
.event-type-readmodel { background-color: #e6e6fa; border-left: 4px solid #9370db; }
.event-type-ui { background-color: #f0ffff; border-left: 4px solid #00ced1; }
.event-type-external { background-color: #fafad2; border-left: 4px solid #bdb76b; }
.event-type-actor { background-color: #e0ffff; border-left: 4px solid #20b2aa; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.close:hover {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.alert-modal {
    max-width: 400px;
    text-align: center;
}

.alert-modal h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.alert-modal p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #555;
}

.alert-modal .form-actions {
    justify-content: center;
}

.prompt-modal {
    max-width: 400px;
}

.prompt-modal h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.prompt-modal p {
    margin-bottom: 1rem;
    color: #555;
}

.prompt-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.prompt-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.confirm-modal {
    max-width: 400px;
    text-align: center;
}

.confirm-modal h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.confirm-modal p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #555;
}