/* ravin_task/public/css/app.css */
/* ravin_task/public/css/app.css */
@font-face {
    font-family: 'BKOODAK';
    src: url('fonts/BKOODB.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BKOODAKB';
    src: url('fonts/BKOODB.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --accent: #ff1e00;
    --primary: #e30613;
    --orange: #ff9f43;
    --green: #1cc88a;
    --blue: #4880ff;
    --purple: #a05aff;
    --text: #1f1f1f;
    --muted: #8c8c8c;
    --border: #e6e6e6;
    --bg: #f5f7fb;
    --card: #ffffff;
    --shadow: 0 15px 45px rgba(20, 20, 20, 0.08);
}

* {
    box-sizing: border-box;
    font-family: BKOODAKB , Arial, sans-serif;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.dashboard-body {
    min-height: 100vh;
}

/* Top bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #b20000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-text strong {
    display: block;
    font-size: 16px;
}

.logo-text span {
    font-size: 12px;
    opacity: 0.8;
}

.icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.17);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
}

/* nav */
.top-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.top-nav-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.top-nav-btn.active,
.top-nav-btn:hover {
    background: #fff;
    color: #b20000;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 220px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml,%3Csvg fill="%23999" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10.5 3a7.5 7.5 0 0 1 6.046 12.006l3.724 3.724a1.5 1.5 0 0 1-2.122 2.122l-3.724-3.724A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z"/%3E%3C/svg%3E') no-repeat center;
    transform: translateY(-50%);
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.profile-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-badge strong {
    display: block;
    font-size: 13px;
}

.profile-badge span {
    font-size: 11px;
    opacity: 0.9;
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

.profile-dropdown {
    position: absolute;
    top: 58px;
    left: 0;
    background: #fff;
    color: #000;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    min-width: 160px;
    padding: 8px 0;
}

.profile-dropdown.show {
    display: flex;
}

.profile-dropdown button {
    border: none;
    background: transparent;
    padding: 10px 16px;
    text-align: right;
    width: 100%;
    cursor: pointer;
    font-size: 13px;
}

.profile-dropdown button:hover {
    background: #f4f4f4;
}

/* layout */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 32px 48px;
}

.sidebar {
    flex: 0 0 280px;
    width: 280px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 110px;
    align-self: flex-start;
    overflow: hidden;
    transition: flex-basis 0.35s ease, padding 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

@media (min-width: 1101px) {
    body:not(.sidebar-open) .sidebar {
        flex-basis: 0;
        width: 0;
        padding: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-32px);
        pointer-events: none;
    }
}

.sidebar.open {
    transform: translateX(0);
}

.workspace-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 24px;
}

.workspace-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.workspace-head strong {
    display: block;
    font-size: 15px;
}

.workspace-head span {
    font-size: 12px;
    color: var(--muted);
}

.switch-workspace {
    width: 100%;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    background: #fafafa;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
}

.sidebar-section + .sidebar-section {
    margin-top: 32px;
}

.sidebar-title {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
}

.menu-item {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.menu-item.active {
    color: var(--accent);
    font-weight: 600;
}

.menu-item .menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f1f1;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero {
    background: var(--card);
    border-radius: 24px;
    padding: 24px 32px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-label {
    margin: 0;
    color: var(--muted);
}

.hero h1 {
    margin: 6px 0 0;
    font-size: 24px;
}

.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 15px 30px rgba(255, 30, 0, 0.25);
}

.secondary-btn {
    background: #f1f1f1;
    color: var(--text);
}

/* stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card[data-hover]:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    font-size: 28px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.stat-card.purple .stat-icon { background: linear-gradient(135deg, #ffd6ff, #dfa2ff); }
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #d6e5ff, #a3c5ff); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #ffe4c2, #ffbb73); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #d1f8e5, #8fe3c1); }

.stat-card.purple strong { color: #8a45ff; }
.stat-card.blue strong { color: #1f7bff; }
.stat-card.orange strong { color: #ff7a00; }
.stat-card.green strong { color: #0fa66d; }

/* collaborators */
.collaborators,
.projects,
.board {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px 28px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 18px;
}

.link-btn {
    border: none;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
}

.avatar-row {
    display: flex;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.pink { background: #ff7bb0; }
.avatar.yellow { background: #ffc65a; color: #704600; }
.avatar.lilac { background: #c090ff; }
.avatar.sky { background: #54b0ff; }
.avatar.online { border: 3px solid #1cc88a; }

/* board */
.board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.board-column {
    border-radius: 18px;
    padding: 20px;
    background: #fffaf9;
    border: 1px solid #ffe2e2;
}

.board-column.green {
    background: #f5fffa;
    border-color: #d6ffe9;
}

.column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-head p {
    margin: 0;
    font-weight: 600;
}

.badge {
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 11px;
    display: inline-block;
}

.badge.red { background: #ffe0e0; color: #d10c0c; }
.badge.green { background: #d8ffec; color: #0f8b47; }
.badge.blue { background: #dce9ff; color: #1f4fb8; }
.badge.orange { background: #ffe9d6; color: #b65700; }

.task-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.task-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.task-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.assignee {
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.assignee.pink { background: #ff5e86; }
.assignee.yellow { background: #ffc84d; color: #6b4c00; }
.assignee.lilac { background: #b78eff; }
.assignee.sky { background: #6cb1ff; }
.assignee.online { background: #1cc88a; }

/* projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.project-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.project-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    margin: 14px 0;
    height: 8px;
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--orange));
}

/* modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(22, 22, 22, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 20;
}

.modal.open {
    display: flex;
}

.modal-dialog {
    width: min(640px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px 28px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    background: #f1f1f1;
}

.modal-head h3 {
    margin: 4px 0 0;
}

.modal-body p {
    margin: 12px 0 16px;
    color: var(--text);
    line-height: 1.8;
}

.modal-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    margin-bottom: 18px;
}

.modal textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    font-size: 13px;
    resize: vertical;
}

.modal-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* responsive */
@media (max-width: 1100px) {
    .layout {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar {
        position: fixed;
        top: 92px;
        right: 16px;
        left: auto;
        height: calc(100vh - 104px);
        max-width: 320px;
        width: auto;
        flex: none;
        padding: 24px;
        transform: translateX(120%);
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        z-index: 25;
        overflow-y: auto;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        pointer-events: auto;
    }

    body:not(.sidebar-open) .sidebar {
        transform: translateX(120%);
        opacity: 1;
    }

    .top-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .top-nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }

    .search-box input {
        width: 160px;
    }

    .hero {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .layout {
        padding: 16px 12px 32px;
    }

    .sidebar {
        right: 12px;
        max-width: 280px;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}
/* auth */
.auth-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, rgba(226, 6, 19, 0.08), rgba(72, 128, 255, 0.08)), var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 36px;
    align-items: center;
}

.auth-intro .hero-label {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-intro h1 {
    margin: 12px 0 16px;
    font-size: clamp(28px, 4vw, 40px);
}

.intro-copy {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 520px;
}

.auth-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.auth-features li {
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid rgba(255, 30, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-right: 40px;
}

.auth-features li::before {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.auth-card {
    background: var(--card);
    border-radius: 26px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-card-head span {
    color: var(--muted);
    font-size: 13px;
}

.auth-card-head h2 {
    margin: 6px 0 0;
    font-size: 20px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--border);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    font-size: 13px;
    color: var(--muted);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 15px;
    background: #fafafa;
}

.auth-form input:focus {
    outline: 2px solid rgba(227, 6, 19, 0.18);
    border-color: var(--primary);
    background: #fff;
}

.w-100 {
    width: 100%;
}

.auth-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.flash {
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 18px;
}

.flash.error {
    color: #c70039;
    background: #ffe5ec;
}

.flash.success {
    color: #0d7a2f;
    background: #dcf5e5;
}

.auth-footer {
    text-align: center;
    padding: 0 24px 32px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .auth-intro,
    .auth-features {
        margin: 0 auto;
    }

    .auth-features li {
        text-align: right;
    }

    .auth-card {
        padding: 28px;
    }

    .auth-card-head {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .auth-wrapper {
        padding: 32px 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-links {
        flex-direction: column;
    }
}
.admin-shell {
    padding: 32px;
}

.admin-card {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.admin-tab {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
}

.admin-tab.active {
    background: rgba(227, 6, 19, 0.12);
    color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 14px;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.danger-btn {
    border: none;
    background: #ffe5e5;
    color: #c70039;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
}

.crud-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.crud-modal.open {
    display: flex;
}

.crud-dialog {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.crud-dialog h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.form-grid input {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
}


