/**
 * Dashboard Page Styles
 * Extracted from pages/dashboard.html inline <style>
 */

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #de0c15 0%, #a00a11 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.welcome-content {
    flex: 1;
}

.welcome-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.welcome-card p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* News Banner */
.news-banner {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.news-icon-wrapper {
    background: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(222, 12, 21, 0.3);
}

.news-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.news-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.news-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-banner {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .news-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .news-icon {
        width: 20px;
        height: 20px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-header h3 {
        font-size: 1.1rem;
    }
    
    .news-content p {
        font-size: 0.875rem;
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.dashboard-grid .card-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
}

.card-full-width {
    grid-column: 1 / -1;
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: auto;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* Roles Container */
.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Groups List */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: auto;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: transparent;
    border-radius: 5px;
    transition: background 0.15s;
    font-size: 0.8125rem;
}

.group-item:hover {
    background: var(--bg-tertiary);
}

/* Devices List (same style as Groups) */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: auto;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: transparent;
    border-radius: 5px;
    transition: background 0.15s;
    font-size: 0.8125rem;
}

.device-item:hover {
    background: var(--bg-tertiary);
}

/* Button Styles */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-card h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
