body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    background-color: #f4f4f4;
}

main {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; 
    max-width: 60%;
}

@media (max-width: 600px) { 
    main {
        max-width: 95%;
        overflow:visible;
    }
    body {
        margin-top: 0;
    }
} 

h1 {
    color: #57A284;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-heading {
font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    text-align: left;
    margin-bottom: 1.5rem;
}
.button-container, .info-container, .api-container {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.app-button, .assume-role {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #1c2833;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
    min-width: 150px;   
    align-self: flex-end;
}

.app-button:hover, .assume-role:hover {
    background-color: #6B8E6B;
}

.button-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.app-button::after, .assume-role::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: wrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    max-width: 260px;
    width: 260px;
}

.app-button:hover::after, .assume-role:hover::after {
    opacity: 1;
    visibility: visible;
}

#logout-button, .deactivate {
    padding: 8px 16px;
    background-color: #c65555;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.deactivate {
    padding: 4px 8px;
}

#logout-button:hover, .deactivate:hover {
    background-color: #843636;
}

.user-data-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-right: 15px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

.form-group input[type=text],
#client-secret,
#request-body {
    width: 90%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-actions button {
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.green-button {
    background-color: #57A284;
    color: white;
    border: 1px solid #57A284;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.green-button:hover,
.green-button:disabled {
    background-color: white;
    color:#57A284;
    border: 1px solid #57A284;
}

.toggleShowActive-button{
    font-weight: bold;
    padding: 6px;
}

.loading{
    cursor: wait !important;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }

    .form-group {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.loading{
    max-width: 100px;
}


.api-container {
    display: block;
    text-align: left;
    color: #666;
}
.api-name {
    font-weight: bold;
    width: 100px;
    display: inline-block;
}
#api-table {
    font-size: smaller;
}

.tableFooter{
    width: 100%;
    object-fit: fill;
    opacity: .25;
    
}

.icon{
    height: 18px;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
}

.badge{
    border:1px #3f3f3f solid;
    border-radius: 5px;
    background-color: #ebebeb;
    padding: 6px 3px;
    margin: 0 3px;
}

.resource-dropdown {
    position: absolute;
    right: 50px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    min-width: 150px;
}

.resource-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
}

.resource-item:hover {
    background-color: #f0f0f0;
}

.resource-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}


.gridjs-td[colStyle="no-padding"] {
   padding: 2px;
}

.gridjs-td[colStyle="center"],
.gridjs-td[colStyle2="center"]
{
    text-align: center;
}

.quota-value{
    max-width: 40%;
}

.button-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}



.create-button {
    align-self: flex-start;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
    min-width: 150px;
}


/* assume role popup styles */
#assume-role-dialog {
    .separator {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 20px 0;

        .line {
            flex-grow: 1;
            height: 1px;
            background-color: #000;
        }

        .or-text {
            padding: 0 10px;
            font-weight: bold;
        }
    }

    .form-group {
        margin-bottom: 15px;
    }

    label {
        display: block;
        margin-bottom: 5px;
    }  
}

.resourceSelect{
    width: 100%;
}

/*styles for the inactivity popup dialog */
.ui-dialog {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.ui-dialog-titlebar {
    background-color: #57A284;
    color: white;
    border: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px 20px;
}

.ui-dialog-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.ui-dialog-content {
    padding: 20px;
    color: #333;
}

.ui-dialog-buttonpane {
    border-top: 1px solid #eee;
    padding: 10px 20px;
    text-align: right;
}

.ui-dialog-buttonset button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #c65555;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.ui-dialog-buttonset button:hover {
    background-color: #843636;
    color: white;
    border: none;
    font-weight: bold;
}

.ui-dialog-buttonset button:last-child {
    background-color: #57A284;
}

.ui-dialog-buttonset button:last-child:hover {


    background-color: white;
    color: #57A284;
    border: 1px solid #57A284;
}

#timer {
    font-weight: bold;
}