/* ==========================================================================
   1. GENERAL DASHBOARD STYLES (HEADER & TOP CARDS)
   ========================================================================== */
.dashboard-wrapper {
    display: block;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header .subtitle {
    color: var(--text-muted);
    font-size: 11pt;
}

.datetime-badge {
    background-color: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 9.5pt;
    font-weight: 500;
}

.datetime-badge .date {
    margin-right: 12px;
    color: var(--text-main);
}

.datetime-badge .time {
    color: var(--text-muted);
}

/* Obere 4 Kacheln */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stats-card {
    padding: 24px;
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 20pt;
    margin-right: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.02);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:8px;

    width:100%;

}

.stat-label {
    font-size: 10pt;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24pt;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 9pt;
    font-weight: 600;
}
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-online { color: var(--success); }
.trend-online .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 4px;
}

/* ==========================================================================
   2. GLOBALE APPS-SICHERUNG (STANDARD FÜR ALL DEINE UNTERSEITEN)
   ========================================================================== */
/* Verhindert, dass irgendwo in der App die umschließenden Boxen verschwinden */
.quick-access-section, 
.activities-section {
    background-color: rgba(21, 31, 50, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.tool-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Standardaussehen der Cards im Docking Rechner / Part Tracker */
.tool-card {
    padding: 16px;
}

.tool-card h4 {
    font-size: 13pt;
    font-weight: 600;
    color: var(--text-main);
    margin: 16px 0 8px 0;
}

.tool-card p {
    font-size: 9.5pt;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.tool-card.disabled {
    opacity: 0.5;
}

.activity-item{
    display:flex;
    align-items:center;
    gap:16px;
    padding:16px;
    margin-bottom:14px;
}

.activity-item:hover{
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.16),
        rgba(255,255,255,.08)
    );
    border-color: rgba(255,255,255,.18);
}

/* ==========================================================================
   3. ISOLIERTER DASHBOARD LOOK (GILT *NUR* WENN HTML DATA-ATTRIBUTE PASST!)
   ========================================================================== */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 24px;
}

/* Entfernt den umschließenden grauen Kasten NUR auf dem Haupt-Dashboard */
.quick-access-section,
.activities-section {
    display: flex;
    flex-direction: column;
}

.tool-cards-grid,
.activity-list {
    margin-top: 20px;
}

.quick-access-section h3,
.section-header h3 {
    margin-bottom: 24px;
}

/* Aktiviert das 2x2 Raster NUR auf dem Haupt-Dashboard */
.dashboard-content-grid[data-page="main-dashboard"] .tool-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 24px !important;
    margin-top: 16px;
}

/* Macht die Kacheln zu großen Glaselementen NUR auf dem Haupt-Dashboard */
.dashboard-content-grid[data-page="main-dashboard"] .tool-cards-grid .tool-card {
    padding: 32px 28px !important;
    min-height: 240px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.dashboard-content-grid[data-page="main-dashboard"] .tool-card.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Verwandelt die Aktivitäten in vereinzelte Kacheln NUR auf dem Haupt-Dashboard */
.dashboard-content-grid[data-page="main-dashboard"] .activity-list .activity-item {
    display: flex !important;
    align-items: center !important;
    padding: 18px 20px !important;
}


/* ==========================================================================
   4. EXTRA ACTIVITIY METADATA (GLOBAL VALID)
   ========================================================================== */
.activity-icon{
    width:46px;
    height:46px;
    font-size:20px;
    flex-shrink:0;
}

.activity-details {
    flex-grow: 1;
}

.activity-details h5 {
    font-size: 10pt;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.activity-details p {
    font-size: 9pt;
    color: var(--text-muted);
}

.activity-time {
    font-size: 8.5pt;
    color: var(--text-muted);
}