/* Post Scheduler Page Styles */
.saiap-scheduler-page .scheduler-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(200px, 1fr));
    gap: 0px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.saiap-scheduler-page .day-column {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow content to shrink without overflow */
}

.saiap-scheduler-page .day-header {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    background-color: #f0f0f0;
    text-align: center;
}

.saiap-scheduler-page .day-header .day-name {
    font-weight: 600;
    font-size: 16px;
}

.saiap-scheduler-page .day-header .day-date {
    font-size: 13px;
    color: #555;
}

.saiap-scheduler-page .prompt-card-wrapper {
    flex-grow: 1;
}

.saiap-scheduler-page .prompt-card {
    background: #fff;
    padding: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.saiap-scheduler-page .prompt-card.empty {
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #888;
}

.saiap-scheduler-page .prompt-card .prompt-content p {
    margin: 0;
    font-size: 14px;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 10; /* clamp visible lines */
    -webkit-box-orient: vertical;
}

.saiap-scheduler-page .prompt-card .prompt-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Modal Styles */
.saiap-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.saiap-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
}

.saiap-modal-content h2 {
    margin-top: 0;
}

.saiap-modal-content textarea {
    width: 100%;
    margin-bottom: 16px;
}

.saiap-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Premium Feature Notice Styles */
.saiap-scheduler-premium-notice {
    margin: 0 0 20px 0;
}

.saiap-scheduler-premium-notice p {
    margin: 8px 0;
}

.saiap-scheduler-premium-notice p:last-child {
    margin-bottom: 0;
} 

.saiap-research-agent-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.saiap-research-agent-card h3 {
    margin-top: 0;
}

.saiap-research-agent-card textarea {
    width: 100%;
    margin-bottom: 10px;
}

.saiap-research-results-panel {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* Research progress bar */
.saiap-progress {
    grid-column: 1 / -1;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.saiap-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2271b1 0%, #42a5f5 100%);
    transition: width 300ms ease;
}

.saiap-research-status {
    grid-column: 1 / -1;
    margin: 0 0 8px 0;
    color: #333;
}

.saiap-result-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.saiap-result-card h4 {
    margin-top: 0;
    font-size: 1.1em;
}

.saiap-result-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.saiap-result-card .saiap-result-source {
    margin: -8px 0 12px 0;
    font-size: 0.9em;
}

.saiap-result-actions {
    display: flex;
    justify-content: space-between;
} 

.saiap-result-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.saiap-result-close:hover {
    color: #333;
}