/* Material Icons Font */

.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/* Custom Effects */
.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hover-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.hover-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

/* Animation Effects */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Module Expand/Collapse */
.app-header {
    cursor: pointer;
}

.model-list {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.model-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.app-icon .material-icons-round {
    transition: transform 0.3s ease;
}

.app-icon.rotated .material-icons-round {
    transform: rotate(180deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* New badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(79, 70, 229, 0.8));
}

.gradient-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
}

.gradient-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
}

.gradient-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
}

.gradient-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(6, 182, 212, 0.8));
}

/* Floating action button */
.fab {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Dark mode improvements */
.dark .hover-card {
    background-color: rgba(30, 41, 59, 0.3);
}

.dark .hover-card:hover {
    background-color: rgba(30, 41, 59, 0.5);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.3);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
.header-section {
    background: var(--primary-50);
    border: 1px solid var(--base-200);
    padding: 1rem;
    margin-bottom: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--base-50);
    border: 1px solid var(--base-200);
    padding: 1rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}

/* Apps Section */
.apps-section {
    background: var(--base-50);
    border: 1px solid var(--base-200);
    padding: 1rem;
}

.app-card {
    margin-bottom: 1rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-list {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
}

.model-list.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--base-200);
}

.model-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--base-900);
    text-decoration: none;
}

.action-button {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 4px;
    background: var(--primary-50);
    color: var(--primary-600);
}

/* Charts Section */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.chart-card {
    background: var(--base-50);
    border: 1px solid var(--base-200);
    padding: 1rem;
}

/* Timeline */
.timeline-card {
    background: var(--base-50);
    border: 1px solid var(--base-200);
    padding: 1rem;
}

.timeline-content {
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--base-200);
}

.activity-icon {
    background: var(--primary-50);
    padding: 0.5rem;
    border-radius: 50%;
}

.activity-details {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}