/* Campaign Create Page Styles */
.campaign-create-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.campaign-header h1 {
    color: #f0f0f0;
    margin: 0;
}

.campaign-actions {
    display: flex;
    gap: 10px;
}

.campaign-section {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.campaign-section h3 {
    color: #ff3b3b;
    margin: 0 0 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #f0f0f0;
}

/* Flow Cards */
.flow-card {
    background: #2a2a2a;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flow-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flow-info h4 {
    margin: 0;
    color: #f0f0f0;
}

.flow-position {
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #ff3b3b;
}

.flow-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.flow-status.active {
    background: #4caf50;
    color: #fff;
}

.flow-status.inactive {
    background: #f44336;
    color: #fff;
}

.flow-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background: #4caf50;
    color: white;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background: #66bb6a;
}

.btn-small.btn-danger {
    background: #f44336;
}

.btn-small.btn-danger:hover {
    background: #ef5350;
}

.flow-cloak {
    margin-bottom: 10px;
    padding: 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 14px;
}

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

.content-type {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    font-size: 13px;
    color: #f0f0f0;
}

.content-type strong {
    color: #ff3b3b;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal-content {
    background-color: #1c1c1c;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #ff3b3b;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2a2a2a;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header h3 {
    margin: 0;
    color: #f0f0f0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #ff3b3b;
    background: none;
    border: none;
}

.close:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 20px;
    color: #f0f0f0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    background-color: #2a2a2a;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Button Styles - используем существующие с дополнениями */
.btn-primary {
    background-color: #ff3b3b;
    color: #0d0d0d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    color: #ff3b3b;
}

.btn-secondary {
    background-color: #000;
    color: #ff3b3b;
    border: 2px solid #ff3b3b;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #ff3333;
    color: #fff;
}

/* Distribution Section */
.distribution-section {
    margin-top: 20px;
}

.distribution-section h4 {
    color: #ff3b3b;
    margin-bottom: 15px;
}

.distribution-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.distribution-container {
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 15px;
    background: #1a1a1a;
}

.distribution-container h5 {
    margin: 0 0 10px 0;
    color: #ff3b3b;
}

/* Campaign Stats Page Styles */
.campaign-stats-header {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.campaign-stats-header h2 {
    margin: 0 0 10px 0;
    color: #f0f0f0;
}

.campaign-stats-header p {
    margin: 0 0 15px 0;
    color: #ccc;
}

.stats-summary {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
    flex-wrap: wrap;
}

.flows-stats-section {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.flows-stats-section h3 {
    margin: 0 0 15px 0;
    color: #ff3b3b;
}

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

.flow-stat-card {
    background: #2a2a2a;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-stat-card:hover {
    background: #333;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 59, 59, 0.3);
}

.flow-stat-card .flow-header {
    margin-bottom: 10px;
}

.flow-stat-card .flow-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 5px;
}

/* Campaign info в доменах */
.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-name {
    font-weight: bold;
    color: #f0f0f0;
}

.campaign-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.campaign-active {
    background: #4caf50;
    color: #fff;
}

.campaign-inactive {
    background: #f44336;
    color: #fff;
}

.no-campaign {
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .distribution-group {
        grid-template-columns: 1fr;
    }
    
    .flow-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .flows-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}/* Campaign Create Page Styles */
.campaign-create-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.campaign-header h1 {
    color: #f0f0f0;
    margin: 0;
}

.campaign-actions {
    display: flex;
    gap: 10px;
}

.campaign-section {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.campaign-section h3 {
    color: #ff3b3b;
    margin: 0 0 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #f0f0f0;
}

/* Flow Cards */
.flow-card {
    background: #2a2a2a;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flow-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flow-info h4 {
    margin: 0;
    color: #f0f0f0;
}

.flow-position {
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #ff3b3b;
}

.flow-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.flow-status.active {
    background: #4caf50;
    color: #fff;
}

.flow-status.inactive {
    background: #f44336;
    color: #fff;
}

.flow-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background: #4caf50;
    color: white;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background: #66bb6a;
}

.btn-small.btn-danger {
    background: #f44336;
}

.btn-small.btn-danger:hover {
    background: #ef5350;
}

.flow-cloak {
    margin-bottom: 10px;
    padding: 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 14px;
}

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

.content-type {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    font-size: 13px;
    color: #f0f0f0;
}

.content-type strong {
    color: #ff3b3b;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal-content {
    background-color: #1c1c1c;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #ff3b3b;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2a2a2a;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header h3 {
    margin: 0;
    color: #f0f0f0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #ff3b3b;
    background: none;
    border: none;
}

.close:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 20px;
    color: #f0f0f0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    background-color: #2a2a2a;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Button Styles - используем существующие с дополнениями */
.btn-primary {
    background-color: #ff3b3b;
    color: #0d0d0d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    color: #ff3b3b;
}

.btn-secondary {
    background-color: #000;
    color: #ff3b3b;
    border: 2px solid #ff3b3b;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #ff3333;
    color: #fff;
}

/* Distribution Section */
.distribution-section {
    margin-top: 20px;
}

.distribution-section h4 {
    color: #ff3b3b;
    margin-bottom: 15px;
}

.distribution-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.distribution-container {
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 15px;
    background: #1a1a1a;
}

.distribution-container h5 {
    margin: 0 0 10px 0;
    color: #ff3b3b;
}

/* Campaign Info styles для статистики */
.campaign-stats-header {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.campaign-stats-header h2 {
    margin: 0 0 10px 0;
    color: #f0f0f0;
}

.campaign-stats-header p {
    margin: 0 0 15px 0;
    color: #ccc;
}

.stats-summary {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
    flex-wrap: wrap;
}

.flows-stats-section {
    background: #1a1a1a;
    border: 2px solid #ff3b3b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.flows-stats-section h3 {
    margin: 0 0 15px 0;
    color: #ff3b3b;
}

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

.flow-stat-card {
    background: #2a2a2a;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-stat-card:hover {
    background: #333;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 59, 59, 0.3);
}

.flow-stat-card .flow-header {
    margin-bottom: 10px;
}

.flow-stat-card .flow-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 5px;
}

/* Campaign info в доменах */
.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-name {
    font-weight: bold;
    color: #f0f0f0;
}

.campaign-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.campaign-active {
    background: #4caf50;
    color: #fff;
}

.campaign-inactive {
    background: #f44336;
    color: #fff;
}

.no-campaign {
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .campaign-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .distribution-group {
        grid-template-columns: 1fr;
    }
    
    .flow-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .flows-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}