/* Thief Designer Plugin Styles */

/* Make all tables in the plugin use the same font size */
.thiefdesigner table,
.thiefdesigner td,
.thiefdesigner th,
.thiefdesigner_skillset table,
.thiefdesigner_skill_list table,
.thiefdesigner_points table {
    font-size: 8pt;
    line-height: 1.2;
}

/* Consistent padding */
.thiefdesigner_skillset td,
.thiefdesigner_skill_list td,
.thiefdesigner_points td {
    padding: 0 3px;
    margin: 0;
}

/* For checkboxes and input fields */
.thiefdesigner input[type="checkbox"],
.thiefdesigner input[type="text"] {
    font-size: 8pt;
    margin: 0;
    padding: 0 2px;
}

/* Header with Configure button */
.thiefdesigner_header {
    margin-bottom: 15px;
    padding: 8px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}

.thiefdesigner_title {
    float: left;
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
}

.thiefdesigner_configure {
    float: right;
}

.thiefdesigner_configure_button {
    display: inline-block;
    padding: 5px 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
}

.thiefdesigner_configure_button:hover {
    text-decoration: none;
}

/* Configuration missing message */
.thiefdesigner_config_missing {
    padding: 15px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}

.thiefdesigner_config_missing h3 {
    margin-top: 0;
}

.thiefdesigner_sample {
    margin-top: 20px;
    padding: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}

.thiefdesigner_sample h4 {
    margin-top: 0;
}

.thiefdesigner_sample pre {
    padding: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    overflow-x: auto;
}

.thiefdesigner .error {
    padding: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}

.thiefdesigner .button {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    text-decoration: none;
}

/* Modal Dialog Styles - Updated with solid background */
.thiefdesigner_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Semi-transparent overlay */
}

.thiefdesigner_modal_content {
    position: relative;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: thiefdesigner_fadein 0.3s;
    background: var(--background, #fff); /* Use theme variable if available, fallback to white */
}

@keyframes thiefdesigner_fadein {
    from {opacity: 0}
    to {opacity: 1}
}

.thiefdesigner_modal_header {
    padding: 10px 16px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    background: var(--background, #fff); /* Use theme variable if available, fallback to white */
}

.thiefdesigner_modal_header h3 {
    margin: 0;
    padding: 0;
}

.thiefdesigner_modal_body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--background, #fff); /* Use theme variable if available, fallback to white */
}

.thiefdesigner_modal_close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Make the study list table inherit site styles */
.thiefdesigner_modal_body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.thiefdesigner_modal_body th,
.thiefdesigner_modal_body td {
    padding: 5px;
    text-align: left;
    border-width: 1px;
    border-style: solid;
}
