/* Frontend Task List Styles */
.taskflow-frontend-view {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Archive Toggle Controls */
.taskflow-archive-controls {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.archive-toggle-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.archive-toggle-btn {
    background-color: #f7f7f7;
    color: #50575e;
    border: 1px solid #c3c4c7;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.archive-toggle-btn:hover {
    background-color: #e7e7e7;
    border-color: #a7aaad;
}

.archive-toggle-btn.active {
    background-color: #2271b1;
    color: white;
    border-color: #2271b1;
}

.archive-toggle-btn.active:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Load Dashicons for frontend */
.taskflow-frontend-view .dashicons {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in;
}

.taskflow-frontend-view .dashicons-admin-links:before {
    content: "\f103";
}

/* Pagination Styles */
.taskflow-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination-btn {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 14px;
}

.pagination-btn:hover {
    background-color: #135e96;
}

.pagination-btn:disabled {
    background-color: #c3c4c7;
    cursor: not-allowed;
}

.page-info {
    margin: 0 15px;
    font-size: 14px;
    color: #50575e;
}

/* Task Table Styles */
.taskflow-frontend-view .task-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.taskflow-frontend-view .task-table-header {
    display: flex;
    background-color: #f7f7f7;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.taskflow-frontend-view .task-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.taskflow-frontend-view .task-row:hover {
    background-color: #f9f9f9;
}

.taskflow-frontend-view .task-row:last-child {
    border-bottom: none;
}

/* Content Link Styles */
.taskflow-frontend-view .task-content {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taskflow-frontend-view .content-link {
    color: #2271b1;
    text-decoration: none;
}

.taskflow-frontend-view .content-link:hover {
    color: #135e96;
}

.taskflow-frontend-view .task-content-header {
    flex: 0 0 60px;
    text-align: center;
}

/* Column Widths */
.taskflow-frontend-view .task-title-header,
.taskflow-frontend-view .task-title {
    flex: 3;
    padding: 0 10px;
}

.taskflow-frontend-view .task-type-header,
.taskflow-frontend-view .task-type,
.taskflow-frontend-view .task-keyword-header,
.taskflow-frontend-view .task-keyword,
.taskflow-frontend-view .task-priority-header,
.taskflow-frontend-view .task-priority,
.taskflow-frontend-view .task-status-header,
.taskflow-frontend-view .task-status,
.taskflow-frontend-view .task-deadline-header,
.taskflow-frontend-view .task-deadline {
    flex: 1;
    padding: 0 10px;
}

/* Tag Styles */
.taskflow-frontend-view .type-tag,
.taskflow-frontend-view .priority-tag,
.taskflow-frontend-view .status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* Type Tags */
.taskflow-frontend-view .type-post {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.taskflow-frontend-view .type-page {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.taskflow-frontend-view .type-gbp {
    background-color: #fff3e0;
    color: #e65100;
}

.taskflow-frontend-view .type-social {
    background-color: #f3e5f5;
    color: #4a148c;
}

.taskflow-frontend-view .type-video {
    background-color: #ffebee;
    color: #b71c1c;
}

.taskflow-frontend-view .type-on_page {
    background-color: #eef2ff;
    color: #3730a3;
}

/* Priority Tags */
.taskflow-frontend-view .priority-high {
    background-color: #ffebee;
    color: #c62828;
}

.taskflow-frontend-view .priority-medium {
    background-color: #fff8e1;
    color: #ff8f00;
}

.taskflow-frontend-view .priority-low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Status Tags */
.taskflow-frontend-view .status-not_started {
    background-color: #f5f5f5;
    color: #616161;
}

.taskflow-frontend-view .status-in_progress {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.taskflow-frontend-view .status-in_review {
    background-color: #fff8e1;
    color: #ff8f00;
}

.taskflow-frontend-view .status-published {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.taskflow-frontend-view .status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Task Panel Styles */
.taskflow-frontend-view .task-panel-frontend {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.taskflow-frontend-view .task-panel-frontend.active {
    right: 0;
}

.taskflow-frontend-view .task-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f7f7f7;
}

.taskflow-frontend-view .task-panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.taskflow-frontend-view .close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.taskflow-frontend-view .task-panel-content {
    padding: 20px;
}

.taskflow-frontend-view .detail-row {
    margin-bottom: 15px;
}

.taskflow-frontend-view .detail-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .taskflow-frontend-view .task-table-header,
    .taskflow-frontend-view .task-row {
        flex-wrap: wrap;
    }
    
    .taskflow-frontend-view .task-title-header,
    .taskflow-frontend-view .task-title {
        flex: 1 0 100%;
        margin-bottom: 8px;
    }
    
    .taskflow-frontend-view .task-type-header,
    .taskflow-frontend-view .task-type,
    .taskflow-frontend-view .task-keyword-header,
    .taskflow-frontend-view .task-keyword,
    .taskflow-frontend-view .task-priority-header,
    .taskflow-frontend-view .task-priority,
    .taskflow-frontend-view .task-status-header,
    .taskflow-frontend-view .task-status,
    .taskflow-frontend-view .task-deadline-header,
    .taskflow-frontend-view .task-deadline {
        flex: 1 0 33%;
    }
    
    .taskflow-frontend-view .task-panel-frontend {
        width: 100%;
        right: -100%;
    }
}