/* Content Control Admin Styles */
.blog-tools-content-control-wrap {
    padding: 20px;
}

.blog-tools-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.control-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.control-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.control-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.control-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.control-type-badge.normal {
    background: #e3f2fd;
    color: #1976d2;
}

.control-type-badge.task {
    background: #f3e5f5;
    color: #7b1fa2;
}

.control-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

.status-inactive {
    color: #f44336;
    font-weight: 600;
}

.control-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.control-actions .button {
    flex: 1;
    text-align: center;
}

/* Modal Styles */
.blog-tools-modal-content.large {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

#tasks-container {
    margin: 20px 0;
}

.task-row {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.task-row-header h4 {
    margin: 0;
    font-size: 16px;
}

.remove-task-btn {
    color: #f44336;
    cursor: pointer;
}

/* Frontend Task Bar Styles */
.blog-tools-task-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.task-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.task-bar-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.task-bar-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-bar-title i {
    transition: transform 0.3s ease;
}

.task-bar-title i.rotated {
    transform: rotate(180deg);
}

.task-bar-progress-text {
    font-size: 14px;
    opacity: 0.9;
}

.task-bar-progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.task-bar-progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.task-bar-content {
    background: #fff;
    color: #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-bar-content.expanded {
    max-height: 600px;
    border-top: 1px solid #ddd;
}

.task-list {
    padding: 20px 30px;
}

.task-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.task-item.completed {
    border-left-color: #4caf50;
    background: #f1f8f4;
}

.task-icon {
    font-size: 24px;
    color: #999;
}

.task-item.completed .task-icon {
    color: #4caf50;
}

.task-details {
    flex: 1;
}

.task-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.task-details p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.task-progress-info {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.task-bar-unlock {
    padding: 20px 30px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.task-bar-unlock.visible {
    opacity: 1;
}

.task-unlock-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.task-unlock-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.task-unlock-button i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-tools-controls-grid {
        grid-template-columns: 1fr;
    }

    .task-bar-header {
        padding: 12px 20px;
    }

    .task-bar-title {
        font-size: 16px;
    }

    .task-list {
        padding: 15px 20px;
    }

    .task-item {
        flex-direction: column;
        gap: 10px;
    }
}

