/* ===========================================
   C4-AI - Broadcast Section - Modern Design
   =========================================== */

/* Stats Row */
.broadcast-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bc-stat {
    flex: 1;
    min-width: 140px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    cursor: default;
}

.bc-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.bc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.bc-stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.bc-stat-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.bc-stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.bc-stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.bc-stat-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.bc-stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* Main Layout */
.broadcast-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

/* Broadcast Form Card */
.broadcast-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.bc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to bottom, var(--content-bg), transparent);
}

.bc-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-card-header h3 svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.bc-card-body {
    padding: 24px;
}

/* Channel Selection */
.channel-selection {
    margin-bottom: 24px;
}

.channel-selection label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Warning Box */
.broadcast-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin-bottom: 16px;
}

.broadcast-warning svg {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

.broadcast-warning p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

/* Info Box */
.broadcast-info-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.info-box-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.2s;
}

.info-box-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.info-box-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.info-box-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.info-box-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.info-box-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.info-box-data {
    display: flex;
    flex-direction: column;
}

.info-box-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.info-box-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.channel-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.channel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.channel-btn:active::before {
    width: 200px;
    height: 200px;
}

.channel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}

.channel-btn:hover svg {
    transform: scale(1.1);
}

.channel-btn.telegram svg { 
    fill: #0088cc; 
    stroke: none; 
}

.channel-btn.telegram.active svg {
    animation: bounce 0.5s ease;
}

.channel-btn.widget svg { 
    stroke: var(--primary); 
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.channel-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.channel-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Target Selection */
.target-selection {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--content-bg);
    border-radius: 12px;
}

.target-selection label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.target-options {
    display: flex;
    gap: 12px;
}

.target-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.target-radio input {
    display: none;
}

.target-radio .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.target-radio .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s;
}

.target-radio input:checked + .radio-custom {
    border-color: var(--primary);
}

.target-radio input:checked + .radio-custom::after {
    transform: scale(1);
}

.target-radio span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Groups Selection */
.groups-selection {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.groups-selection.show {
    display: block;
}

.groups-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.group-item:hover {
    border-color: var(--primary);
}

.group-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.group-item input {
    display: none;
}

.group-item .check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.group-item.selected .check-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.group-item .check-icon svg {
    width: 12px;
    height: 12px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.2s;
}

.group-item.selected .check-icon svg {
    opacity: 1;
}

.group-info {
    flex: 1;
}

.group-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.group-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Message Textarea */
.message-area {
    margin-bottom: 24px;
}

.message-area label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.message-area label svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.message-textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-family);
    background: var(--card-bg);
    color: var(--text-dark);
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.message-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.message-textarea:hover:not(:focus) {
    border-color: rgba(99, 102, 241, 0.4);
}

.message-textarea::placeholder {
    color: var(--text-muted);
}

.char-count {
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.char-count::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Media Upload */
.media-upload {
    margin-bottom: 24px;
}

.media-upload label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.media-upload label svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
}

.upload-area.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    border-style: solid;
}

.upload-area.has-file::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    opacity: 1;
}

.upload-area svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px;
}

.upload-area span {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-area input {
    display: none;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--content-bg);
    border-radius: 10px;
    margin-top: 12px;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uploaded-file .file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.uploaded-file .file-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.uploaded-file .file-info {
    flex: 1;
}

.uploaded-file .file-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.uploaded-file .file-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.uploaded-file .remove-file {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.uploaded-file .remove-file:hover {
    background: var(--danger);
    color: white;
}

.uploaded-file .remove-file svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Caption Checkbox */
.caption-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--content-bg);
    border-radius: 10px;
}

.caption-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.caption-option span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Schedule */
.schedule-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--content-bg);
    border-radius: 12px;
}

.schedule-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 12px;
}

.schedule-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.schedule-inputs {
    display: none;
    gap: 12px;
}

.schedule-inputs.show {
    display: flex;
}

.schedule-inputs input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    background: var(--card-bg);
    color: var(--text-dark);
}

.schedule-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Send Button */
.send-actions {
    display: flex;
    gap: 12px;
}

.btn-send {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-send:active:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5558e3 0%, #7c47e8 100%);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-send svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    position: relative;
    z-index: 1;
}

.btn-send.sending {
    pointer-events: none;
}

.btn-send.sending svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Preview Card */
.broadcast-preview-card {
    position: sticky;
    top: 100px;
}

.preview-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.preview-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
    color: white;
}

.preview-header svg {
    width: 24px;
    height: 24px;
    fill: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.preview-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.preview-body {
    padding: 20px;
    min-height: 200px;
}

.preview-message {
    background: var(--content-bg);
    border-radius: 12px 12px 12px 0;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.preview-message:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-message.empty {
    color: var(--text-muted);
    font-style: italic;
    background: rgba(99, 102, 241, 0.03);
}

.preview-media {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--content-bg);
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-media img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.preview-media .media-placeholder {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.preview-media .media-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 8px;
}

.preview-time {
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
    margin-top: 8px;
}

/* History Section */
.broadcast-history {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-header h3 svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

.history-count {
    background: var(--content-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    position: relative;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--content-bg);
}

.history-item:hover .history-actions {
    opacity: 1;
}

.history-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: all 0.2s;
}

.history-item:hover::before {
    background: var(--primary);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.history-icon.sent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #10b981;
}

.history-icon.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
}

.history-icon.scheduled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #3b82f6;
}

.history-item:hover .history-icon {
    transform: scale(1.1);
}

.history-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-content p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.history-actions {
    display: flex;
    gap: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.history-actions button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--content-bg);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.history-actions button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.history-actions button:hover::before {
    width: 100%;
    height: 100%;
}

.history-actions button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.history-actions button.delete:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: scale(1.1);
}

.history-actions button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    position: relative;
    z-index: 1;
}

/* Empty History */
.history-empty {
    text-align: center;
    padding: 48px 24px;
}

.history-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--border-color);
    fill: none;
    stroke-width: 1;
    margin-bottom: 16px;
}

.history-empty h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.history-empty p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Loading */
.broadcast-loading {
    text-align: center;
    padding: 48px;
}

.broadcast-loading .loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.broadcast-loading p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .broadcast-layout {
        grid-template-columns: 1fr;
    }
    
    .broadcast-preview-card {
        position: static;
    }
    
    .broadcast-info-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .broadcast-stats {
        flex-direction: column;
    }
    
    .broadcast-info-box {
        grid-template-columns: 1fr;
    }
    
    .channel-options {
        flex-direction: column;
    }
    
    .target-options {
        flex-direction: column;
    }
    
    .schedule-inputs {
        flex-direction: column;
    }
    
    .send-actions {
        flex-direction: column;
    }
}
