/* ------------------ General Form & Input Styles ------------------ */
.pj-entry-form input[type="text"],
.pj-entry-form textarea,
.pj-entry-form select,
form input[type="date"] {
    font-family: inherit;
    border: 1px solid #17262b;
    border-radius: 0px;
    padding: 6px;
    font-size: 0.95em;
    line-height: 1.5;
    width: auto;
    max-width: 150px;
}

.pj-entry-form button,
form button,
.pj-task-list button {
    cursor: pointer;
    padding: 6px 12px;
    background: #682b00;
    color: #fff;
    border: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

    .pj-entry-form button:hover,
    form button:hover {
        background: #9f2b00;
    }

/* ------------------ Collapsible Details ------------------ */
details {
    background: #f9f9f9;
    border: 1px solid #17262b;
    border-radius: 0px;
    padding: 8px;
    margin-bottom: 12px;
    transition: background 0.3s ease;
    font-family: var(--wp--preset--font-family--waiting-for-the-sunrise) !important;
    font-size: 20px;
}

label {
    font-family: var(--wp--preset--font-family--waiting-for-the-sunrise) !important;
    font-size: 20px;
}

details[open] {
    background: #fff;
}

details summary {
    font-weight: bold;
    cursor: pointer;
    outline: none;
    padding: 4px 0;
}


/* ------------------ Journal Entries ------------------ */
.pj-entry-list li {
    background: #fafafa;
    padding: 12px;
    border-radius: 0px;
    border: 1px solid #17262b;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.pj-entry-list li:hover {
    background: #f9f9f9;
}

/* ------------------ Tasks ------------------ */
.pj-task-list li {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    transition: opacity 0.2s;
}

.pj-task-list li:hover {
    opacity: 0.8;
}

.pj-task-list li form {
    margin-right: 8px;
}

.pj-task-list li span {
    flex-grow: 1;
    font-size: 0.95em;
}

/* ------------------ Weekly Task Table ------------------ */
.pj-task-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

.pj-task-list table th,
.pj-task-list table td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
}

.pj-task-list table th {
    background: #f3f3f3;
}

/* ------------------ Success & Error Messages ------------------ */
.pj-success,
.pj-error {
    padding: 10px;
    border-radius: 0px;
    margin-bottom: 1em;
    font-weight: bold;
}

.pj-success {
    background: #e6f7e6;
    color: #28a745;
}

.pj-error {
    background: #fbeaea;
    color: #c62828;
}

/* ------------------ Category Filter Form ------------------ */
.pj-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pj-filter-form select {
    min-width: 180px;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 600px) {
    .pj-entry-form textarea,
    .pj-entry-form input[type="text"],
    .pj-entry-form select,
    form input[type="date"] {
        width: 100% !important;
    }
}

/* ------------------ Journaltastic Tabbed Layout ------------------ */
.pj-tabs {
    max-width: 900px;
    margin: auto;
    font-family: system-ui, sans-serif;
}

.pj-tab-buttons {
    display: flex;
    justify-content: left;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1.2em;
    gap: 1em;
    flex-wrap: wrap;
}

.pj-tab-button {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    color: #555;
    font-family: var(--wp--preset--font-family--waiting-for-the-sunrise) !important;
}

    .pj-tab-button:hover {
        color: #9f2b00;
    }

    .pj-tab-button.active {
        color: #682b00;
        border-bottom-color: #682b00;
        font-weight: 600;
    }

.pj-tab-content {
    display: none;
}

    .pj-tab-content.active {
        display: block;
        background: #fff;
        padding: 0em;
        border: 0px solid #ddd;
        border-radius: 0px;
    }

/* Journaltastic Frontend Styles */

.pj-success {
    color: green;
}

.pj-error {
    color: red;
}

.pj-details {
    margin-bottom: 1em;
}

.pj-summary {
    cursor: pointer;
    font-weight: bold;
    padding: 6px 0;
}

.pj-entry-form {
    margin-top: 6px;
}

.pj-input-text,
.pj-select,
.pj-textarea {
    width: 100%;
    max-width: 700px;
    padding: 8px;
}

.pj-select {
    max-width: 300px;
}

.pj-button {
    padding: 6px 12px;
    background: #682b00;
    color: #fff;
    border: none;
    border-radius: 3px;
    margin: 4px 10px 4px 6px;
}

.pj-entry-list {
    list-style: none;
    padding: 0;
}

.pj-entry {
    color: #000;
    font-size: 1rem;
}

.pj-entry-item {
    margin-bottom: 1em;
    padding: 1em;
    border: 1px solid #17262b;
    border-radius: 0;
}

.pj-entry-title {
    color: #000;
    font-size: 1.5rem;
    font-family: var(--wp--preset--font-family--waiting-for-the-sunrise) !important;
}

.pj-entry-category {
    color: #555;
}

.pj-entry-date {
    color: #555;
    font-size: 0.7rem;
    padding-top: 4px;
}

.pj-filter-form {
    margin-bottom: 1em;
}

.pj-pagination {
    margin-top: 1em;
}

/* Task section */
.pj-task-list {
    list-style: none;
    padding: 0;
}

    .pj-task-list li {
        margin-bottom: 0.5em;
    }

.pj-task-button {
    background: #682b00;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.8em;
}

.pj-task-completed {
    text-decoration: line-through;
    color: #777;
}

/* Weekly table */
.pj-week-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
    margin-top: 6px;
}

    .pj-week-table th, .pj-week-table td {
        border: 1px solid #ddd;
        padding: 4px;
        text-align: center;
    }

    .pj-week-table th {
        text-align: center;
    }

.pj-week-cell-done {
    background: #28a745;
    color: white;
    font-weight: bold;
}

.pj-week-cell-pending {
    background: #eee;
    color: #17262b;
    font-weight: bold;
}
