/* ------------------------------------------------------------------------- */
/*                               Global Styles                               */
/* ------------------------------------------------------------------------- */

/* Dashboard */
.dashboard-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 12rem);
    margin: 0;
    overflow: hidden;
}

.embed-container {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Dashboard report tabs - Bootstrap-like nav-tabs styling */
#reportTabs {
    border-bottom: 1px solid #dee2e6;
}

#reportTabs .nav-link {
    margin-bottom: -1px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #495057;
    background: transparent;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

#reportTabs .nav-link:hover,
#reportTabs .nav-link:focus {
    color: #0d6efd;
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
}

#reportTabs .nav-link.active,
#reportTabs .nav-item.show .nav-link {
    color: #212529;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    box-shadow: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-body-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


/* Add Red * for Required Field in form-group */
.form-group.required .control-label:after {
    content: " *";
    color: #d9534f;
    font-weight: bold;
    font-size: 1rem;
}

/* ----------------------------------------------
 * Generated by Animista on 2019-7-26 10:25:1
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-right
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}


.slide-in-right {
    -webkit-animation: slide-in-right 0.75s both;
    animation: slide-in-right 0.75s both;
}

/* ------------------------------------------------------------------------- */
/*                        No-Report & Error Styles                           */
/* ------------------------------------------------------------------------- */

.no-report-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f2f4f7;
}

.no-report-content {
    text-align: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.no-report-icon {
    max-width: 100px;
    margin-bottom: 20px;
}

.no-report-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-report-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.no-report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.retry-button,
.home-button {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s;
}

.retry-button {
    background-color: #d9534f;
}

.retry-button:hover {
    background-color: #c9302c;
}

.home-button {
    background-color: #007bff;
}

.home-button:hover {
    background-color: #0056b3;
}

.error-card {
    background-color: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-icon {
    font-size: 48px;
    color: #d9534f;
    margin-bottom: 15px;
}

.error-message h3 {
    margin-top: 0;
    font-size: 24px;
    color: #d9534f;
}

.error-message p {
    font-size: 16px;
    color: #333;
}

/* ------------------------------------------------------------------------- */
/*                              Layout Overrides                             */
/* ------------------------------------------------------------------------- */

html,
body {
    height: 100%;
}

body,
#root,
#root > .App,
.main-content {
    min-height: 100vh;
}

#root > .App,
.main-content {
    display: flex;
    flex-direction: column;
}

/* Let flexbox control footer placement; prevents extra gap under footer. */
.main-content .content-inner {
    flex: 1 0 auto;
    min-height: auto;
    padding: 1rem 2rem;
}

.main-content .footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Restore breadcrumb breathing room. */
nav[aria-label="breadcrumb"] .breadcrumb {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.25rem;
}

@media (max-width: 767.98px) {
    .main-content .content-inner {
        padding: 0.75rem 1rem;
    }
}

/* Settings dashboard chart/table sizing safeguards */
.settings-activity-chart-wrap {
    position: relative;
    height: 320px;
}

.settings-top-users-wrap {
    max-height: 368px;
    overflow-y: auto;
}
