
/* General Styling */
.wrap h1 {
    color: #23282d;
    font-size: 24px;
    font-weight: 600;
}

/* Table Styling */
.tablemanager-list {
    width: 100% !important;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.tablemanager-list th, .tablemanager-list td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tablemanager-list th {
    background: #0073aa;
    color: white;
    font-weight: bold;
    text-transform: capitalize;
    text-align: center;
    font-size: 16px;
}

.tablemanager-list td {
    text-align: center;
    font-size: 15px;
}

.tablemanager-list tr:nth-child(even) {
    background: #f9f9f9;
}

.tablemanager-list tr:hover {
    background: #f1f1f1;
    transition: 0.3s ease-in-out;
}

/* Buttons */
.button-primary, .button-danger {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
}

.button-primary:hover {
    background: #005177;
}

.button-danger {
    background: #dc3232;
    color: #fff;
    border: none;
}

.button-danger:hover {
    background: #a92727;
}

/* Forms Styling */
/* Forms Styling */
.tm-form {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.tm-form input[type="text"], 
.tm-form select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tm-form input[type="submit"] {
    padding: 8px 12px;
    margin-top: 10px;
}


/* Action Buttons inside Table */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-buttons a {
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.action-buttons .edit {
    background: #28a745;
    color: #fff;
}

.action-buttons .edit:hover {
    background: #1e7e34;
}

.action-buttons .delete {
    background: #dc3232;
    color: #fff;
}

.action-buttons .delete:hover {
    background: #a92727;
}

/* Ensure padding is applied to the table */
.wrap .tablemanager-list {
    padding: 10px;
    width: 100% !important;

}

/* Ensure padding is applied inside table cells */
.wrap .tablemanager-list th, 
.wrap .tablemanager-list td {
    padding: 10px;
}

/* 
=================================
   Column Management Styling 
=================================
*/

/* Flexbox container for column actions */
 .column-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
} 

/* Individual column action forms */
 .column-actions form {
    flex: 1;
    min-width: 250px;
} 

/* Adjust the select and input fields inside the flex container */
.column-actions select,
.column-actions input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Submit buttons inside the flex container */
.column-actions input[type="submit"] {
    width: 100%;
    padding: 8px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.column-actions input[type="submit"]:hover {
    background: #005177;
}

/* Danger button for column deletion */
.column-actions .button-danger {
    background: #dc3232;
}

.column-actions .button-danger:hover {
    background: #a92727;
}

/* Flexbox container for select and input */
.update-column-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Make both elements take equal space */
.update-column-flex select,
.update-column-flex input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button alignment */
.update-column-button {
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .column-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .column-actions form {
        width: 100%;
    }
}

/* Ensure the select dropdown is 100% width */
.full-width-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    box-sizing: border-box;
}

/* Ensure parent container does not limit width */
.form-group {
    width: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Existing Tables */
.existing-tables {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.tablemanager-list {
    width: 100% !important;
    border-collapse: collapse;
}

.tablemanager-list th, .tablemanager-list td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
}

.tablemanager-list th {
    background: #0073aa;
    padding: 15px !important;
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
}

.tablemanager-list td {
    text-align: center;
    color: #000000;
}

.tablemanager-list tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tablemanager-list tbody tr:hover {
    background: #eaf2fa;
}

.button-primary {
    background: #0073aa;
    color: white;
    border-radius: 3px;
    padding: 5px 10px;
    text-decoration: none;
}

.button-primary:hover {
    background: #005f8d;
}

.button-danger {
    background: #d63638;
    color: white;
    border-radius: 3px;
    padding: 5px 10px;
    text-decoration: none;
}

.button-danger:hover {
    background: #b02a2c;
}

code {
    color: #3d3b3c;
    font-weight: bold;
}

.existing-tables form {
    display: inline-block;
    margin: 0 !important;
}


