/* Feature Flags стили */
.feature-flags-screen {
    padding: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.screen-header .btn-back {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.screen-header .btn-back:hover {
    background: #e0e0e0;
}

.screen-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.feature-flags-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.info-banner p {
    margin: 0;
    font-size: 14px;
}

.flags-category {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.flags-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.flag-item.flag-enabled {
    background: rgba(76, 175, 80, 0.1);
}

.flag-item.flag-disabled {
    background: rgba(158, 158, 158, 0.1);
}

.flag-item.flag-updated {
    border-color: #667eea;
    animation: pulse 0.5s;
}

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

.flag-info {
    flex: 1;
}

.flag-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.flag-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.flag-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.flag-enabled .flag-status {
    background: #4caf50;
    color: white;
}

.flag-disabled .flag-status {
    background: #9e9e9e;
    color: white;
}

.flag-description {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.flag-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.flag-control {
    margin-left: 16px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-info {
    border-left: 4px solid #2196f3;
}
