/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Card Style */
.dash-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.dash-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.dash-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Widget 1: Status */
.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.status-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #111;
    color: #444;
}

.status-circle.done {
    border-color: #2ecc71;
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.btn-action {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.2s;
}

.btn-action:hover {
    filter: brightness(1.2);
}

/* Widget 2: Bio-Wetter */
.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    font-size: 3rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.weather-desc {
    color: #888;
    margin-top: 5px;
}

.weather-details {
    text-align: right;
    font-size: 0.9rem;
    color: #aaa;
}

.pressure-pill {
    background: #333;
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 5px;
    display: inline-block;
}

/* Widget 3: Medikamente */
.meds-next-highlight {
    background: rgba(0, 119, 182, 0.2); /* Accent opacity */
    border-left: 4px solid var(--accent);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.meds-next-label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.meds-next-value {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.meds-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.meds-list li {
    padding: 6px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.meds-list li:last-child {
    border-bottom: none;
}

/* Info Boxes (New KPI Style) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 1rem;
}

.info-box {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid #333;
    transition: transform 0.2s;
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.info-box .icon {
    font-size: 2.5rem;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-box .content {
    display: flex;
    flex-direction: column;
}

.info-box .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.info-box label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific Colors */
.box-entries .icon { color: #3498db; background: rgba(52, 152, 219, 0.1); }
.box-mood .icon { color: #f1c40f; background: rgba(241, 196, 15, 0.1); }
.box-stress .icon { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.box-sleep .icon { color: #9b59b6; background: rgba(155, 89, 182, 0.1); }


/* Info Cards (Expanded Info Box style for larger widgets) */
.info-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 0 1rem;
    margin-top: 30px;
}

.info-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid #333;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.info-card h2 {
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.info-card .import-stats table {
    width: 100%;
    color: #ccc;
    font-size: 0.9rem;
}

.info-card .import-stats td {
    padding: 4px 0;
}
