body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #161625;
    color: #ffffff;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: #2a2a3a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #4285F4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

#google-sign-in {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    width: 200px;
}

#google-sign-in:hover {
    background-color: #357ae8;
}

.dashboard-page {
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header .logo {
    max-height: 50px;
}

.customer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#region-select {
    padding: 5px 10px;
    font-size: 16px;
    background-color: #2c2c3a;
    color: #ffffff;
    border: 1px solid #4285F4;
}

#customer-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.customer-row {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.customer-row.header {
    background-color: #4285F4;
    color: white;
    font-weight: bold;
}

.customer-summary {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 1fr;
    align-items: center;
    padding: 15px;
}

.customer-summary span {
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-details {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #4285F4;
}

.expand-btn, .view-details-btn, #refresh-data, #sign-out {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.customer-row.header .expand-btn {
    visibility: hidden;
}

.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #1e1e30;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #4285F4;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
}

.modal-content h2 {
    color: #4285F4;
    border-bottom: 2px solid #4285F4;
    padding-bottom: 10px;
}

.modal-content h3 {
    color: #4285F4;
    margin-top: 20px;
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.modal-content strong {
    font-weight: bold;
    color: #4285F4;
}

.modal-content pre {
    background-color: #2c2c3a;
    border: 1px solid #4285F4;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ffffff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

a {
    color: #4285F4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #4285F4;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px 4px 0 0;
}

.tab-btn.active {
    background-color: #4285F4;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.customer-details p {
    margin: 10px 0;
    line-height: 1.5;
    font-weight: normal;
}

/* Loading indicator styles */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285F4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: white;
    margin-top: 10px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1001;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.warning {
    background-color: #FFC107;
}

.notification.error {
    background-color: #F44336;
}

.subtab-container {
    display: flex;
    border-bottom: 1px solid #4285F4;
    margin-bottom: 15px;
}

.subtab-btn {
    background-color: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px 4px 0 0;
}

.subtab-btn.active {
    background-color: #4285F4;
}

.subtab-content {
    padding: 15px 0;
}

.subtab-pane {
    display: none;
}

.subtab-pane.active {
    display: block;
}

.tab-pane pre {
    background-color: #2c2c3a;
    border: 1px solid #4285F4;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ffffff;
}

.subtab-pane pre {
    background-color: #2c2c3a;
    border: 1px solid #4285F4;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ffffff;
    margin-top: 5px;
}

.provider-details {
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.project-id {
    margin-top: 20px;
    margin-bottom: 10px;
}

.project-id-label {
    color: #4285F4;
}

.project-id-value {
    color: white;
}

.permissions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.permissions-table th,
.permissions-table td {
    border: 1px solid #4285F4;
    padding: 8px;
    text-align: left;
}

.permissions-table th {
    background-color: #4285F4;
    color: white;
}

.permissions-table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.permissions-table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.permissions-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.permissions-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.permissions-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.permissions-table td:last-child {
    white-space: pre-line;
    line-height: 1.5;
}
