/* ==========================================================================
   OLINO WORKING BOARD - CUSTOM DESIGN SYSTEM (CSS)
   Theme: Warm Gold & Tea Green Dark Glassmorphism
   ========================================================================== */

:root {
    /* Olino Crepe & Tea Color System */
    --color-primary: #e5a93b;        /* Crepe Gold */
    --color-primary-hover: #f3be5d;
    --color-primary-rgb: 229, 169, 59;
    
    --color-secondary: #5c8d70;      /* Matcha Tea Green */
    --color-secondary-hover: #71a687;
    
    /* Standard Layout Colors */
    --color-bg-start: #0f131a;       /* Deep Charcoal */
    --color-bg-end: #171d18;         /* Deep Matcha Charcoal */
    
    --color-glass-bg: rgba(26, 33, 42, 0.65);
    --color-glass-card: rgba(32, 41, 52, 0.55);
    --color-glass-border: rgba(255, 255, 255, 0.07);
    --color-glass-border-glow: rgba(229, 169, 59, 0.25);
    --color-glass-highlight: rgba(255, 255, 255, 0.03);
    
    --color-text-main: #f0f4f8;
    --color-text-muted: #9ab0c5;
    
    /* Task Status Colors */
    --color-todo: #e67e22;           /* Orange */
    --color-progress: #3498db;       /* Blue */
    --color-review: #9b59b6;         /* Purple */
    --color-completed: #2ecc71;      /* Green */
    --color-danger: #e74c3c;         /* Red */
    
    /* Fonts */
    --font-display: 'Outfit', 'Sarabun', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    
    /* Layout Variables */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ================= Reset & Global ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
    background-attachment: fixed;
    color: var(--color-text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background glows */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    top: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--color-primary);
}

.glow-2 {
    bottom: 10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: var(--color-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ================= Typography & Controls ================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #d49527 100%);
    color: #0f131a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(229, 169, 59, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 20px rgba(229, 169, 59, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    border: 1px solid var(--color-glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: rgba(243, 156, 18, 0.25);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.25);
}

/* ================= Layout ================= */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 24px;
    box-shadow: var(--box-shadow-glow);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 169, 59, 0.15);
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-glass-border-glow);
}

.logo-text h1 {
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Custom Select Dropdown in Header */
.role-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-selector-wrapper label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.custom-select {
    position: relative;
}

.custom-select select {
    background: #1b222c;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding-right: 32px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select select:hover, .custom-select select:focus {
    border-color: var(--color-primary);
    background: #232c39;
    box-shadow: 0 0 10px rgba(229, 169, 59, 0.2);
}

.custom-select option {
    background: #161c24;
    color: #fff;
}

.custom-select::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #fff;
    pointer-events: none;
}

/* ================= Leader View Elements ================= */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    background: rgba(32, 41, 52, 0.85);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.stat-icon.icon-tasks { color: var(--color-primary); background: rgba(229, 169, 59, 0.1); }
.stat-icon.icon-pending { color: var(--color-review); background: rgba(155, 89, 182, 0.1); }
.stat-icon.icon-overdue { color: var(--color-danger); background: rgba(231, 76, 60, 0.1); }
.stat-icon.icon-completed { color: var(--color-completed); background: rgba(46, 204, 113, 0.1); }

.stat-content h3 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-content p {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
    margin-top: 4px;
}

.pulse-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--color-danger);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(231, 76, 60, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Tabs */
.leader-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1px;
    overflow-x: auto;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 12px 20px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.tab-badge {
    background: var(--color-danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Tab Panels */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Donut Chart Styling */
.chart-container {
    min-height: 250px;
}

.chart-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.custom-donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
}

.donut-ring {
    stroke: rgba(255,255,255,0.06);
}

.donut-segment {
    transition: stroke-dasharray 0.5s ease;
}

.donut-text {
    font-family: var(--font-display);
    fill: #fff;
    text-anchor: middle;
}

.donut-number {
    font-size: 6px;
    font-weight: 700;
}

.donut-label {
    font-size: 3px;
    fill: var(--color-text-muted);
    font-family: var(--font-body);
}

.chart-legends {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-todo { background: var(--color-todo); }
.legend-progress { background: var(--color-progress); }
.legend-review { background: var(--color-review); }
.legend-completed { background: var(--color-completed); }

.legend-label {
    color: var(--color-text-muted);
}

/* Member workload Progress bars */
.workload-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workload-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workload-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.workload-name {
    color: #fff;
    font-weight: 500;
}

.workload-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.workload-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s ease;
}

/* Urgent list */
.urgent-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.urgent-item {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    background: rgba(231, 76, 60, 0.05);
    border-left: 3px solid var(--color-danger);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.urgent-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.urgent-info h4 {
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.urgent-info span {
    color: var(--color-danger);
    font-size: 11px;
}

.empty-state-text {
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* Table Design */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
    min-width: 180px;
}

.search-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.filter-select {
    background: #1b222c;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--color-primary);
    background: #232c39;
    box-shadow: 0 0 8px rgba(229, 169, 59, 0.2);
}

.filter-select option {
    background: #161c24;
    color: #fff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.task-table, .member-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.task-table th, .member-table th {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--color-text-muted);
    font-weight: 500;
}

.task-table td, .member-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--color-text-main);
    vertical-align: middle;
}

.task-table tbody tr:hover, .member-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* User Chips */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-todo { background: rgba(230, 126, 34, 0.15); color: var(--color-todo); }
.badge-progress { background: rgba(52, 152, 219, 0.15); color: var(--color-progress); }
.badge-review { background: rgba(155, 89, 182, 0.15); color: var(--color-review); }
.badge-completed { background: rgba(46, 204, 113, 0.15); color: var(--color-completed); }
.badge-warning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }

/* File link buttons */
.file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.file-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.action-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.action-icon-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.action-icon-btn.delete:hover {
    color: var(--color-danger);
    background: rgba(231, 76, 60, 0.1);
}

/* ================= Team Management Layout ================= */
.team-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.flex-grow-card {
    grid-column: span 1;
}

/* Forms */
.standard-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.form-input {
    background: #1b222c;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--color-primary);
    background: #232c39;
    box-shadow: 0 0 8px rgba(229, 169, 59, 0.2);
}

.form-input option {
    background: #161c24;
    color: #fff;
}

.full-width-btn {
    margin-top: 10px;
}

/* ================= Member View Banner ================= */
.member-info-banner {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--box-shadow-glow);
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #0f131a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 4px 15px rgba(229,169,59,0.2);
}

