/* Project Cards */
.cph-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cph-project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cph-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cph-project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.cph-project-meta {
    margin-bottom: 15px;
}

.cph-project-phase {
    display: inline-block;
    background-color: #e9f5ff;
    color: #0073aa;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.cph-project-dates {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.cph-project-progress {
    margin-bottom: 15px;
}

.cph-progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.cph-progress-fill {
    height: 100%;
    background-color: #0073aa;
    border-radius: 4px;
}

.cph-progress-text {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.cph-project-actions {
    margin-top: 15px;
}

/* Project View */
.cph-project-view {
    margin-bottom: 30px;
}

.cph-project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cph-project-meta {
    flex: 1;
}

.cph-project-description {
    margin-bottom: 30px;
}

/* Task Cards */
.cph-next-task {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

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

.cph-task-list {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.cph-task-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cph-task-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

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

.cph-task-title {
    font-weight: bold;
    color: #333;
}

.cph-task-description {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.cph-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.cph-task-due-date,
.cph-task-assignee {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cph-task-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.cph-status-pending {
    background-color: #f8dda7;
    color: #94660c;
}

.cph-status-in_progress {
    background-color: #c2e0ff;
    color: #0073aa;
}

.cph-status-completed {
    background-color: #c6e1c6;
    color: #5b841b;
}

/* Task Comments */
.cph-task-comments {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.cph-task-comments h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.cph-comment {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cph-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.cph-comment-author {
    font-weight: bold;
    color: #333;
}

.cph-comment-date {
    color: #999;
}

.cph-comment-content {
    font-size: 14px;
    color: #666;
}

.cph-add-comment {
    margin-top: 15px;
}

.cph-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
}

.cph-add-comment-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.cph-add-comment-button:hover {
    background-color: #005f8b;
}

/* Task Action Buttons */
.cph-task-start-button,
.cph-task-complete-button,
.cph-task-reopen-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.cph-task-start-button:hover,
.cph-task-complete-button:hover,
.cph-task-reopen-button:hover {
    background-color: #005f8b;
}

.cph-task-complete-button {
    background-color: #5b841b;
}

.cph-task-complete-button:hover {
    background-color: #4a6b16;
}

.cph-task-reopen-button {
    background-color: #aa7700;
}

.cph-task-reopen-button:hover {
    background-color: #8b6100;
}

/* Invoice Styling */
.cph-invoice-view {
    margin-bottom: 30px;
}

.cph-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cph-invoice-meta {
    flex: 1;
}

.cph-invoice-actions {
    text-align: right;
}

.cph-invoice-items {
    margin-bottom: 20px;
}

.cph-invoice-notes {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.cph-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.cph-status-pending {
    background-color: #f8dda7;
    color: #94660c;
}

.cph-status-paid {
    background-color: #c6e1c6;
    color: #5b841b;
}

.cph-status-overdue {
    background-color: #eba3a3;
    color: #761919;
}

.cph-status-cancelled {
    background-color: #e5e5e5;
    color: #666;
    text-decoration: line-through;
}

.cph-status-refunded {
    background-color: #e5e5e5;
    color: #666;
}