/*
 * File: client-manager-style.css
 * Description: Stylesheet for the client-manager plugin front-end shortcode.
 */

.wrap {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.wrap h1 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.client-manager-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.client-manager-form label {
    font-weight: bold;
}

.client-manager-form input[type="text"],
.client-manager-form select {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    width: 200px;
    transition: border-color 0.2s ease-in-out;
}

.client-manager-form input[type="text"]:focus,
.client-manager-form select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.button, .button-primary {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.button-primary {
    color: #fff;
    background-color: #007cba;
    border-color: #006ba1;
}

.button-primary:hover, .button-primary:focus {
    background-color: #006ba1;
    border-color: #005f8e;
}

.button {
    color: #555d66;
    background-color: #f6f7f7;
    border-color: #c3c4c7;
}

.button:hover, .button:focus {
    background-color: #f0f1f1;
    border-color: #a7aaad;
}

#loading-message {
    font-style: italic;
    color: #888;
    text-align: center;
    padding: 20px 0;
}

/* Flexbox-based table styles */
.progress-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-table-header, .progress-table-body {
    /* display: contents; */
}

.progress-table-row {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    background-color: #fff;
    transition: background-color 0.2s ease-in-out;
    flex-direction: row;
}

.progress-table-row:hover {
    background-color: #f9f9f9;
}

.progress-table-header .progress-table-cell {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.progress-table-cell {
    padding: 12px 15px;
    flex: 1; /* Distributes space equally */
    border-right: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    word-break: break-word;
    flex: 33%;
}

.progress-table-cell:last-child {
    border-right: none;
}

.progress-table-header .progress-table-cell:first-child,
.progress-table-row .progress-table-cell:first-child {
    /* flex-basis: 20%; */
}

.progress-table-header .progress-table-cell:nth-child(2),
.progress-table-row .progress-table-cell:nth-child(2) {
    flex-basis: 20%;
}

.progress-table-header .progress-table-cell:nth-child(3),
.progress-table-row .progress-table-cell:nth-child(3) {
    flex-basis: 40%;
}

.progress-table-header .actions-cell,
.progress-table-row .actions-cell {
    flex-basis: 20%;
    flex-wrap: wrap;
    gap: 5px;
}

/* Styles for the new two-column progress section */
.progress-table-cell:last-child {
    flex-direction: column; /* Stack categories vertically */
    align-items: flex-start; /* Align categories to the left */
}

.category-list-container {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.category-name-column {
    flex-basis: 150px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0; /* Prevent the name column from shrinking */
}

.lessons-column {
    display: flex;
    flex-wrap: wrap; /* Allow lessons to wrap to the next line */
    gap: 5px;
    flex-grow: 1; /* Take up remaining space */
}

/* Progress box styling */
.progress-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.progress-box:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.class-name-input {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}




/* new styles */

.progress-table-header {
  display: flex;
}

.progress-table-cell.user-name-cell {
  display: flex;
  flex-direction: column;
}