/* =========================================
   GENERAL CONTAINER
========================================= */
.tlv5-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* =========================================
   BREADCRUMB
========================================= */
.tlv5-breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
}
.tlv5-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

/* =========================================
   TOOL TITLE
========================================= */
.tlv5-tool-title {
    font-size: 28px;
    margin-bottom: 10px;
}
.tlv5-tool-desc {
    font-size: 15px;
    margin-bottom: 25px;
    color: #555;
}

/* =========================================
   TOOL INPUT AREA
========================================= */
#tlv5-tool-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccd4e0;
    font-size: 18px;
    min-height: 200px;
    outline: none;
}
#tlv5-tool-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* =========================================
   BUTTONS
========================================= */
.tlv5-tool-box button {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 15px;
    color: white;
}

#tlv5-run-tool {
    background:#1a73e8;
}
#tlv5-run-tool:hover {
    background:#155fc7;
}

#tlv5-clear-tool {
    background:#444 !important;
}
#tlv5-clear-tool:hover {
    background:#222 !important;
}

/* Extra Case Buttons */
.case-buttons {
    display:flex;
    gap:10px;
    margin:20px 0;
}
.case-btn {
    padding:8px 18px;
    border:1px solid #1a73e8;
    background:#e7f0ff;
    border-radius:6px;
    cursor:pointer;
}

/* =========================================
   RESULT BOX
========================================= */
#tlv5-tool-results,
.tlv5-result-box {
    margin-top: 20px;
    padding: 20px;
    background: #f7faff;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    font-size: 15px;
}

/* =========================================
   HOMEPAGE SEARCH BAR
========================================= */
.tlv5-search-box {
    margin: 20px auto 35px;
    max-width: 540px;
    position: relative;
}

#tlv5-tool-search {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border-radius: 10px;
    border: 1px solid #cfd8e3;
    font-size: 16px;
    outline: none;
    background: #fff;
}

#toolDropdownBtn {
    position: absolute;
    right: 15px;
    top: 14px;
    font-size: 18px;
    cursor: pointer;
    color: #1a73e8;
}

/* Dropdown List */
#toolsDropdownList {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-top: 8px;
    padding: 10px 0;
}
#toolsDropdownList a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
}
#toolsDropdownList a:last-child {
    border-bottom: none;
}
#toolsDropdownList a:hover {
    background: #eef4ff;
}

/* =========================================
   HOMEPAGE GRID (TOOLS LIST)
========================================= */
.tlv5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
}

.tlv5-card {
    padding: 25px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e9f2;
    text-align: center;
    text-decoration: none;
    transition: .2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.tlv5-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.tool-card-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

/* =========================================
   FOOTER
========================================= */
.tlv5-footer {
    margin-top: 60px;
    background:#f8fafc;
    padding: 30px 0;
    border-top:1px solid #e5e7eb;
}
.tlv5-footer-inner {
    max-width:1100px;
    margin:auto;
    padding:0 20px;
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}
.tlv5-footer-col h4 {
    margin-bottom:10px;
    font-size:16px;
    color:#111827;
}
.tlv5-footer-col a {
    color:#1a73e8;
    text-decoration:none;
}
.tlv5-footer-col a:hover {
    text-decoration:underline;
}
.grade {
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 4px;
}

/* Colors */
.grade-a-plus,
.grade-a {
    background: #28a745;
    color: #fff;
}
.grade-b {
    background: #ffc107;
    color: #000;
}
.grade-c,
.grade-d,
.grade-f {
    background: #dc3545;
    color: #fff;
}

.status-ready {
    color: #28a745;
    font-weight: 600;
}
.status-error,
.status-unreachable {
    color: #dc3545;
    font-weight: 600;
}
/* SSL Checker Stylish UI */
.tlv5-output-box div {
    margin-bottom: 6px;
    font-size: 15px;
}

.grade {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}

/* SSL Grade Colors */
.grade-a-plus, .grade-a {
    background: #28a745;
    color: #fff;
}
.grade-b {
    background: #ffc107;
    color: #000;
}
.grade-c, .grade-d, .grade-f {
    background: #dc3545;
    color: #fff;
}

/* Status Colors */
.status-ready {
    color: #28a745;
}
.status-error,
.status-unknown,
.status-in_progress {
    color: #dc3545;
}
#tlv5-tool-results {
    padding: 15px 20px;
    background: #f8fbff;
    border-radius: 10px;
    border: 1px solid #e1eaf5;
}
/* STATUS Color */
.status-ready {
    color: #28a745;
    font-weight: 600;
}
.status-error,
.status-unknown,
.status-in_progress {
    color: #dc3545;
    font-weight: 600;
}