.member-meta h2 {
    font-size: 18px;
    color: #fff;
}

.member-meta p {
    font-size: 12px;
    color: var(--color-text-muted);
}

.member-stats-mini {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    text-align: center;
    min-width: 100px;
}

.mini-stat span {
    font-size: 11px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 4px;
}

.mini-stat strong {
    font-size: 18px;
    font-family: var(--font-display);
    color: #fff;
}

/* ================= Olino Working Board (Kanban Layout) ================= */
.board-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.board-filter-header h2 {
    font-size: 16px;
    color: #fff;
}

.kanban-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 550px;
}

@media (max-width: 1024px) {
    .kanban-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kanban-wrapper {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: rgba(21, 27, 36, 0.5);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 500px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.column-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-add-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-text-muted);
    font-size: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.col-add-btn:hover {
    background: var(--color-primary);
    color: #0f131a;
}

.column-cards-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

/* Drag hover effect for columns */
.column-cards-container.drag-over {
    background: rgba(229, 169, 59, 0.04);
    outline: 2px dashed rgba(229, 169, 59, 0.3);
    border-radius: var(--border-radius-sm);
}

/* Kanban Cards */
.kanban-card {
    background: var(--color-glass-card);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    user-select: none;
    position: relative;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.15);
}

.kanban-card:active {
    cursor: grabbing;
}

/* Dragging state */
.kanban-card.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}

.card-title-row {
    margin-bottom: 8px;
}

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.card-desc-snippet {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    font-size: 11px;
}

.card-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--color-text-muted);
}

.card-dates .overdue {
    color: var(--color-danger);
    font-weight: 500;
}

.card-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-file-indicator {
    color: var(--color-primary);
    font-size: 14px;
    cursor: help;
}

.card-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.pending-banner {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    text-align: center;
    margin-bottom: 8px;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

/* ================= Approvals Items ================= */
.approvals-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.approval-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .approval-item-card {
        grid-template-columns: 1fr;
    }
}

.approval-details-col h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
}

.approval-details-col .meta-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 12px;
}

.tag-create { background: rgba(46, 204, 113, 0.15); color: var(--color-completed); }
.tag-edit { background: rgba(52, 152, 219, 0.15); color: var(--color-progress); }

.diff-comparison-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.diff-col h5 {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.diff-col p {
    line-height: 1.5;
}

.diff-col .changed {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
    padding: 2px 4px;
    border-radius: 2px;
}

.approval-actions-col {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 14px;
    color: var(--color-glass-border-glow);
}

.empty-state h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 12.5px;
}

.subtitle-text {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    margin-top: -14px;
}

/* ================= Modal Overlay & Box ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #161c24;
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
    font-size: 18px;
    color: #fff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #fff;
}

/* Form Styles inside Modal */
#task-form {
    padding: 20px 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.two-cols > .form-group {
    flex: 1;
}

.required {
    color: var(--color-danger);
}

.select-input, .textarea-input {
    width: 100%;
}

.textarea-input {
    resize: vertical;
}

/* Attachment Toggle Style */
.attachment-toggle-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 3px;
    margin-bottom: 10px;
}

.attach-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--border-radius-sm - 2px);
    transition: var(--transition-smooth);
}

.attach-tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-primary);
    font-weight: 500;
}

.attach-container {
    display: none;
}

.attach-container.active {
    display: block;
}

/* Drag drop area for files */
.file-drag-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.file-drag-zone:hover, .file-drag-zone.drag-active {
    border-color: var(--color-primary);
    background: rgba(229, 169, 59, 0.03);
}

.upload-icon {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.browse-text {
    color: var(--color-primary);
    text-decoration: underline;
}

.attached-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
}

.file-icon-type {
    font-size: 20px;
}

.file-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.file-name {
    color: #fff;
    font-weight: 500;
}

.file-size {
    color: var(--color-text-muted);
}

.remove-file-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.remove-file-btn:hover {
    color: var(--color-danger);
}

.modal-notice-banner {
    background: rgba(229, 169, 59, 0.08);
    border: 1px solid rgba(229, 169, 59, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--color-primary-hover);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}

/* ================= View Task Modal specific styles ================= */
.view-task-box {
    max-width: 500px;
}

.view-task-header-left {
    display: flex;
    gap: 8px;
}

.view-task-content {
    padding: 24px;
}

.view-task-content h1 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.view-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.15);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.03);
}

.view-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 11px;
    color: var(--color-text-muted);
}

.meta-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.view-task-section {
    margin-bottom: 20px;
}

.view-task-section h3 {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.view-description-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-main);
    white-space: pre-wrap;
    max-height: 180px;
    overflow-y: auto;
}

.attachment-display-card {
    background: rgba(229, 169, 59, 0.05);
    border: 1px solid rgba(229, 169, 59, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attachment-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.attachment-info-left .file-name {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================= Toast Notification ================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-primary);
    color: #0f131a;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-container.active {
    transform: translateX(-50%) translateY(0);
}
