/* Main styles for bus tracker */
:root {
    /* Map to Chota CSS variables for consistent color scheme */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-grey);
    --success-color: var(--color-success);
    --danger-color: var(--color-error);
    --light-gray: var(--bg-secondary-color);
    --border-color: var(--color-lightGrey);
}

body {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--bg-color);
    color: var(--font-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

header {
    text-align: left;
    margin-bottom: 2rem;
}

header h1 {
    margin-bottom: 0.25rem;
    color: var(--font-color);
}


section {
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}



optgroup {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: var(--grid-gutter);
    text-align: left;
    border-spacing: 0;
    border-color: var(--color-primary);
}

td {
    padding: 0 1em;
    vertical-align: middle;
}

tr td:first-child {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
}

tr td:nth-child(2) {
    border-right: none;
}

tr td:last-child {
    border-left: none;
    text-align: center;
    font-size: calc(var(--font-size) * 1.5);
    position: relative;
}

h4 {
    margin: 0;
}


.remove-btn {
    display: none;
    background: #ccc;
    color: #666;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

tr.active .remove-btn {
    display: block;
}

#no-subscriptions-message {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem;
    font-style: italic;
}


/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }


    td {
        padding: 1rem;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}