/* Azure Billing Automation - Site Styles */

:root {
    --primary-color: #0078d4;
    --secondary-color: #50e6ff;
    --success-color: #107c10;
    --warning-color: #ffb900;
    --danger-color: #d13438;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a {
    margin-left: 1.5rem;
    text-decoration: none;
}

.card {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* DevExpress Grid Customization */
.dxbl-grid {
    font-size: 0.9rem;
}

/* Filter Type Button Styles */
.filter-type-container {
    width: 100%;
}

.filter-type-button {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #0078d4;
    color: white;
    flex-shrink: 0;
}

.filter-type-button:hover {
    background-color: #106ebe;
}

/* Dashboard Cards */
.card.text-white {
    border: none;
}

.card.bg-primary { background-color: var(--primary-color) !important; }
.card.bg-success { background-color: var(--success-color) !important; }
.card.bg-warning { background-color: var(--warning-color) !important; }
.card.bg-info { background-color: var(--secondary-color) !important; }

/* Navigation */
.nav-item {
    font-size: 0.9rem;
}

.nav-item a {
    color: white;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }
}
