marginpadd.nowcast-tabs {
    margin: 0;
}

.nowcast-tabs-nav {
    display: flex;
    border-bottom: 2px solid #004b87;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.nowcast-tab {
    padding: 12px 36px;
    background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-bottom: 1px solid #004b87;
    margin-right: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
    position: relative;
    top: 1px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 -2px 3px -2px rgba(0,0,0,0.1);
}

.nowcast-tab:hover {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    color: #004b87;
}

.nowcast-tab.active {
    background: white;
    color: #004b87;
    font-weight: bold;
    border: 1px solid #004b87;
    border-bottom: 2px solid white;
    margin-bottom: -1px;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    padding-bottom: 13px; /* Compensate for border-bottom change */
}

.nowcast-tab-content {
    display: none;
    border: 1px solid #004b87;
    border-top: none;
    background-color: white;
    position: relative;
    z-index: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nowcast-tab-content.active {
    display: block;
}

.nowcast-tab-content table {
    width: 100%;
}

/* Remove default list styling */
.nowcast-tabs-nav li {
    list-style: none;
    margin: 0;
    padding: 8px 12px 0px 12px;
}

/* First tab styling */
.nowcast-tabs-nav li:first-child .nowcast-tab {
    margin-left: 0;
}

/* Last tab styling */
.nowcast-tabs-nav li:last-child .nowcast-tab {
    margin-right: 0;
}

/* Active tab connection to content */
.nowcast-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -1px;
    right: -1px;
    height: 2px;
    background: white;
    z-index: 3;
}

/* Tab focus state for accessibility */
.nowcast-tab:focus {
    outline: 2px solid #004b87;
    outline-offset: 2px;
}

/* For links in GIS tab */
.link-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 15px;
}