:root {
  --brand-color: #b20710;
  --text-color: #222;
  --muted-color: #888;
  --bg-light: #f8f9fb;
  --white:#fff;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

.user-dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
  font-family: var(--font-body);
}

/* Sidebar */
.user-dashboard__sidebar {
  width: 265px;
  background: var(--brand-color);
  border-right: 1px solid #eee;
  padding: 10px;
  display: flex;
  flex-direction: column;
      margin: 5px;
    border-radius: 10px;height: 98vh;
    position: sticky;
    top: 10px;
    left: 0;
}
.user-dashboard__sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
justify-content: center;
    padding-top: 10px;
}
.user-dashboard__sidebar .nav {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: block;
  margin-top: 25px;

}
.user-dashboard__sidebar.collapsed .nav {

  margin-top: 10px;

}
.user-dashboard__sidebar .nav a {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding-left: 20px;
    margin-bottom: 5px;  
 
}
.comments{color:#8B8B8B;}

.user-dashboard__sidebar .nav a:hover {
  color: var(--brand-color);
    box-shadow: 0 0 9px -1px #929292;
    border-radius: 10px;
    background: #ffffff;
    backdrop-filter: blur(1px);
}
.user-dashboard__sidebar .nav a.active {
  color: var(--brand-color);
    box-shadow: 0 0 9px -1px #929292;
    border-radius: 10px;
    background: #ffffff;
    backdrop-filter: blur(1px);
}
.user-dashboard__sidebar .nav a i{margin-right: 6px;}
/* Footer */
.user-dashboard__footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 10px;
  padding-bottom: 10px;
}
.user-dashboard__footer a {
  display: block;
  margin-top: 8px;
  color: var(--white);
  padding-left:10px ;
}
.user-dashboard__footer a:hover {
  color: var(--white);
}
/* Main */
.user-dashboard__main {
  flex: 1;
  padding: 30px;
  background: #fff;
}

/* Topbar */
.user-dashboard__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 h1#section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
}
.user-dashboard__topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Cards */
.user-dashboard__stats {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
.user-dashboard__stats .card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: none;
  border: 1px solid #E5E7EB;
}
.attendance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
.attendance-stats .card{background: #fff!important;}
.attendance-stats .card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: none;
  border: 1px solid #E5E7EB;
}
.user-dashboard__stats h6{font-size: 20px; font-weight: 500;letter-spacing: -0.5px;}
.user-dashboard__stats h2{font-size: 36px; font-weight: 500;letter-spacing: -0.5px;margin-bottom: 12px;}
.greenbgtext{color: #0fb880;
    background: #e1fbe4;
    padding: 0 6px;
    border-radius: 10px;
  }
