﻿:root {
    --app-bg: #f5f7fb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 16px;
}

html, body {
    background: var(--app-bg);
    color: var(--text-main);
}

.app-page {
    padding: 12px;
    padding-bottom: 90px;
}

.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.app-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.app-form-row {
    margin-bottom: 12px;
}

    .app-form-row label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 5px;
    }

.app-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .app-action-row .btn {
        min-height: 40px;
        border-radius: 12px;
    }

.app-primary-btn {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 600;
}

.app-task-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 14px;
    margin-bottom: 12px;
}

.app-task-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    background: #eef2ff;
    color: #3730a3;
}

.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

    .app-bottom-nav a {
        text-decoration: none;
        color: #6b7280;
        font-size: 12px;
        text-align: center;
        min-width: 56px;
    }

        .app-bottom-nav a.active {
            color: var(--primary);
            font-weight: 700;
        }

.app-fab {
    position: fixed;
    right: 18px;
    bottom: 82px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    z-index: 1000;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .app-page {
        padding: 22px;
        padding-bottom: 22px;
    }

    .app-page-title {
        font-size: 26px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-bottom-nav,
    .app-fab {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

@media (min-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.app-mode-tabs {
    display: flex;
    background: #e5e7eb;
    padding: 4px;
    border-radius: 999px;
    margin-bottom: 14px;
}

    .app-mode-tabs button {
        flex: 1;
        border: none;
        background: transparent;
        border-radius: 999px;
        padding: 10px;
        font-weight: 600;
        color: #6b7280;
    }

        .app-mode-tabs button.active {
            background: #ffffff;
            color: #2563eb;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
        }

.app-sticky-save {
    position: sticky;
    bottom: 72px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    z-index: 50;
}

@media (min-width: 768px) {
    .app-sticky-save {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }
}
.app-task-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

    .app-task-header .app-muted {
        color: rgba(255, 255, 255, 0.82);
    }

.app-task-header-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.app-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.app-section-title {
    font-size: 16px;
    font-weight: 700;
}

.app-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-info-box {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
}

.app-info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.app-info-value {
    font-size: 14px;
    font-weight: 700;
}

.app-timeline-item {
    border-left: 3px solid #dbeafe;
    padding-left: 12px;
    margin-bottom: 14px;
}

.app-comment-box {
    background: #f9fafb;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
}

.app-check-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
}

.app-check-subitem {
    margin-left: 16px;
    border-left: 3px solid #e5e7eb;
    padding-left: 10px;
}

.app-status-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

    .app-status-actions button {
        min-height: 42px;
        border-radius: 12px;
        font-weight: 600;
    }

@media (min-width: 768px) {
    .app-status-actions {
        display: flex;
        flex-wrap: wrap;
    }

        .app-status-actions button {
            min-width: 130px;
        }
}
.app-reminder-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-reminder-time {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.app-reminder-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.app-reminder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

    .app-reminder-actions .btn {
        min-height: 42px;
        border-radius: 12px;
        font-weight: 600;
    }

.app-segment {
    display: flex;
    background: #e5e7eb;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
}

    .app-segment button {
        flex: 1;
        min-width: 90px;
        border: none;
        background: transparent;
        border-radius: 999px;
        padding: 9px 10px;
        font-size: 13px;
        font-weight: 700;
        color: #6b7280;
    }

        .app-segment button.active {
            background: #ffffff;
            color: #2563eb;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
        }

.app-empty-state {
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}
.app-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

    .app-contact-actions .btn {
        min-height: 42px;
        border-radius: 12px;
        font-weight: 600;
    }
.app-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.app-search-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-search-input {
    min-height: 48px;
    border-radius: 14px;
    font-size: 16px;
}

.app-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.app-filter-chip {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

    .app-filter-chip.active {
        background: #2563eb;
        color: #ffffff;
        border-color: #2563eb;
    }

.app-recent-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    margin: 4px;
    border: none;
}
.app-dashboard-hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.app-dashboard-hero-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.app-dashboard-hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.app-dashboard-stat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-dashboard-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.app-dashboard-stat-value {
    font-size: 26px;
    font-weight: 800;
}

.app-dashboard-stat.danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.app-dashboard-stat.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.app-dashboard-stat.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.app-quick-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-quick-action {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    min-height: 82px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-quick-action-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.app-quick-action-title {
    font-weight: 800;
    font-size: 14px;
}

.app-quick-action-subtitle {
    color: var(--text-muted);
    font-size: 12px;
}

.app-dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px 0;
}

.app-dashboard-section-title {
    font-size: 17px;
    font-weight: 800;
}
.app-org-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-org-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.app-org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.app-member-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
}

.app-member-name {
    font-size: 15px;
    font-weight: 800;
}

.app-member-email {
    font-size: 13px;
    color: var(--text-muted);
}

.app-role-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.app-role-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.app-role-member {
    background: #f3f4f6;
    color: #374151;
}
.app-setting-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-setting-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.app-setting-description {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.app-template-box {
    font-family: Consolas, monospace;
    font-size: 13px;
    min-height: 110px;
}

.app-placeholder-chip {
    display: inline-flex;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    margin: 3px;
}
.app-dashboard-stat {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .app-dashboard-stat:active {
        transform: scale(0.98);
    }
.app-kanban-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.app-kanban-tab {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

    .app-kanban-tab.active {
        background: #2563eb;
        color: #ffffff;
        border-color: #2563eb;
    }

.app-kanban-column {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    min-height: 180px;
}

.app-kanban-column-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-kanban-count {
    background: #e5e7eb;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
}

.app-kanban-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 992px) {
    .app-kanban-board {
        grid-template-columns: repeat(5, 1fr);
        align-items: start;
    }
}
.app-user-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.app-user-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.app-user-email {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}

.app-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.app-user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 767px) {
    .app-user-actions {
        grid-template-columns: 1fr;
    }
}
.app-sync-toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 78px;
    z-index: 9999;
    background: #111827;
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

@media (min-width: 768px) {
    .app-sync-toast {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 360px;
    }
}
.app-card.border-danger,
.app-card.border-warning,
.app-card.border-primary {
    cursor: pointer;
}

    .app-card.border-danger:active,
    .app-card.border-warning:active,
    .app-card.border-primary:active {
        transform: scale(0.99);
    }