/* Broadcast page visuals: modern command-center layout */

.broadcast-shell {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.broadcast-command {
    border-radius: 24px;
}

.broadcast-hero {
    margin-bottom: 1rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(14, 165, 233, 0.14), transparent 62%),
        radial-gradient(120% 140% at 0% 100%, rgba(251, 146, 60, 0.12), transparent 58%),
        #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.broadcast-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
}

.broadcast-hero__meta {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.broadcast-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
}

#broadcastHeroCommunity {
    color: #0f172a;
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    background: color-mix(in srgb, var(--primary) 12%, #ffffff);
}

.broadcast-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.broadcast-form {
    margin-top: 0;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.broadcast-expiry-banner {
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.95));
    padding: 0.9rem 1rem;
    margin-bottom: 1.15rem;
}

.broadcast-expiry-banner__label {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.broadcast-expiry-banner__text {
    margin: 0;
    color: #1e293b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.broadcast-grid {
    align-items: start;
}

.broadcast-form .form-group {
    margin-bottom: var(--field-gap-y);
}

.broadcast-form .form-group > label {
    margin-bottom: 0.45rem;
    font-size: var(--field-label-size);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}

.urgency-meter {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.6rem;
}

.urgency-meter__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.urgency-meter__label {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.8rem;
}

.urgency-meter__hint {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.urgency-meter__track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #94a3b8 0%, #3b82f6 35%, #f59e0b 70%, #ef4444 100%);
    overflow: hidden;
}

.urgency-meter__fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 35%;
    border-right: 3px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    transition: width 0.25s ease;
}

.urgency-meter--compact {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  margin-top: 6px !important;
}

.urgency-meter--compact .urgency-meter__track {
  height: 6px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.urgency-meter--compact .urgency-meter__hint {
  display: block;
  font-size: 0.72rem;
  color: var(--outline);
  font-weight: 500;
}

.broadcast-live-card {
    position: sticky;
    top: 90px;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
        #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.broadcast-live-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.9rem;
}

.broadcast-live-card__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.broadcast-live-card__ttl {
    font-size: 0.68rem;
    color: #475569;
    font-weight: 700;
}

.broadcast-live-card h3 {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.broadcast-live-card__community {
    margin: 0 0 0.65rem;
    color: #0369a1;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.broadcast-live-card__body {
    margin: 0;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.broadcast-live-card__footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.broadcast-live-card__badge.urgency-low {
    background: rgba(148, 163, 184, 0.2);
    color: #334155;
}

.broadcast-live-card__badge.urgency-medium {
    background: rgba(59, 130, 246, 0.16);
    color: #1e40af;
}

.broadcast-live-card__badge.urgency-high {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.broadcast-live-card__badge.urgency-critical {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.urgency-select {
    border: 1px solid rgba(15, 23, 42, 0.14);
    font-weight: 700;
}

.broadcast-form .modern-input,
.broadcast-form .urgency-select {
    min-height: var(--control-height-md);
    border-radius: var(--control-radius-md);
    font-size: 0.83rem;
}

.broadcast-textarea {
    min-height: 180px;
    padding-top: 10px;
    resize: vertical;
    line-height: 1.6;
}

.broadcast-readonly {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* ===== NOTIFICATION STYLES ===== */

/* File Upload */
.file-upload-wrapper {
    margin-bottom: 1.5rem;
}

.file-upload-zone {
    border: 2px dashed var(--border, #e0e0e0);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--form-bg, #f9fafb);
}

.file-upload-zone:hover {
    border-color: var(--brand-color, #0284c7);
    background: rgba(2, 132, 199, 0.03);
}

.file-upload-zone.highlight {
    border-color: var(--brand-color, #0284c7);
    background: rgba(2, 132, 199, 0.08);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.file-input {
    display: none;
}

.file-upload-zone i {
    font-size: 2.5rem;
    color: var(--brand-color, #0284c7);
    display: block;
    margin-bottom: 0.5rem;
}

.file-upload-zone p {
    margin: 0.5rem 0;
    font-weight: 500;
    color: var(--text, #000);
}

.file-size-hint {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

.image-preview {
    position: relative;
    margin-top: 1rem;
}

.preview-thumbnail {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem auto;
}

.btn-remove-image {
    display: block;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: #fecaca;
}

/* Character count */
.char-count {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    margin-top: 0.25rem;
}

/* Checkbox group */
.checkbox-group {
    padding: 1rem;
    background: var(--form-bg, #f9fafb);
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text, #000);
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-color, #0284c7);
}

/* Community dropdown */
.community-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--form-bg, #f9fafb);
}

/* Category badge colors */
.category-maintenance {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.category-safety {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.category-policy {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.category-event {
    background: #f3e8ff !important;
    color: #6b21a8 !important;
}

.category-other {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* Home page badges */
.alert-badges {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.badge-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid;
    font-size: 0.9rem;
    font-weight: 600;
}

.bell-container {
    border-color: var(--brand-color, #0284c7);
    color: var(--brand-color, #0284c7);
}

.notice-container {
    border-color: #dc2626;
    color: #dc2626;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: currentColor;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .file-upload-zone {
        padding: 1.5rem;
    }

    .file-upload-zone i {
        font-size: 2rem;
    }

    .broadcast-textarea {
        min-height: 120px;
    }

    .alert-badges {
        gap: 0.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .badge-container {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 980px) {
    .broadcast-workbench {
        grid-template-columns: 1fr;
    }

    .broadcast-live-card {
        position: static;
    }


}

@media screen and (max-width: 768px) {
    .broadcast-shell {
        padding: 0 1rem;
    }

    .broadcast-hero {
        padding: 1rem;
    }

    .broadcast-form {
        padding: 1rem;
        margin-top: 0.9rem;
    }

    .broadcast-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .broadcast-textarea {
        min-height: 150px;
    }

    .broadcast-hero__meta {
        flex-direction: column;
        gap: 8px;
    }

    .broadcast-hero__meta span {
        width: 100%;
        justify-content: flex-start;
    }
}
