/* RoutiGo Support Tools - Shared Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #DDDDDD;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
}

/* Background */
.background-white { position: fixed; width: 100%; height: 100%; background-color: #fff; }
.background-circle { box-sizing: border-box; position: fixed; aspect-ratio: 1/1; border-radius: 50%; }
.background-circle.yellow-circle-top-right { width: 72vw; top: -36vw; right: -42vw; opacity: .16; border: 8.6vw solid #ffda92; }
.background-circle.blue-circle-bottom-left { width: 50vw; bottom: -20vw; left: -25vw; opacity: .12; border: 7vw solid #7cbcf1; }

/* Main layout */
.mainbox { position: relative; width: 100%; min-height: 100vh; text-align: center; padding-bottom: 40px; }

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}
.logo-bar { display: inline-block; background: #FFFFFF; padding: 8px 12px; border-radius: 8px; }
.logo-bar svg { display: block; height: 42px; width: auto; }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-user {
    font-size: 10pt;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
}

/* Page navigation */
.page-nav {
    display: flex;
    gap: 4px;
    padding: 0 24px 8px 24px;
    border-bottom: 1px solid #E8F0FE;
    margin-bottom: 4px;
}
.page-nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    color: #2F96F3;
    text-decoration: none;
    border: 1.5px solid transparent;
}
.page-nav-link:hover { background: #E8F5FF; border-color: #CFE8FF; }
.page-nav-link.active { background: #2F96F3; color: #fff; border-color: #2F96F3; }

/* Typography */
.titletext { font-size: 20pt; font-family: Arial, Helvetica, sans-serif; color: #2F96F3; }
.subtitletext { font-size: 12pt; font-family: Arial, Helvetica, sans-serif; color: #000000; }
.section-subtitle { font-family: Arial, Helvetica, sans-serif; color: #2F96F3; font-size: 13pt; margin: 8px 0; }

/* Inputs */
.inputtext {
    border: 2px solid #2F96F3;
    border-radius: 10px;
    width: 260px;
    padding: 6px 10px;
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
}
.selectinput {
    border: 2px solid #2F96F3;
    border-radius: 10px;
    width: 260px;
    padding: 6px 10px;
    font-size: 10pt;
    background: #fff;
}

/* Buttons */
.custombutton {
    border: 2px solid #2F96F3;
    border-radius: 10px;
    padding: 10px 18px;
    background: #2F96F3;
    color: #fff;
    font-size: 12pt;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}
.custombutton:hover { background: #1b7ed6; }
.custombutton.compact {
    padding: 6px 12px;
    font-size: 10pt;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.toggle-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E6F2FF;
    color: #2F96F3;
    font-weight: bold;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

/* Sections */
.section {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #CFE8FF;
}
.row { margin: 6px 0; }
label {
    display: inline-block;
    width: 220px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    color: #000;
}
.line { display: block; margin: 10px auto; width: 90%; height: 1px; background: #2F96F3; }

/* Domain input section */
.domain-input-section {
    max-width: 600px;
    margin: 15px auto;
}

/* Geocoding bar */
.geocode-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}
.geocode-result {
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
    margin: 4px 0 8px 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0f9f0;
}

/* Service centre details list */
.sc-details {
    margin: 8px 0;
    border: 1px solid #CFE8FF;
    border-radius: 8px;
    overflow: hidden;
}
.sc-summary {
    padding: 10px 14px;
    cursor: pointer;
    background: #F7FBFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sc-summary::-webkit-details-marker { display: none; }
.sc-details[open] .sc-summary { border-bottom: 1px solid #CFE8FF; }
.sc-summary::before {
    content: '\25B6';
    font-size: 9pt;
    color: #2F96F3;
    transition: transform 0.2s;
}
.sc-details[open] .sc-summary::before { transform: rotate(90deg); }
.sc-code {
    font-size: 9pt;
    color: #888;
    background: #F0F0F0;
    padding: 2px 8px;
    border-radius: 4px;
}
.sc-content { padding: 10px 14px; }
.sc-section { margin-bottom: 12px; }
.sc-section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: 700;
    color: #2F96F3;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #E8F0FE;
}
.sc-table { font-size: 10pt; font-family: Arial, Helvetica, sans-serif; }
.sc-table td { padding: 2px 10px 2px 0; }
.sc-label { color: #666; font-weight: 600; min-width: 120px; }

/* Phase progress */
.phase-item {
    padding: 6px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
}

/* Login box */
.login-box {
    background: #fff;
    width: 400px;
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.btn-container { text-align: center; }

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1001;
}
.resultbox {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 92vw);
    max-height: 80vh;
    overflow: auto;
    background: #ffffff;
    border: 2px solid #CFE8FF;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.25), 0 8px 16px rgba(0,0,0,0.15);
    padding: 18px 22px 22px 22px;
    z-index: 1002;
    text-align: left;
}
.resultbox h4 {
    margin: 0 28px 10px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #2F96F3;
    font-size: 14pt;
}
.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #2F96F3;
    color: #2F96F3;
    background: #fff;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}
.modal-actions { margin-top: 12px; text-align: right; }

/* SC modal specific */
.sc-modal {
    max-width: 700px;
}

/* Buttons in modals */
.btn-small {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 10px;
    font-size: 10pt;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #2F96F3;
    font-family: Arial, Helvetica, sans-serif;
}
.btn-primary { background: #2F96F3; color: #fff; }
.btn-secondary { background: #fff; color: #2F96F3; }
.btn-small.btn-primary:hover { background: #1b7ed6; }

/* Loader */
.loader {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    z-index: 1100;
}
.loading {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #2F96F3;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
}
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
