* {
    box-sizing: border-box;
}

:root {
    /* Slate Based Dark Theme */
    --bg-main: #0f172a;
    /* Slate 950 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-input: #334155;
    /* Slate 700 */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 300 */
    --border: #334155;
    /* Slate 700 */

    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --danger: #ef4444;
    /* Red 500 */
    --success: #22c55e;
    /* Green 500 */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    margin-top: 0;
}

p,
span,
div {
    color: inherit;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn:hover {
    background: var(--bg-input);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Helper to align buttons with inputs */
.btn-align-input {
    padding: 0.6rem 0.6rem;
    /* Matches input padding */
    height: 100%;
    /* Ensure it fills space if needed */
}

.btn.small {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

/* Inputs & Form Elements */
input,
select,
textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem;
    border-radius: 0.375rem;
    outline: none;
    box-sizing: border-box;
    /* Ensures padding doesn't add to width */
}

input:focus,
select:focus {
    border-color: var(--primary);
}

/* Layouts */
.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem;
}

.auth-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

#auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.input-group {
    margin-bottom: 1rem;
}

.actions {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
}

.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .header-inner {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    cursor: pointer;
}

.nav-btn:hover {
    color: var(--text-main);
}

.nav-btn.active {
    color: var(--primary);
    font-weight: 600;
}

/* Main Content */
#main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view-section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Map */
#map-container {
    flex: 1;
    background: #000;
    /* Deep black for map contrast */
}

/* Unit Side Panel (Modern Floating Card) */
.side-panel {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 380px;
    background: rgba(30, 41, 59, 0.95);
    /* Slate 800 with transparency */
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

@media (max-width: 640px) {
    .side-panel {
        right: 0.5rem;
        left: 0.5rem;
        top: 0.5rem;
        bottom: 0.5rem;
        width: auto;
        padding: 1.5rem;
    }
}

.side-panel.hidden {
    display: block !important;
    /* Keep in DOM for animation */
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

.field-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.field-group:last-child {
    border-bottom: none;
}

.field-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 0.9rem;
}

.close-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-panel:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Modals */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Unit List Grid Layout */
#homes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
    width: 100%;
}

.home-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.home-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.home-item p {
    color: var(--text-muted);
}

/* Star Rating Component */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #fbbf24;
    /* Gold */
}

.star-rating label:active {
    transform: scale(0.9);
}

.display-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.display-stars.empty {
    color: var(--text-muted);
    opacity: 0.3;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.td-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

/* Mobile Table & Layout Refinements */
@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        background: var(--bg-card);
    }

    td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        padding-left: 50%;
        text-align: right;
        /* Force wrapping */
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
        display: block;
        /* Ensure block behavior */
    }

    td:before {
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary);
    }

    #users-table td:nth-of-type(1):before {
        content: "Identifier";
    }

    #users-table td:nth-of-type(2):before {
        content: "Role";
    }

    #users-table td:nth-of-type(3):before {
        content: "Unit";
    }

    #users-table td:nth-of-type(4):before {
        content: "Actions";
    }

    .td-actions {
        justify-content: flex-end;
    }

    #view-editor .container {
        padding: 1rem !important;
    }

    .dynamic-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dynamic-row>div {
        flex: none !important;
        width: 100% !important;
    }

    .btn-align-input {
        margin-top: 0.5rem;
    }

    .dashboard-summary {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }

    /* Unit History Log Mobile Styles - Vertical Stack for max space */
    #page-logs-table td {
        padding: 0.25rem 0.5rem !important;
        /* Minimal padding */
        text-align: center;
        /* Center text */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center flex items */
        font-size: 0.75rem;
        /* Smallest readable text */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Add top border to the first cell of each "row" group to separate logs */
    #page-logs-table td:nth-of-type(1) {
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
        padding-top: 0.5rem !important;
    }

    #page-logs-table td:before {
        position: static;
        width: 100%;
        padding: 0;
        margin-bottom: 0px;
        color: var(--primary);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: center;
        /* Center label */
    }

    /* Content Mapping */
    #page-logs-table td:nth-of-type(1):before {
        content: "Date";
    }

    #page-logs-table td:nth-of-type(2):before {
        content: "User";
    }

    #page-logs-table td:nth-of-type(3):before {
        content: "Action";
    }

    #page-logs-table td:nth-of-type(4):before {
        content: "Details";
    }

    #page-logs-table td:last-child {
        padding-left: 1rem;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 0.5rem);
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: all 0.2s;
    font-size: 0.95rem;
    position: relative;
    top: 2px;
    /* Pull down to overlay the border */
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.05);
    /* Subtle blue glow */
}

