/* ============================================
   WELLCANN LAYOUT CSS
   Header/nav, grid, containers, sticky positioning, notification bell
   Extracted from existing inline styles
   ============================================ */

/* ===== HEADER ===== */
.header {
    background: var(--gradient, linear-gradient(135deg, #4a8165, #7cb342));
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.1));
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ===== USER SECTION / NAV ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.notification-bell:hover {
    background: rgba(255,255,255,0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--alert-red, #e53e3e);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

/* ===== CONTAINERS ===== */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark, #2d5a47);
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    grid-column: 1 / -1;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    color: var(--primary-dark, #2d5a47);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

/* ===== URGENT NOTIFICATIONS BAR ===== */
.urgent-bar {
    background: linear-gradient(90deg, #e53e3e, #ff6b6b);
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
}

.urgent-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    white-space: nowrap;
    transition: all 0.2s;
}

.urgent-item:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== ALERT BANNER ===== */
.alert-banner {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-bottom: 3px solid #e53e3e;
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
}

.alert-banner.visible {
    display: flex;
}

.alert-icon {
    font-size: 1.5rem;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.alert-message {
    flex: 1;
    color: #991b1b;
}

/* ===== QUICK ACTIONS (FAB) ===== */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

.quick-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient, linear-gradient(135deg, #4a8165, #7cb342));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.1));
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover, 0 8px 24px rgba(0,0,0,0.15));
}

.ai-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== AI SUGGESTIONS ===== */
.ai-suggestions {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--card-radius, 15px);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-icon { font-size: 2rem; }
.ai-text strong { display: block; margin-bottom: 0.25rem; }
.ai-text p { opacity: 0.9; font-size: 0.95rem; }

/* ===== DASHBOARD PLACARDS ===== */
.dashboard-placard {
    background: white;
    border-radius: var(--card-radius, 15px);
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.1));
    border-left: 4px solid var(--primary, #4a8165);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.dashboard-placard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover, 0 8px 24px rgba(0,0,0,0.15));
}

.placard-accent {
    height: 4px;
    background: var(--gradient, linear-gradient(135deg, #4a8165, #7cb342));
    width: 100%;
}

.placard-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.placard-icon { font-size: 2.5rem; }

.placard-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary, #4a8165);
}

.placard-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.placard-subtitle {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.placard-hover-action {
    background: var(--gradient, linear-gradient(135deg, #4a8165, #7cb342));
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    transform: translateY(10px);
}

.dashboard-placard:hover .placard-hover-action {
    opacity: 1;
    transform: translateY(0);
}

.stage-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient, linear-gradient(135deg, #4a8165, #7cb342));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== SUB-LINK PILLS ===== */
.sub-link-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 0.75rem;
}

.sub-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f0f7f3;
    color: var(--primary, #4a8165);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--primary, #4a8165);
    cursor: pointer;
    transition: all 0.2s;
}

.sub-pill:hover {
    background: var(--primary, #4a8165);
    color: white;
    transform: translateY(-1px);
}

/* ===== ROLE-BASED VISIBILITY ===== */
.governance-only { display: block; }
body.role-reception .governance-only { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 1rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { bottom: 1rem; right: 1rem; }
    .stats { grid-template-columns: 1fr 1fr; }
}

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