/* SSL Grade Tag */
.grade {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    margin-left: 5px;
}

/* Grade Colors */
.grade-a-plus, .grade-a {
    background: #28a745;
    color: #fff;
}
.grade-b {
    background: #ffc107;
    color: #000;
}
.grade-c,
.grade-d,
.grade-f {
    background: #dc3545;
    color: #fff;
}
.grade-not {
    background: #6c757d;
    color: #fff;
}
/* STATUS BADGES */
.status-badge {
    font-weight: bold;
    padding: 3px 8px;
    color: #fff;
    border-radius: 4px;
}
.status-ready {
    background: #28a745;
}
.status-pending, .status-running {
    background: #ffc107;
    color: #000;
}
.status-failed, .status-error, .status-unknown {
    background: #dc3545;
}

/* SSL GRADE BADGES */
.grade-badge {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
}
.grade-a {
    background: #4CAF50;
    color: #fff;
}
.grade-aplus {
    background: #007bff;
    color: #fff;
}
.grade-b {
    background: #ff9800;
    color: #fff;
}
.grade-c, .grade-d, .grade-e {
    background: #ff5722;
    color: #fff;
}
.grade-f {
    background: #d32f2f;
    color: #fff;
}
.grade-not, .grade-undefined {
    background: #9e9e9e;
    color: #fff;
}
/* STATUS BADGES */
.status-badge {
    padding:4px 10px;
    border-radius:20px;
    font-weight:600;
    font-size:13px;
    color:#fff;
}

