body {
   background:  #eaeaea;
  font-family: system-ui, sans-serif;
}
/* login page */
/* ===== LOGIN PAGE LOGO ===== */
.small{
  text-decoration: none;
}
.login-subtitle{
  display: block;
  margin-top: 6px;

}
.brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px; /* small gap so logo feels like a letter */
}

.login-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: translateY(-1px); /* fine-tune baseline */
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  color: #111827;
}
.login-btn {
  background: #0f766e; /* brand color */
  color: #fff;

  width: 100%;
  padding: 12px;
  border-radius: 8px;

  text-align: center;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  user-select: none;
}

.login-btn:hover {
  background: #115e59;
}

.login-btn:active {
  transform: scale(0.98);
}
/* PAGE WRAPPER */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN SPLIT CONTAINER */
.login-layout {
  width: 90%;
  max-width: 1200px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden; /* IMPORTANT */
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}

/* LEFT SIDE (GREEN PANEL) */
.login-left {
  background: linear-gradient(135deg, #0d5a5a, #106e6e);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-note {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}
.small{
  color: #086060;
}
/* LOGIN CARD */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* RIGHT SIDE */
.login-right {
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-right img {
  max-width: 100%;
  height: auto;
}
.card-body{
    background: #ffffff;
  border-radius: 16px;

  /* ✨ Premium shadow */
  box-shadow:
    0 25px 50px rgba(197, 196, 196, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.15);

  border: none;
}
.contact-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #106e6e;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-cta:hover {
  color: #0b4f4f;
  text-decoration: underline;
}

/* Forgot password – reset button */
.reset-btn {
  width: 100%;
  background: #0f766e; /* brand color */
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reset-btn:hover {
  background: linear-gradient(135deg, #0f3f32, #145341);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 83, 65, 0.35);
}

.reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(20, 83, 65, 0.3);
}

.reset-btn:focus {
  outline: none;
}
.brand-tex {
  font-size: 1rem;
  font-weight:500;
  margin: 0;
  letter-spacing: -0.5px;
  color: #111827;
}
/* Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    min-height: 200vh;
    width: 240px;
    background: #0d5a5a;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}
/* MAIN CONTENT */
.main-content {
    margin-left: 260px;               /* sidebar width */
    width: calc(100% - 260px);        /* THIS IS KEY */
    min-height: 100vh;
    padding: 24px;
    background:  #eaeaea;
}

.content-wrapper {
    max-width: 100%;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.sidebar .nav-link {
  color: #e0f2f1;
  border-radius: 8px;
  padding: 10px 12px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: white;
  color: #106e6e;
}
.nav-link {
    color: #374151;
    border-radius: 8px;
    padding: 8px 12px;
}

.nav-link.active {
    background: #e6f4f4;
    color: #106e6e;
    font-weight: 600;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
/* Sidebar branding */

h2{
    color: #111827;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;              /* space between logo & text */
  margin-bottom: 24px;
  padding-left: 12px;
  color: #106e6e;
}

.logo-img {
  width: 32px;            /* adjust size here */
  height: auto;
}

.company-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}



/* Cards */
.card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.stat-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 6px 16px rgba(16, 110, 110, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card h6 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #106e6e;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* RECENT ACTIVITY */
.card.recent-activity-card {
  margin-top: 24px;
  border-radius: 12px;
}
.card.recent-activity-card span {
 font-weight: bold;
}
/* Header */
.card-header.recent-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* View All Logs button */
.logsbutton {
  background-color: #e6f4f4;
  color: #106e6e;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #cceeee;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16,110,110,0.15);
}

.logsbutton:hover {
  background-color: #106e6e;
  color: #ffffff;
}


.activity-list {
    padding: 10px 16px;
}

.activity-item {
    padding: 14px 0;
    border-bottom: 2px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-action {
    font-size: 14px;
    color: #111827;
}

.activity-desc {
    margin: 4px 0;
    font-size: 14px;
    color: #374151;
}

.activity-meta {
    font-size: 12px;
    color: #6b7280;
}

.no-activity {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}
/* ===============================
   PAGINATION RESPONSIVE
================================ */

/* Base styling improvement */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 4px;
  color: #106e6e;
}

.pagination .page-item.active .page-link {
  background-color: #106e6e;
  border-color: #106e6e;
  color: #fff;
}
/* PAGE HEADER */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.page-subtitle {
  font-size: 14px;
  color: #6b7280;
}
.btn-primary {
  background-color: #106e6e;
  border-color: #106e6e;
}

.btn-primary:hover {
  background-color: #0b5c5c;
  border-color: #0b5c5c;
}

.btn-primary:focus,
.btn-primary:active {
  background-color: #094d4d;
  border-color: #094d4d;
  box-shadow: 0 0 0 0.2rem rgba(16, 110, 110, 0.35);
}
/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-input {
  max-width: 260px;
}

.filter-select {
  max-width: 180px;
}

/* TABLE CARD */
.table-card {
  border-radius: 14px;
  overflow: hidden;
}

.table thead {
  background: #f9fafb;
}

.table th {
  font-size: 13px;
  text-transform: uppercase;
  color: #6b7280;
}

.table td {
  font-size: 16px;
  color: #111827;
}

/* STATUS BADGES */
.status-pending {
  background: #fff7ed;
  color: #d97706;
}

.status-approved {
  background: #ecfeff;
  color: #0891b2;
}

.status-completed {
  background: #ecfdf5;
  color: #059669;
}
.status-revision{
    color: #d97706;
}
.status-review{
     color:#0891b2;
}
/* PAYMENT BADGES */
.payment-paid {
  background: #059669;
  color: #ffffff;
}

.payment-unpaid {
  background: #ff0000;
  color: #ffffff;
}

.payment-partial {
    background-color: #f59e0b; /* amber */
    color: #fff;
}

/* VIEW BUTTON */
.btn-view {
  background: #e6f4f4;
  color: #106e6e;
  border-radius: 8px;
  font-size: 13px;
}

.btn-view:hover {
  background: #106e6e;
  color: #ffffff;
}
/* ===============================
   PROJECT VIEW PAGE STYLES
   =============================== */

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-header h2 {
  margin-bottom: 4px;
  color: #111827;
}

.page-header p {
  font-size: 14px;
}

/* Cards (reuse dashboard look) */
.card {
  background: #ffffff;
  border-radius: 14px;
  border: none;
  box-shadow:
    0 6px 16px rgba(16, 110, 110, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Status badges */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Status colors */
.status-pending {
  background: #fff7ed;
  color: #d97706;
}

.status-review {
  background: #eff6ff;
  color: #2563eb;
}

.status-approved {
  background: #ecfeff;
  color: #0ea5e9;
}

.status-completed {
  background: #ecfdf5;
  color: #16a34a;
}

/* Staff list rows */
.card .border-bottom {
  border-color: #e5e7eb !important;
}

/* Forms spacing */
.form-check-label {
  font-size: 14px;
  color: #374151;
}

/* Buttons tweaks */
.btn-danger {
  background-color: #dc2626;
  border: none;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-primary {
  background-color: #106e6e;
  border: none;
}

.btn-primary:hover {
  background-color: #0d5a5a;
}

.btn-success {
  background-color: #16a34a;
  border: none;
}

.btn-success:hover {
  background-color: #15803d;
}

/* Comments */
textarea.form-control {
  resize: vertical;
}

/* Brand primary button */
.btn-brand {
  background-color: #106e6e;
  border-color: #106e6e;
  color: #ffffff;
  font-weight: 500;
}

.btn-brand:hover {
  background-color: #0d5a5a; /* slightly darker */
  border-color: #0d5a5a;
  color: #ffffff;
}

.btn-brand:focus,
.btn-brand:active {
  background-color: #0b4f4f;
  border-color: #0b4f4f;
  box-shadow: 0 0 0 0.2rem rgba(16, 110, 110, 0.25);
}

/* ===== INVOICE PAGE ===== */

.filter-card {
  padding: 15px;
  margin-bottom: 20px;
}

.table-card {
  padding: 0;
}

.table thead th {
  font-size: 13px;
  text-transform: uppercase;
  color: #6b7280;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ===== CREATE INVOICE PAGE ===== */

.form-card {
  max-width: 700px;
  padding: 20px;
}

.form-label {
  font-weight: 500;
}

.view-action {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 110, 110, 0.1);
  color: #106e6e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-action:hover {
  background: #106e6e;
  color: #ffffff;
}
.mobile-header {
  display: none;
}
body {
  overflow-x: hidden;
}

.sidebar-overlay {
  display: none;
}

.sidebar-close {
  display: none;
}

/* =====================================
   RESPONSIVE SYSTEM
===================================== */

/* ==========================================
   MOBILE + TABLET (≤ 992px)
========================================== */
@media (max-width: 992px) {
  /* login-page */
  .login-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    width: 95%;
  }

  .login-right {
    display: none; /* hide illustration */
  }

  .login-left {
    padding: 30px;
  }

  .login-card {
    max-width: 100%;
  }

  /* Sidebar hidden by default */

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 200vh;
    background: #0d5a5a;
    transition: left 0.3s ease;
    z-index: 2000;
  }
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;

    backdrop-filter: blur(6px);

    font-size: 16px;
    cursor: pointer;

    transition: all 0.2s ease;
  }

  .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .sidebar-close:active {
    transform: scale(0.95);
  }

  .sidebar.active {
    left: 0;
  }
  .mobile-title{
    align-content: center;
  }
  /* Overlay */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Main full width */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;   /* center everything */
    position: relative;        /* important */
    margin-bottom: 20px;
  }

  .menu-toggle {
    position: absolute;        /* remove from flex flow */
    left: 0;                   /* stick to left */
    background: #106e6e;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 20px;
  }

  .mobile-title {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
  }
}
/* ==========================================
   PROJECTS PAGE RESPONSIVE (≤ 768px)
========================================== */
/* ==========================================
   PROJECTS MOBILE OPTIMIZATION (≤ 768px)
========================================== */
@media (max-width: 768px) {

  /* PAGE HEADER STACK */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header .btn {
    width: 100%;
  }

  /* FILTER BAR STACK */
  .filter-bar {
    flex-direction: column;
    gap: 10px;
  }

  .filter-input,
  .filter-select,
  .filter-bar button {
    width: 100%;
    max-width: 100%;
  }

  /* Hide less important columns */
  .table th:nth-child(1),
  .table td:nth-child(1), /* # */
  .table th:nth-child(3),
  .table th:nth-child(6)
  {
    display: none;
  }

  /* Improve row layout */
  .table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
  }

  .table td {
    border: none !important;
    padding: 0;
    font-size: 14px;
    white-space: normal;
  }

  /* Project name stronger */
  .table td:nth-child(2) {
    font-weight: 600;
    font-size: 15px;
  }

  /* Status + Payment spacing */
  .table td:nth-child(4),
  .table td:nth-child(5) {
    display: inline-block;
    margin-right: 6px;
  }

  /* Action button */
  .table td:nth-child(7) {
    margin-top: 6px;
  }

  .btn-view {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 6px 10px;
  }

  /* Remove table header completely */
  .table thead {
    display: none;
  }

  nav .pagination {
    flex-wrap: nowrap;              /* Prevent wrapping */
    overflow-x: auto;               /* Allow scroll */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  nav .pagination::-webkit-scrollbar {
    display: none;                  /* Hide scrollbar */
  }

  .pagination .page-link {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

}

/* Small phones */
@media (max-width: 576px) {

  .login-layout {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .login-left {
    padding: 20px;
  }

  .login-card {
    padding: 20px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .login-btn {
    padding: 11px;
    font-size: 15px;
  }

}