.user-dashboard__stats p{margin-bottom: 0; color: #8B8B8B; font-size: 12px; font-weight: 400; font-family: var(--font-heading);}
.greenProgress{background: #E1FCE4; color: #10B981; padding: 4px 8px 4px 4px; border-radius: 100px;}
.redProgress{background: #FFDDC5; color: #9C4B00; padding: 4px 8px 4px 8px; border-radius: 100px;}
.blueProgress{background: #CAEAFF; color: #194BFB; padding: 4px 8px 4px 8px; border-radius: 100px;}
.user-dashboard .righticon{    margin-top: -22px;text-align: right;}
.user-dashboard .righticon i{color: #8B8B8B;}
.greyp{color: #8B8B8B; font-size: 12px; font-weight: 400; font-family: var(--font-heading);}
.user-dashboard__topbar p{margin-bottom:0;}
.performance_graph .perform-title{font-size: 14px; font-weight: 500;letter-spacing: -0.5px; color: #000000;}



/* Quick Actions */
.user-dashboard__actions {
  margin-top: 30px;
  display: block;
  gap: 10px;    background: #fff;
  flex-wrap: wrap;    border: 1px solid #eee; padding: 20px 0;
    padding-left: 20px; border-radius: 10px;
}
.user-dashboard__actions button {
  background: linear-gradient(45deg, #f2f2f2, transparent);
  border: 1px solid #eee;
  border-radius: 10px; padding: 10px 25px;
  margin-right: 12px; cursor: pointer;
  font-family: var(--font-heading);
  
}
.user-dashboard__actions button:hover {
  background: var(--brand-color);
  color: #fff;
}
.user-dashboard__actions h4{
    margin-bottom: 15px;
}
/* Data Section */
.user-dashboard__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.performance, .tasks {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.chart-placeholder {
  height: 180px;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tasks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tasks li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btnexport{border: 1px solid #e4e6eb;padding: 12px 14px; background: #ffffff;border-radius: 8px; font-size: 14px; font-weight: 400;letter-spacing: -0.5px; }

.icontext {display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.icontext h6{margin: 0;}
.icontext img{border: 1px solid #e5e7eb; padding: 10px; border-radius:12px;}
--bs-body-bg{background: #f9fafb !important;}


/* Performance & Upcoming Tasks styles */
.perf-card, .tasks-card { border: 1px solid #eee!important ; border-radius: 12px!important; box-shadow:none; }
.perf-percent { font-size: 36px; font-weight: 500; line-height: 1; margin-top: 4px; }
.perf-change { margin-top: 6px; font-size: 13px; }
.chart { border: 2px dashed #e5e7eb; border-radius: 12px; padding: 16px; }
.chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 200px; }
.chart-bar { width: 42px; background: #16a34a; border-radius: 8px; position: relative; }
.chart-bar .bar-label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #6b7280; }

.tasks-header h5 { font-weight: 500; }
.btn-view-all { background: #f9fafb; border: 1px solid #e5e7eb; padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.btn-view-all:hover { background: #eef2f7; }


.heading_title{font-size: 20px;font-weight: 500; letter-spacing: -0.5px;}
.title-text {font-size: 14px; font-weight: 400; color: #505050;}


.tasks-list { margin-top: 14px; display: grid; gap: 12px; }
.task-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.task-icon { width: 36px; height: 36px; border-radius: 50%;display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.task-content { flex: 1; margin: 0 12px; }
.task-title {font-weight: 500; font-size: 16px;}
.task-meta { font-size: 10px;font-weight: 500; color:#8B8B8B; margin-top: 2px; }

.status-badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid; }
.status-pending { background: #fff7ed; color: #f0b800; border-color: #fcd34d; }
.status-approved { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.status-rejected { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* Small tweak for icons line you selected */
.user-dashboard__sidebar .nav i { margin-right: 12px; cursor: pointer; }
/* Chat: fixed-height professional layout */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.chat--fixed { height: 600px; max-height: 600px; }
.chat-sidebar { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.chat-sidebar-header { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #eef2f7; }
#chat-search-input { flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 5px; }
#chat-search-input::placeholder { font-size: 13px;}
.chat-sidebar-top{display: flex; justify-content: space-between; padding: 15px;align-items: center;}
.chat-sidebar-actions { display: flex; gap: 6px; }
.chat-tool { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 10px; padding: 6px; }
.chat-tool:hover { background: #eef2f7; }
.chat-tool.plus{margin-right: 5px;}
.chat-contacts { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.chat-contacts li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.chat-contacts li:hover, .chat-contacts li.active { background: #f3f4f6; }
.contact-avatar { width: 38px; height: 38px; border-radius: 50%; background: #ecfdf5; color: #16a34a; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.contact-info { flex: 1; min-width: 0; }
.contact-row { display: flex; justify-content: space-between; align-items: center; }
.contact-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-time { font-size: 12px; color: #6b7280; }
.contact-preview { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 8px; line-height: 1; }

.chat-main { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.chat-header-left { display: flex; flex-direction: column; gap: 2px; }
.chat-title { font-weight: 600; }
.chat-status { font-size: 12px; color: #10b981; display: flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
.chat-actions .chat-action { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 10px; padding: 6px 8px; margin-left: 6px; }
.chat-actions .chat-action:hover { background: #eef2f7; }

.chat-thread { flex: 1; padding: 20px; overflow-y: auto; background: #f9fafb; position: relative; }
.wallpaper {
  background-image:
    radial-gradient(#f1f5f9 1px, transparent 1px),
    radial-gradient(#f1f5f9 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.chat-empty { text-align: center; color: #6b7280; margin-top: 40px; }

.msg { max-width: 62%; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.msg-incoming .bubble { background: #fff; border: 1px solid #e5e7eb; color: #111827; }
.msg-outgoing { margin-left: auto; }
.msg-outgoing .bubble { background: #f0f0f0;color: #000000;display: flex; flex-direction: column; gap: 10px; }
.msg-outgoing .bubble a{    color: #000000;border: 1px solid #fff; padding: 3px 5px; background: #fff;}
.bubble { border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.meta { font-size: 11px; color: #6b7280; text-align: right; }

.chat-compose { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.chat-attach { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 12px; padding: 10px; }
.chat-attach:hover { background: #eef2f7; }
.chat-compose input { flex: 1; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; }
.chat-compose .btn-send { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.chat-compose .btn-send:hover { background: #eef2f7; }

/* iOS-style Logout Confirm */
.ios-modal { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; }
.ios-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.25); backdrop-filter: blur(4px); }
.ios-sheet { position: relative; width: 360px; max-width: 90vw; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 18px; transform: translateY(8px); opacity: 0; transition: transform 160ms ease, opacity 160ms ease; }
.ios-title { font-weight: 600; text-align: center; margin-bottom: 8px; }
.ios-message { text-align: center; color: #6b7280; margin-bottom: 14px; }
.ios-buttons { display: flex; gap: 8px; }
.ios-btn { flex: 1; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; font-weight: 600; background: #f9fafb; }
.ios-cancel:hover { background: #f3f4f6; }
.ios-destructive { background: #fff5f5; border-color: #fca5a5; color: #b20710; }
.ios-destructive:hover { background: #fee2e2; }
.modal-open { overflow: hidden; }

/* Animate sheet when visible */
#ios-logout-modal[aria-hidden="false"] .ios-sheet { transform: translateY(0); opacity: 1; }

/* Existing chart tweak retained */
.chart { border: 2px dashed #e5e7eb; border-radius: 12px; padding: 16px; padding-bottom: 30px; }

/* Sidebar icon spacing (from your snippet) */
.user-dashboard__sidebar .nav i { margin-right: 12px; cursor: pointer; }

/* Reports & Rewards Starts  */
.topgrid{    display: flex; justify-content: space-between;}
.stat-card {
            border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
        }

        .stat-card h2 {
            font-weight: 700;
            margin: 6px 0;
            color: #000;
        }

        .stat-label {
           font-size: 20px;
    color: #212529;
    font-weight: 500; font-family: var(--font-heading);
        }

        .chart-card {
            border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
            height: 88%; background: #fff;
        }

        

        .btnexport:hover {
            background: #f1f1f1;
        }

.icons i{color: #8a8a8a;}
.form-control:focus, .form-select:focus{box-shadow: none!important;}

/* iOS Card Look */
#section-projects .card {
    border-radius: 22px;
    border: none;
    background: #f9f9fb;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Table container */
#projectTable {
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* Remove default table styles */
#projectTable thead {
    display: table-header-group;
}

/* iOS row card */
#projectTable tbody tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#projectTable tbody tr:hover {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Cells */
#projectTable td {
    padding: 14px 16px;
    border: none;
    font-size: 14px;
    color: #1c1c1e;
}

/* First & last rounding */
#projectTable td:first-child {
    border-radius: 16px 0 0 16px;
    font-weight: 600;
    color: #929292;
}

#projectTable td:last-child {
    border-radius: 0 16px 16px 0;
}

/* Status Pill */
.ios-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Remark inline edit */
.remark-editable {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f2f2f7;
    min-width: 120px;
    display: inline-block;
    outline: none;
}



/* Override bootstrap colors for iOS feel */
.badge.bg-success {
    background: #34c759 !important;
}

.badge.bg-warning {
    background: #ffcc00 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: #ff3b30 !important;
    color: #fff!important;
}

/* =========================
   EMPTY STATE
========================= */
#attendanceTableBody .text-muted {
    font-size: 15px;
    padding: 24px;
}

/* =========================
   MOBILE FRIENDLY
========================= */
@media (max-width: 768px) {
    #attendanceTable td,
    #attendanceTable th {
        white-space: nowrap;
        font-size: 14px;
    }
}

#col-progress, #col-todo, #col-completed{background: #FAFAFA; padding: 16px; border-radius: 32px;}
   #section-projects { background-color: #fff; min-height: 100vh; padding: 0rem; }
        
        /* Kanban Card Styling */
        .kanban-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 24px;
            border: 1px solid #f1f1f1;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            transition: transform 0.2s ease;
            cursor: pointer;
        }
        .kanban-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
        .client-label { color: #8e8e93; font-size: 0.85rem; margin-bottom: 12px; }
        
        /* Progress Bar */
        .progress { height: 8px; border-radius: 10px; background-color: #f2f2f7; }
        .progress-bar { border-radius: 10px; background-color: #006400 !important; }

    
        /* Modal Overlay */
        .custom-modal-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4); z-index: 2000; align-items: center; justify-content: center;
            backdrop-filter: blur(4px);
        }
        .custom-modal-content {
            background: white; padding: 30px; border-radius: 28px; width: 100%; max-width: 450px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }
        .custom-input { background: #f5f5f7; border: none; border-radius: 12px; padding: 12px; }

        .action-btn-main { border-radius: 14px; background: #1c1c1e; border: none; }
        .view-toggle.active { background: #1c1c1e !important; color: white !important; }
        .kanban-card .progress{height:8px;}
        /* Global Inactivity Overlay Styles */
.kanban-col .kanban-card{border: 1px solid #E5E7EB; border-radius: 24px; padding: 16px;}
.comments span{color:#8B8B8B;}

#inactivityOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.3); /* Dimmer background */
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.inactivity-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.warning-icon-wrapper {
    background: #fff9e6;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
}
.sopcard{ border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
           background: #fff;}

.quickbtns{    margin-left: 10%;}

.quickbtns button {
  background: linear-gradient(45deg, #f2f2f2, transparent);
  border: 1px solid #eee;
  border-radius: 10px; padding: 10px 25px;
  margin-right: 12px; cursor: pointer;
  font-family: var(--font-heading);
  
}
/* Add this to your existing user.css file */

.main-content-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    padding-top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.top-right-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    position: relative;
    cursor: pointer;
}

.nav-icon i {
    font-size: 1.5rem;
    color: #6c757d;
}

.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-profile i {
    color: #6c757d;
}

.icontext {display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.icontext h6{margin: 0;}
.icontext img{border: 1px solid #e5e7eb; padding: 10px; border-radius:12px;}
--bs-body-bg{background: #f9fafb !important;}


/* Performance & Upcoming Tasks styles */
.perf-card, .tasks-card { border: 1px solid #eee!important ; border-radius: 12px!important; box-shadow:none; }
.perf-percent { font-size: 36px; font-weight: 500; line-height: 1; margin-top: 4px; }
.perf-change { margin-top: 6px; font-size: 13px; }
.chart { border: 2px dashed #e5e7eb; border-radius: 12px; padding: 16px; }
.chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 200px; }
.chart-bar { width: 42px; background: #16a34a; border-radius: 8px; position: relative; }
.chart-bar .bar-label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #6b7280; }

.tasks-header h5 { font-weight: 500; }
.btn-view-all { background: #f9fafb; border: 1px solid #e5e7eb; padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.btn-view-all:hover { background: #eef2f7; }


.heading_title{font-size: 20px;font-weight: 500; letter-spacing: -0.5px;}
.title-text {font-size: 14px; font-weight: 400; color: #505050;}


.tasks-list { margin-top: 14px; display: grid; gap: 12px; }
.task-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.task-icon { width: 36px; height: 36px; border-radius: 50%;display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.task-content { flex: 1; margin: 0 12px; }
.task-title {font-weight: 500; font-size: 16px;}
.task-meta { font-size: 10px;font-weight: 500; color:#8B8B8B; margin-top: 2px; }

.status-badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid; }
.status-pending { background: #fff7ed; color: #f0b800; border-color: #fcd34d; }
.status-approved { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.status-rejected { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* Small tweak for icons line you selected */
.user-dashboard__sidebar .nav i { margin-right: 12px; cursor: pointer; }
/* Chat: fixed-height professional layout */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.chat--fixed { height: 600px; max-height: 600px; }
.chat-sidebar { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.chat-sidebar-header { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #eef2f7; }
#chat-search-input { flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 5px; }
#chat-search-input::placeholder { font-size: 13px;}
.chat-sidebar-top{display: flex; justify-content: space-between; padding: 15px;align-items: center;}
.chat-sidebar-actions { display: flex; gap: 6px; }
.chat-tool { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 10px; padding: 6px; }
.chat-tool:hover { background: #eef2f7; }
.chat-tool.plus{margin-right: 5px;}
.chat-contacts { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.chat-contacts li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.chat-contacts li:hover, .chat-contacts li.active { background: #f3f4f6; }
.contact-avatar { width: 38px; height: 38px; border-radius: 50%; background: #ecfdf5; color: #16a34a; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.contact-info { flex: 1; min-width: 0; }
.contact-row { display: flex; justify-content: space-between; align-items: center; }
.contact-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-time { font-size: 12px; color: #6b7280; }
.contact-preview { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 8px; line-height: 1; }

.chat-main { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.chat-header-left { display: flex; flex-direction: column; gap: 2px; }
.chat-title { font-weight: 600; }
.chat-status { font-size: 12px; color: #10b981; display: flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
.chat-actions .chat-action { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 10px; padding: 6px 8px; margin-left: 6px; }
.chat-actions .chat-action:hover { background: #eef2f7; }

.chat-thread { flex: 1; padding: 20px; overflow-y: auto; background: #f9fafb; position: relative; }
.wallpaper {
  background-image:
    radial-gradient(#f1f5f9 1px, transparent 1px),
    radial-gradient(#f1f5f9 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}
.chat-empty { text-align: center; color: #6b7280; margin-top: 40px; }

.msg { max-width: 62%; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.msg-incoming .bubble { background: #fff; border: 1px solid #e5e7eb; color: #111827; }
.msg-outgoing { margin-left: auto; }
.msg-outgoing .bubble { background: #f0f0f0;color: #000000;display: flex; flex-direction: column; gap: 10px; }
.msg-outgoing .bubble a{    color: #000000;border: 1px solid #fff; padding: 3px 5px; background: #fff;}
.bubble { border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.meta { font-size: 11px; color: #6b7280; text-align: right; }

.chat-compose { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.chat-attach { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 12px; padding: 10px; }
.chat-attach:hover { background: #eef2f7; }
.chat-compose input { flex: 1; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; }
.chat-compose .btn-send { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.chat-compose .btn-send:hover { background: #eef2f7; }

/* iOS-style Logout Confirm */
.ios-modal { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; }
.ios-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.25); backdrop-filter: blur(4px); }
.ios-sheet { position: relative; width: 360px; max-width: 90vw; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 18px; transform: translateY(8px); opacity: 0; transition: transform 160ms ease, opacity 160ms ease; }
.ios-title { font-weight: 600; text-align: center; margin-bottom: 8px; }
.ios-message { text-align: center; color: #6b7280; margin-bottom: 14px; }
.ios-buttons { display: flex; gap: 8px; }
.ios-btn { flex: 1; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; font-weight: 600; background: #f9fafb; }
.ios-cancel:hover { background: #f3f4f6; }
.ios-destructive { background: #fff5f5; border-color: #fca5a5; color: #b20710; }
.ios-destructive:hover { background: #fee2e2; }
.modal-open { overflow: hidden; }

/* Animate sheet when visible */
#ios-logout-modal[aria-hidden="false"] .ios-sheet { transform: translateY(0); opacity: 1; }

/* Existing chart tweak retained */
.chart { border: 2px dashed #e5e7eb; border-radius: 12px; padding: 16px; padding-bottom: 30px; }

/* Sidebar icon spacing (from your snippet) */
.user-dashboard__sidebar .nav i { margin-right: 12px; cursor: pointer; }

/* Reports & Rewards Starts  */
.topgrid{    display: flex; justify-content: space-between;}
.stat-card {
            border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
        }

        .stat-card h2 {
            font-weight: 700;
            margin: 6px 0;
            color: #000;
        }

        .stat-label {
           font-size: 20px;
    color: #212529;
    font-weight: 500; font-family: var(--font-heading);
        }

        .chart-card {
            border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
            height: 88%; background: #fff;
        }

        

        .btnexport:hover {
            background: #f1f1f1;
        }

.icons i{color: #8a8a8a;}
.form-control:focus, .form-select:focus{box-shadow: none!important;}

/* iOS Card Look */
#section-projects .card {
    border-radius: 22px;
    border: none;
    background: #f9f9fb;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Table container */
#projectTable {
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* Remove default table styles */
#projectTable thead {
    display: table-header-group;
}

/* iOS row card */
#projectTable tbody tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#projectTable tbody tr:hover {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Cells */
#projectTable td {
    padding: 14px 16px;
    border: none;
    font-size: 14px;
    color: #1c1c1e;
}

/* First & last rounding */
#projectTable td:first-child {
    border-radius: 16px 0 0 16px;
    font-weight: 600;
    color: #929292;
}

#projectTable td:last-child {
    border-radius: 0 16px 16px 0;
}

/* Status Pill */
.ios-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Remark inline edit */
.remark-editable {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f2f2f7;
    min-width: 120px;
    display: inline-block;
    outline: none;
}

/* Action buttons */
.ios-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f2f2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.ios-action-btn:hover {
    background: oklab(92.334% 0.00188 -0.00655 / 0.556);
}
/* =========================
   iOS CARD STYLE
========================= */

#section-attendance .card {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

#section-attendance .card-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 24px 10px;
}

#section-attendance h5 {
    font-weight: 600;
    color: #1c1c1e;
}

/* =========================
   iOS BUTTON
========================= */
#markAttendanceBtn {
    background: #34c759;
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52,199,89,0.35);
}

#markAttendanceBtn:disabled {
    background: #d1d1d6;
    color: #8e8e93;
    box-shadow: none;
}

/* =========================
   iOS TABLE HEADER
========================= */
.ios-table-head th {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 14px;
}

/* =========================
   iOS TABLE BODY
========================= */
#attendanceTable {
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
}

#attendanceTable tbody tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:1px 2px 4px rgba(0, 0, 0, 0.06);
}

#attendanceTable td {
    border: none;
    padding: 14px 14px;
    font-size: 15px;
    color: #1c1c1e;
}

#attendanceTable td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 500;
}

#attendanceTable td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Hover = subtle lift */
#attendanceTable tbody tr:hover {
    transform: translateY(-1px);
    transition: all 0.15s ease;
}

/* =========================
   iOS STATUS BADGES
========================= */
#attendanceTable .badge {
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* Override bootstrap colors for iOS feel */
.badge.bg-success {
    background: #34c759 !important;
}

.badge.bg-warning {
    background: #ffcc00 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: #ff3b30 !important;
}

/* =========================
   EMPTY STATE
========================= */
#attendanceTableBody .text-muted {
    font-size: 15px;
    padding: 24px;
}

/* =========================
   MOBILE FRIENDLY
========================= */
@media (max-width: 768px) {
    #attendanceTable td,
    #attendanceTable th {
        white-space: nowrap;
        font-size: 14px;
    }
}

#col-progress, #col-todo, #col-completed{background: #FAFAFA; padding: 16px; border-radius: 32px;}
   #section-projects { background-color: #fff; min-height: 100vh; padding: 0rem; }
        
        /* Kanban Card Styling */
        .kanban-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 24px;
            border: 1px solid #f1f1f1;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            transition: transform 0.2s ease;
            cursor: pointer;
        }
        .kanban-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
        .client-label { color: #8e8e93; font-size: 0.85rem; margin-bottom: 12px; }
        
        /* Progress Bar */
        .progress { height: 8px; border-radius: 10px; background-color: #f2f2f7; }
        .progress-bar { border-radius: 10px; background-color: #006400 !important; }

    
        /* Modal Overlay */
        .custom-modal-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4); z-index: 2000; align-items: center; justify-content: center;
            backdrop-filter: blur(4px);
        }
        .custom-modal-content {
            background: white; padding: 25px; border-radius: 28px; width: 100%; max-width: 450px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2); scrollbar-width: thin;
        }
        .custom-input { background: #f5f5f7; border: none; border-radius: 12px; padding: 12px; }

        .action-btn-main { border-radius: 14px; background: #1c1c1e; border: none; }
        .view-toggle.active { background: #1c1c1e !important; color: white !important; }
        .kanban-card .progress{height:8px;}
        /* Global Inactivity Overlay Styles */
.kanban-col .kanban-card{border: 1px solid #E5E7EB; border-radius: 24px; padding: 16px;}
.comments span{color:#8B8B8B;}

#inactivityOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.3); /* Dimmer background */
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.inactivity-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.warning-icon-wrapper {
    background: #fff9e6;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
}
.sopcard{ border: 1px solid #eee;
            border-radius: 14px;
            padding: 20px;
           background: #fff;}

.quickbtns{    margin-left: 10%;}

.quickbtns button {
  background: linear-gradient(45deg, #f2f2f2, transparent);
  border: 1px solid #eee;
  border-radius: 10px; padding: 10px 25px;
  margin-right: 12px; cursor: pointer;
  font-family: var(--font-heading);
  
}
#assignedUsersList .dropdown-item span{font-size: 12px; color: #656565 !important;}
