/* ============================================================
   toolbox-global.css
   Shared styles for all JWBIZ toolbox tool pages
   ============================================================ */

/* Page title */
h1 {
    margin: 40px auto 30px;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

h2 {
    margin: 1rem 0 1rem;
    font-size: 1.2rem;
    color: #cbd5e1;
    text-align: left;
}

/* Outer dark section — standard width */
.tool-section {
    max-width: 480px;
    margin: 0 auto 300px;
    padding: 15px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

.tool-section-multi {
    max-width: 480px;
    margin: 0 auto 40px;
    padding: 15px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

/* Wide variant for text-heavy tools */
.tool-section-wide {
    max-width: 640px;
    margin: 0 auto 300px;
    padding: 15px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

/* Medium variant */
.tool-section-mid {
    max-width: 520px;
    margin: 0 auto 300px;
    padding: 15px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

/* Intro paragraph */
.tool-section p,
.tool-section-wide p,
.tool-section-mid p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

ul.bullet-tb
{     font-size: 0.9rem;
    color: #cbd5e1;

    font-weight : 400;
    line-height : 25px;
    list-style : none;
    margin : -10px 0 25px 22px;
    padding : 0 0 0px 5px;
}

ul.bullet-tb li
{ padding : 5px;
}

ul.bullet-tb li:before
{ color : #cbd5e1;
    content : '\25cf';
    display : block;
    font-size : 30px;
    font-weight : 600;
    height : 0;
    left : 10px;
    line-height : 0;
    margin : 0 0 0 -35px;
    padding : 0;
    position : relative;
    top : 10px;
    width : 0;
}

/* Warning text e.g. "use a smartphone" */
strong.warning {
    color: #fca5a5;
}

/* Inner white container */
.tool-container {
    background: #fff;
    margin-bottom: 20px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    text-align: center;
}

/* Left-aligned container variant */
.tool-container-left {
    background: #fff;
    margin-bottom: 20px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    text-align: left;
}

/* Buttons */
button.tool-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.4rem auto;
    border: none;
    border-radius: 8px;
    background-color: #2d3f52;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.tool-btn:hover {
    background-color: #9b3d99;
}

button.tool-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Label above inputs or textareas */
.tool-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3f52;
    margin-bottom: 0.4rem;
    display: block;
    text-align: left;
}

/* Standard text/number input */
input.tool-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.2rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.8rem;
}

input.tool-input:focus {
    border-color: #9b3d99;
}

/* Textarea */
textarea.tool-area {
    width: 100%;
    min-height: 160px;
    padding: 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s;
    margin-bottom: 0.8rem;
}

textarea.tool-area:focus {
    border-color: #9b3d99;
}

textarea.tool-area[readonly] {
    background: #f8f9fa;
}

/* Word / character count line */
.tool-stats {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.8rem;
    text-align: right;
}

/* Result display area */
.tool-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: center;
    display: none;
}

/* Large result value */
.tool-result-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3f52;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
}

/* Sub-text beneath result */
.tool-result-sub {
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* Meta info (e.g. IP location details) */
.tool-meta {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 1rem;
}

.tool-meta span {
    display: block;
}

/* Shared table */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
}

.tool-table tr:nth-child(even) {
    background: #f0f0f0;
}

.tool-table td {
    padding: 8px 10px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.tool-table td:first-child {
    font-weight: 600;
    color: #2d3f52;
    width: 55%;
}

.tool-table tr:last-child td {
    border-bottom: none;
}

/* Left-border tip box */
.tool-tip {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #333;
    background: #fff;
    border-left: 3px solid #2d3f52;
    padding: 0.6rem 0.8rem;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
    text-align: left;
}

/* Checkbox options group */
.tool-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tool-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
}

.tool-options input[type="checkbox"] {
    accent-color: #2d3f52;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Feedback messages */
.error {
    color: #d00;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.success {
    color: green;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Loading indicator */
.loading {
    color: #333;
    font-size: 1rem;
}

.tcs-bar {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #1e2d3d;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-top: 40px;  /* Just print */
    margin-bottom: 1.5rem;
    border: 1px solid #2d3f52;
}

.tcs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.tcs-select {
    flex: 1;
    min-width: 140px;
    padding: .5rem .75rem;
    font-size: .875rem;
    border: 1px solid #3a4f63;
    border-radius: 7px;
    background: #2d3f52;
    color: #e0eaf4;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}

.tcs-select:focus {
    border-color: #90cff0;
}

.tcs-name-input {
    flex: 1;
    min-width: 120px;
    padding: .5rem .75rem;
    font-size: .875rem;
    border: 1px solid #3a4f63;
    border-radius: 7px;
    background: #2d3f52;
    color: #e0eaf4;
    outline: none;
    transition: border-color .15s;
}

.tcs-name-input::placeholder {
    color: #6b7a8a;
}

.tcs-name-input:focus {
    border-color: #90cff0;
}

.tcs-btn {
    padding: .5rem .9rem;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

.tcs-btn--save {
    background: #2a6496;
    color: #fff;
    border-color: #2a6496;
}

.tcs-btn--save:hover {
    background: #1e4d73;
    border-color: #1e4d73;
}

.tcs-btn--load {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
}

.tcs-btn--load:hover {
    background: #1e4d38;
    border-color: #1e4d38;
}

.tcs-btn--del {
    background: transparent;
    color: #e07070;
    border-color: #5a3030;
}

.tcs-btn--del:hover {
    background: #5a3030;
    color: #fff;
    border-color: #5a3030;
}

.tcs-btn--print {
    background: #3d2d6a;
    color: #fff;
    border-color: #3d2d6a;
}

.tcs-btn--print:hover {
    background: #2a1e4d;
    border-color: #2a1e4d;
}

.tcs-msg {
    font-size: .8rem;
    min-height: 1.2em;
    color: transparent;
    transition: color .15s;
}

.tcs-msg--ok   { color: #7ecba1; }
.tcs-msg--warn { color: #f0b429; }

@media (max-width: 560px) {
    .tcs-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .tcs-select,
    .tcs-name-input,
    .tcs-btn {
        width: 100%;
    }
}