/* ===============================
   COMMON - Design Tokens & Reset
   Style Guide: DLSU / Canvas Academic Theme
================================ */

:root {
    /* [2. COLOR PALETTE] */
    --primary-action: #006b3d;       /* DLSU Green */
    --primary-hover:  #00522e;
    --nav-bg:         #003d23;       /* Dark DLSU Green */
    
    --text-primary:   #2D3B45;       /* Charcoal Grey */
    --text-muted:     #677682;       /* Light Grey */
    
    --border-color:   #C7CDD1;       /* Standard Canvas Grey */
    --bg-main:        #FFFFFF;       /* Pure White */
    --bg-body:        #f5f6f7;       /* Very light grey for dashboard body */
    
    --success:        #006b3d;
    --danger:         #EE0612;       /* Canvas Red */
    
    /* [1. GENERAL PRINCIPLES] */
    --radius-std:     4px;           /* Minimal rounding */
    --spacing-std:    20px;
    --spacing-wide:   2rem;          /* Spacious breathing room */
    
    --font-stack:     'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
}

html, body {
    height: 100%;
    width: 100%;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Toast / notification */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--radius-std);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.toast.success { background-color: var(--success); }
.toast.error   { background-color: var(--danger); }
.toast.info    { background-color: #3498db; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-close {
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
}

/* Shared Layout Containers */
.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Expertise chip picker (multi-select without scrolling list) */
.expertise-picker-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expertise-picker-toolbar {
    display: block;
}

.expertise-picker-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-std);
    font-size: 0.85rem;
    background: #fff;
    color: #2D3B45;
}

.expertise-picker-search:focus {
    outline: none;
    border-color: var(--primary-action);
    box-shadow: 0 0 0 2px rgba(0, 107, 61, 0.12);
}

.expertise-picker-chips.expertise-picker {
    min-height: 120px;
    max-height: none;
}

.expertise-picker-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.expertise-picker-page-info {
    font-size: 0.78rem;
    color: #677682;
    font-weight: 500;
}

.expertise-picker-page-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    color: #374151;
}

.expertise-picker-page-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.expertise-picker-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.expertise-picker {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-std);
    background: #fff;
    min-height: 48px;
}

.expertise-chip {
    border: 1px solid #9bb2a6;
    background: #f8fbf9;
    color: #1f3a2f;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s ease;
}

.expertise-chip:hover {
    border-color: var(--primary-action);
}

.expertise-chip.selected {
    background: var(--primary-action);
    border-color: var(--primary-action);
    color: #fff;
}

.expertise-chip.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.expertise-picker-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
}
