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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ========== LOGIN ========== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.login-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #667eea;
}

.login-card p {
  color: #666;
  margin-bottom: 30px;
}

/* ========== HEADER ========== */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h2 {
  color: #667eea;
  font-size: 24px;
}

.main-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a:hover {
  background: #667eea;
  color: white;
}

.main-nav a:hover svg {
  opacity: 0.9;
}

.main-nav a svg {
  flex-shrink: 0;
}

.logout-btn {
  background: #e74c3c;
  color: white !important;
}

.logout-btn:hover {
  background: #c0392b !important;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

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

.btn-danger:hover {
  background: #c0392b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

/* ========== ALERTS ========== */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========== DASHBOARD ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 48px;
}

.stat-info h3 {
  font-size: 36px;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-info p {
  color: #666;
  font-size: 14px;
}

.quick-actions {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-actions h2 {
  margin-bottom: 20px;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ========== FORMS SECTIONS ========== */
.add-form,
.list-section,
.broadcast-form,
.settings-form,
.broadcast-info {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.add-form h2,
.list-section h2 {
  margin-bottom: 20px;
  color: #333;
}

/* ========== TABLES ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.data-table th {
  background: #667eea;
  color: white;
  font-weight: 600;
}

.data-table tr:hover {
  background: #f8f9fa;
}

.empty-message {
  text-align: center;
  color: #999;
  padding: 40px;
  font-style: italic;
}

/* ========== BROADCAST INFO ========== */
.broadcast-info {
  background: #e8f5e9;
  border-left: 5px solid #27ae60;
}

.broadcast-info h3 {
  color: #27ae60;
  margin-bottom: 15px;
}

.broadcast-info ul {
  list-style-position: inside;
  color: #333;
}

.broadcast-info li {
  margin-bottom: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }
}

/* ========== SUBSCRIPTION STATS ========== */
.subscription-stats {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.subscription-stats h2 {
  margin-bottom: 20px;
  color: #333;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.subscription-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.subscription-stat-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.subscription-count {
  font-size: 14px;
  opacity: 0.9;
}

/* ========== WELCOME TEXT ========== */
.welcome-text {
  color: white;
  margin-bottom: 30px;
  font-size: 16px;
}

/* ========== STAT CARDS COLOR ========== */
.stat-card.stat-users {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card.stat-news {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-card.stat-faq {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stat-card.stat-users .stat-icon svg,
.stat-card.stat-news .stat-icon svg,
.stat-card.stat-faq .stat-icon svg {
  stroke: white;
}

.stat-card.stat-users .stat-info h3,
.stat-card.stat-news .stat-info h3,
.stat-card.stat-faq .stat-info h3 {
  color: white;
}

.stat-card.stat-users .stat-info p,
.stat-card.stat-news .stat-info p,
.stat-card.stat-faq .stat-info p {
  color: rgba(255, 255, 255, 0.9);
}

/* ========== ACTION BUTTONS WITH ICONS ========== */
.action-buttons a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons a svg {
  flex-shrink: 0;
}
/* ========== PAGE HEADER ========== */
.page-header {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.page-header h1 svg {
  color: #667eea;
}

.page-subtitle {
  color: #666;
  font-size: 14px;
  margin-left: 47px;
}

/* ========== CONTENT CARD ========== */
.content-card {
  background: white;
  border-radius: 15px;
  padding: 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-header {
  padding: 20px 30px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  color: #333;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 svg {
  color: #667eea;
}

.badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.content-card form {
  padding: 30px;
}

/* ========== BILINGUAL FORM ========== */
.bilingual-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.bilingual-form .form-col {
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
}

.lang-label {
  color: #667eea;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  display: block;
}

.lang-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.lang-badge.cyrillic {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ========== SUBSCRIPTIONS GRID ========== */
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 30px;
}

.subscription-card {
  background: #fafafa;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscription-card:hover {
  border-color: #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px);
}

.subscription-content {
  flex: 1;
}

.subscription-content h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.cyrillic-name {
  color: #667eea;
  font-size: 17px;
  margin-bottom: 12px;
  font-weight: 500;
}

.description {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.subscription-card .date {
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.subscription-actions {
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state svg {
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 16px;
  font-style: italic;
}

/* ========== BROADCAST LAYOUT ========== */
.broadcast-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.broadcast-form-card,
.broadcast-info-card {
  height: fit-content;
}

.broadcast-textarea {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  min-height: 150px;
}

.select-filter {
  cursor: pointer;
}

.form-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #667eea, transparent);
  margin: 30px 0;
}

.form-section {
  margin-top: 20px;
}

.section-title {
  color: #333;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  color: #667eea;
}

.form-hint {
  color: #999;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ========== INFO LIST ========== */
.info-list {
  padding: 20px 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.info-item:hover {
  background: #e8f5e9;
}

.info-item svg {
  color: #27ae60;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-item span {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.markdown-examples {
  margin-top: 20px;
  padding: 20px;
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.markdown-examples h3 {
  color: #856404;
  font-size: 14px;
  margin-bottom: 10px;
}

.code-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-block code {
  background: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* ========== SETTINGS SECTION ========== */
.settings-section {
  margin-bottom: 30px;
}

.settings-section:last-of-type {
  margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .broadcast-layout {
    grid-template-columns: 1fr;
  }

  .bilingual-form .form-row {
    grid-template-columns: 1fr;
  }

  .subscriptions-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 22px;
  }

  .page-subtitle {
    margin-left: 37px;
  }

  .content-card form {
    padding: 20px;
  }

  .subscriptions-grid {
    padding: 20px;
  }

  .news-grid,
  .faq-grid {
    padding: 20px;
  }
}

/* ========== NEWS GRID ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 25px;
  padding: 30px;
}

.news-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-5px);
}

.news-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 20px;
}

.news-languages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.news-lang-item h3 {
  color: #333;
  font-size: 18px;
  margin: 10px 0;
  line-height: 1.4;
}

.news-lang-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.news-lang-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.news-date {
  color: #999;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ========== FAQ GRID ========== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 30px;
}

.faq-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.faq-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-3px);
}

.faq-card-number {
  position: absolute;
  top: -15px;
  left: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.faq-card-content {
  padding-top: 20px;
}

.faq-languages {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  margin-bottom: 20px;
}

.faq-lang-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-question svg {
  color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  background: #e8f5e9;
  border-radius: 10px;
  border-left: 4px solid #27ae60;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.faq-answer svg {
  color: #27ae60;
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-lang-divider {
  width: 2px;
  background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.faq-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.faq-date {
  color: #999;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
