body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f5f7; margin: 0; padding: 20px; }

/* Шапка и переключатель */
.header-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h1 { font-size: 24px; color: #172b4d; margin: 0; }
.view-toggle { display: flex; background: #dfe1e6; border-radius: 6px; padding: 4px; }
.btn-toggle { background: transparent; border: none; padding: 8px 16px; cursor: pointer; font-weight: 600; color: #5e6c84; border-radius: 4px; transition: 0.2s; }
.btn-toggle.active { background: #fff; color: #172b4d; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Канбан */
.kanban-board { display: flex; gap: 15px; align-items: flex-start; overflow-x: auto; padding-bottom: 20px; }
.kanban-column { background: #ebecf0; border-radius: 8px; width: 300px; min-width: 300px; padding: 10px; box-sizing: border-box; }
.column-header { font-weight: bold; font-size: 14px; color: #5e6c84; padding: 5px 10px 10px 10px; text-transform: uppercase; border-bottom: 2px solid #ddd; margin-bottom: 10px; }
.cards-container { min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.card { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); border-left: 5px solid #ccc; cursor: grab; transition: all 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.card-tag { display:inline-block; color:#fff; font-size:10px; padding:3px 8px; border-radius:4px; margin-bottom:8px; font-weight:bold; text-transform: uppercase; }
.card-title { font-weight: 600; color: #172b4d; margin-bottom: 5px; font-size: 15px; }
.card-info { font-size: 13px; color: #5e6c84; margin-top: 4px; }
.card-price { font-weight: bold; color: #00875a; margin-top: 10px; font-size: 15px; }

/* Кнопки в карточках */
.card-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; }
.btn-action { text-decoration: none; font-size: 12px; padding: 6px 12px; border-radius: 4px; font-weight: 600; text-align: center; flex-grow: 1; cursor: pointer; border: 1px solid #ced4da; color: #495057; background: #e9ecef; }
.btn-action:hover { background: #dee2e6; }
.btn-upd { background: #e3fcef; color: #00875a; border-color: #36b37e; }
.btn-upd:hover { background: #abf5d1; }

/* Календарь и Модальное окно */
#calendar-view { display: none; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.fc-event { cursor: pointer; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(9, 30, 66, 0.54); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 24px; border-radius: 8px; width: 100%; max-width: 400px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.modal-content h3 { margin-top: 0; margin-bottom: 20px; color: #172b4d; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; color: #5e6c84; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 8px; box-sizing: border-box; border: 2px solid #dfe1e6; border-radius: 4px; font-family: inherit; }
.form-group input:focus, .form-group select:focus { border-color: #4c9aff; outline: none; }
.modal-buttons { display: flex; justify-content: space-between; margin-top: 25px; }
.btn-primary { background: #0052cc; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-primary:hover { background: #0047b3; }
.btn-danger { background: #ffebe6; color: #de350b; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-danger:hover { background: #ffbdad; }
.btn-close-modal { background: transparent; border: none; color: #5e6c84; cursor: pointer; font-weight: bold; }