.ready { background:#28a745; }     /* GREEN */
.in_progress, .processing { background:#ff9800; } /* ORANGE */
.failed, .error { background:#dc3545; }  /* RED */
.unknown { background:#6c757d; }  /* GRAY */

/* GRADE BADGES */
.grade-badge {
    padding:4px 10px;
    border-radius:20px;
    font-weight:600;
    font-size:13px;
    color:#fff;
}

.grade-a, .grade-aplus { background:#2ecc71; }
.grade-b { background:#f1c40f; }
.grade-c { background:#e67e22; }
.grade-d { background:#e74c3c; }
.grade-f { background:#c0392b; }

/* LOADER */
.tlv5-scanning {
    padding:10px;
    font-size:13px;
    color:#444;
}

.dotdotdot::after {
    content:'...';
    animation: dots 1s steps(3,end) infinite;
}

@keyframes dots {
    0% {content:'';}
    33% {content:'.';}
    66% {content:'..';}
    100% {content:'...';}
}
/* ============================
   SSL Badges (Option-B)
============================ */
.status-badge,
.grade-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    margin-left: 5px;
}

/* STATUS COLORS */
.status-ready       { background: #28a745; } /* Green */
.status-in_progress { background: #ffc107; color:#000; } /* Yellow */
.status-starting    { background: #17a2b8; } /* Blue info */
.status-error       { background: #dc3545; } /* Red */

/* GRADE COLORS */
.grade-a            { background: #008b00; }  /* Dark green */
.grade-a           { background: #00a500; }
.grade-aplus       { background: #004d00; }  /* A+ special dark */
.grade-b           { background: #007bff; }  /* Blue */
.grade-c           { background: #fd7e14; }  /* Orange */
.grade-d           { background: #ff4d4d; }  /* Light red */
.grade-e,
.grade-f           { background: #b30000; }  /* Dark red */
.grade-m,
.grade-t           { background: #6c757d; }  /* Grey pending */
.grade-not         { background: #6c757d; }  /* Not available */

/* Accessibility Snapshot layout */
.tlv5-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tlv5-access-grid .tlv5-metric {
    background: #f8fbff;
    border: 1px solid #e1ecff;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
}

.tlv5-access-grid .label {
    display: block;
    color: #777;
    margin-bottom: 3px;
}

.tlv5-access-grid .value {
    font-weight: 600;
}

.tlv5-access-grid .value.good {
    color: #0a8a3f;
}

.tlv5-access-grid .value.warn {
    color: #e69500;
}

.tlv5-access-grid .value.bad {
    color: #d93025;
}

.tlv5-access-notes {
    margin-top: 12px;
    padding-left: 18px;
    font-size: 13px;
    color: #555;
}
.tlv5-dropdown-btn {
    cursor: pointer;
    background: #e8e8e8;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 4px;
}

.tlv5-dropdown-list a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}
.tlv5-dropdown-list a:hover {
    background: #007aff;
    color: #fff;
}
/* Homepage search / dropdown */
.tlv5-search-box {
    max-width: 540px;
    margin: 0 auto 30px;
}

.tlv5-search-box #tlv5-tool-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.tlv5-dropdown-btn {
    min-width: 44px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #1a73e8;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.tlv5-dropdown-list a {
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    color: #222;
}

.tlv5-dropdown-list a:hover {
    background: #f5f5f5;
}
/* Dropdown Arrow Button Styling */
.tlv5-dropdown-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b64e0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.tlv5-dropdown-btn:hover {
    background: #094fb5;
}

.tlv5-dropdown-btn:focus {
    outline: none;
}

/* Dropdown list styling */
.tlv5-dropdown-list {
    display: none;
    background: #fff;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.tlv5-dropdown-list a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #222;
    font-size: 15px;
}

.tlv5-dropdown-list a:hover {
    background: #f2f6ff;
}

.tlv5-dropdown-list a:last-child {
    border-bottom: none;
}
/* Dropdown Arrow Button - Professional Style */
.tlv5-dropdown-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #007bff;
    background: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    color: #007bff;
}

.tlv5-dropdown-btn:hover {
    background: #e7f0ff;
}

/* Rotate when active */
.tlv5-dropdown-btn.active {
    transform: rotate(180deg);
    background: #007bff;
    color: white;
}
.tlv5-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}

.tlv5-table th {
    background: #1a73e8;
    color: #fff;
    padding: 10px;
}

.tlv5-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.tlv5-final-url {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}
#tlv5-search-results {
    background: #fff;
    border: 1px solid #ddd;
    margin-top: 5px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.tlv5-search-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.tlv5-search-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.tlv5-search-item:hover {
    background: #f5f5f5;
}
.tlv5-coming-soon-box {
    padding: 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    color: #555;
    text-align: center;
    margin-top: 15px;
    border-radius: 6px;
}
.tlv5-coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.tlv5-coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}
/* ================================
   FINAL COMPACT TOOL CARD UI
   Master-approved sizing
================================ */

.tlv5-grid {
    gap: 16px;
}

.tlv5-card {
    padding: 14px;
    min-height: 220px;
    border-radius: 12px;
}

.tlv5-card a {
    padding: 0;
}

/* Icon */
.tlv5-icon img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

/* Title */
.tlv5-title {
    font-size: 15px;
    margin: 8px 0 4px;
    line-height: 1.3;
}

/* Description */
.tlv5-desc {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

/* Coming Soon Badge */
.tlv5-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
}
.tlv5-maintenance-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.tlv5-maintenance-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.tlv5-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tlv5-tool-card {
    display: block;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    color: #111827;
    background: #fff;
    transition: all 0.2s ease;
}

.tlv5-tool-card:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
}
.tlv-tool-card {
    display:block;
    padding:15px 20px;
    border:1px solid #ddd;
    border-radius:8px;
    text-decoration:none;
    color:#000;
    min-width:180px;
    text-align:center;
    transition:0.2s;
}

.tlv-tool-card:hover {
    background:#f5f7fa;
}