.tab-content {
    animation: fadeIn 0.3s ease-out;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Security Dashboard Styles */
.vertical-slider {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    box-sizing: border-box;
}

.vertical-slider::-webkit-scrollbar {
    width: 6px;
}

.vertical-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.sec-unit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sec-unit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateX(5px);
}

.sec-unit-card.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.sec-unit-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.sec-unit-card p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Security Layout */
.security-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 0px);
    overflow: hidden;
}

.security-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.security-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    overflow-y: auto;
    height: 100%;
}

.security-content {
    padding: 2rem;
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.security-welcome-card {
    text-align: center;
    margin-top: 5rem;
    opacity: 0.6;
}

.security-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.security-table-container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.security-table {
    width: 100%;
    border-collapse: collapse;
}

.security-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    text-align: left;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.security-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.security-global-feed {
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    padding: 1rem 1.5rem;
    max-height: 250px;
    overflow-y: auto;
}

/* Phone Specific Adjustments */
@media (max-width: 768px) {
    .security-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100vh;
    }

    .security-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 40vh;
    }

    .sec-unit-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .security-detail-top {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .security-main {
        height: auto;
        overflow-y: visible;
    }

    .security-global-feed {
        position: sticky;
        bottom: 0;
    }
}

.unoccupied-text {
    color: #94a3b8;
    /* Slate 400 */
    font-style: italic;
    font-weight: 400;
}

/* Minimalist Security Centered List */
.security-centered-view {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}

.security-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.security-unit-list-centered {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

.unit-card-simple {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.unit-card-simple:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.unit-card-simple h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.unit-card-simple p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Visitor Capture View Styles */
.security-capture-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}

.camera-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border);
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.guide-box {
    width: 80%;
    height: 60%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.3);
}

.photo-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photo-slot {
    aspect-ratio: 3 / 2;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s;
}

.photo-slot.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.slot-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capture-btn {
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.save-btn {
    padding: 1rem;
    font-size: 1.1rem;
}

/* Admin Visitor Log Photo Thumbnails */
.log-thumbs {
    display: flex;
    gap: 10px;
}

.log-thumb {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.log-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* Simple Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Star Rating */
.star-rating {
    font-size: 3rem;
    color: #cbd5e1;
    /* slate-300 */
    cursor: pointer;
    display: inline-block;
}

.star-rating span {
    transition: color 0.1s;
}

.star-rating span.active {
    color: #fbbf24;
    /* amber-400 */
}

/* Hover effects only within the rating block */
.star-rating:not(:has(span:active)) span:hover,
.star-rating:not(:has(span:active)) span:hover~span {
    /* This part is tricky in pure CSS for 'previous siblings'. JS is easier. */
}


/* Centered Mobile Layout */
.mobile-centered-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.mobile-centered-view .container {
    width: 100%;
    max-width: 400px;
    padding: 0;
    margin: 0;
}


/* Mobile Table & Layout Refinements */
@media (max-width: 768px) {

    /* Force smaller padding on mobile card */
    .mobile-centered-view .auth-box {
        padding: 1.5rem !important;
        width: 100%;
        box-sizing: border-box;
    }

    .star-rating label {
        font-size: 13vw;
        /* 13% of screen width per star */
        line-height: 1;
    }

    .star-rating {
        justify-content: center;
        margin: 0 auto;
        width: 100%;
        gap: 1vw;
    }
}