/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000 !important;
    color: #ffffff;
}

/* Page Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #ffffff;
}

.page-content {
    max-width: 1400px;
}

/* Buttons */
.btn-primary {
    background-color: #3d8bfd;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0052a3;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #999999;
    text-transform: uppercase;
}

.summary-card .amount {
    font-size: 2rem;
    font-weight: bold;
    color: #3d8bfd;
    margin: 0;
}

.summary-card .usage {
    font-size: 1.1rem;
    color: #999999;
    margin: 0.5rem 0 0 0;
}

/* Data Sections */
.data-section {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.data-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.chart-section {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #ffffff;
}

/* Placeholder Content */
.placeholder-content {
    padding: 2rem;
    background-color: #0d0d0d;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
    color: #999999;
}

.placeholder-content ul {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
}

/* Alert Summary */
.alert-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.alert-count {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    border-left: 4px solid;
}

.alert-count.critical {
    border-left-color: #dc3545;
}

.alert-count.high {
    border-left-color: #ffc107;
}

.alert-count.medium {
    border-left-color: #17a2b8;
}

.alert-count .count {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.alert-count .label {
    display: block;
    font-size: 1rem;
    color: #999999;
    text-transform: uppercase;
}

/* Info Box */
.info-box {
    background: rgba(23, 162, 184, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.info-box h3 {
    margin-top: 0;
    color: #17a2b8;
}

.info-box ul {
    margin-bottom: 0;
    color: #ffffff;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .data-section, .chart-section {
        padding: 1rem;
    }
}

/* Telerik DropDownList Dark Theme Fixes */
/* Fix dropdown popup items with proper contrast */
.k-popup.k-list-container,
.k-animation-container > .k-popup,
.k-list-container .k-list {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.k-list-item,
.k-list-optionlabel {
    color: #ffffff !important;
    background-color: #1a1a1a !important;
}

.k-list-item:hover,
.k-list-item.k-hover {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.k-list-item.k-selected,
.k-list-item.k-focus.k-selected {
    background-color: #3d8bfd !important;
    color: #ffffff !important;
}

.k-list-item.k-focus {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

/* Ensure dropdown popup is visible */
.k-animation-container {
    z-index: 10000 !important;
}

