* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #212121;
    overflow-x: hidden;
}

.app-bar {
    background: linear-gradient(135deg, #566879 0%, #566879 100%);
    color: white;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 480px) {
    .app-bar {
        padding: 10px 12px;
        font-size: 16px;
    }
}

#page-container {
    padding: 12px 8px 70px 8px;
    min-height: calc(100vh - 120px);
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    #page-container {
        padding: 8px 4px 70px 4px;
    }
}

.page {
    animation: fade 0.3s ease-in-out;
}

.hidden {
    display: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    display: flex;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 101;
}

.bottom-nav button {
    flex: 1;
    border: none;
    background: none;
    font-size: 11px;
    color: #616161;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    min-height: 56px;
}

@media (max-width: 480px) {
    .bottom-nav button {
        font-size: 10px;
        min-height: 56px;
    }
}

.bottom-nav button:hover {
    color: #566879; 
    background: rgba(98, 0, 238, 0.04);
}

.bottom-nav button.active {
    color: #566879;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan {
    margin: 8px 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.plan table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
    min-width: 300px;
    table-layout: auto;
}

.plan th,
.plan td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    /* allow wrapping when content is longer than a single line */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    vertical-align: top;
}

@media (max-width: 480px) {

    .plan th,
    .plan td {
        padding: 8px 10px;
        font-size: 12px;
    }
}
.plan th {
    background: linear-gradient(135deg, #566879 0%, #566879 100%);
    color: white;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 10;
}

@media (max-width: 480px) {
    .plan th {
        font-size: 11px;
    }
}

.plan tbody tr {
    transition: background-color 0.2s ease;
}

.plan tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.plan tbody tr:hover {
    background-color: #f3e5f5;
}

.plan tbody td {
    font-size: 14px;
    color: #424242;
}

.plan thead tr th:first-child,
.plan tbody tr td:first-child {
    /*width: 80px;*/
    min-width: 70px;
    word-break: break-all;
    font-weight: 500;
}

.plan td:nth-child(2) {
    min-width: 40px;
    /* or 20% or max-width/min-width */
}

.plan td:nth-child(3) {
    min-width: 40%;
    /* or 20% or max-width/min-width */
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .plan tbody td {
        font-size: 12px;
    }

    .plan thead tr th:first-child,
    .plan tbody tr td:first-child {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .plan tbody td {
        font-size: 11px;
        color: #424242;
    }

    .plan thead tr th:first-child,
    .plan tbody tr td:first-child {
        min-width: 55px;
    }

    .plan tbody tr:hover {
        background-color: transparent;
    }
}

@media (min-width: 1200px) {
    .plan table {
        font-size: 15px;
    }

    .plan th,
    .plan td {
        padding: 14px 18px;
    }
}

/* Material Design elevation utilities */
.elevation-1 {
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.elevation-2 {
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
  /* Info block */
  .block {
    box-shadow: 0 6px 1px rgba(31,41,55,0.06);
    border: 10px solid rgba(15,23,42,0.04);
    min-width: 100%;
    min-height: 4px;
  }

