body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f2f3f7; margin: 0; padding: 0; color: #333; }
.container { padding: 20px; }
.navbar { display: flex; align-items: center; margin-bottom: 20px; }
.back-btn { background: none; border: none; font-size: 24px; cursor: pointer; padding: 5px 10px 5px 0; color: #333; text-decoration: none;}
.page-title { font-size: 20px; font-weight: bold; margin: 0; }

.card { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settings-label { font-size: 14px; font-weight: 600; white-space: nowrap; }
select, input[type="datetime-local"] { padding: 10px; border-radius: 8px; border: 1px solid #ccc; font-size: 14px; background: #fff; flex-grow: 1; }
.btn-save { padding: 8px 20px; background: #4caf50; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
#tz-status { font-size: 12px; color: green; margin-top: 5px; text-align: center; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-box { background: #fff; padding: 15px; border-radius: 12px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.stat-num { font-size: 24px; font-weight: bold; color: #2b6cff; }
.stat-label { font-size: 12px; color: #777; margin-top: 5px; }

.section-title { font-size: 14px; font-weight: bold; color: #888; margin-bottom: 10px; margin-top: 10px; text-transform: uppercase; }
.form-control { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid #ddd; font-size: 15px; box-sizing: border-box; height: 120px; resize: none; font-family: inherit; margin-bottom: 15px; }
.btn { width: 100%; background: #2b6cff; color: white; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn:disabled { background: #ccc; }
.alert { padding: 10px; border-radius: 8px; margin-top: 10px; font-size: 14px; display: none; }
.alert-success { background: #d4edda; color: #155724; }

/* Таблицы */
.table-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-list th, .table-list td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.table-list th { color: #888; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.btn-action { background: none; border: none; cursor: pointer; font-size: 16px; margin-right: 5px; }
.btn-add-channel { background: #fff; color: #2b6cff; border: 1px solid #2b6cff; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; width: 100%; margin-top: 5px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; padding: 20px; border-radius: 15px; width: 90%; max-width: 400px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.modal-title { font-weight: bold; font-size: 18px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }

.hint { font-size: 12px; color: #555; margin-top: 10px; line-height: 1.5; background: #fff9c4; padding: 12px; border-radius: 8px; border-left: 4px solid #fbc02d; }

.status-pending { color: #ff9800; font-weight: 600; }
.status-sent { color: #4caf50; }
