

/* =========================================================
   Thaleen Admin – Unified CSS
   (Add Business Sector + Add Service + Add New Project)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

:root {
    --th-color-bg: #f9fafb;
    --th-color-sidebar: #1d293d;
    --th-color-sidebar-text: #e5e7eb;
    --th-color-sidebar-muted: #90a1b9;
    --th-color-primary: #155dfc;
    --th-color-card-bg: #ffffff;
    --th-color-card-border: #e5e7eb;
    --th-color-text: #101828;
    --th-color-muted: #6a7282;
    --th-radius-xs: 8px;
    --th-radius-md: 10px;
    --th-radius-lg: 14px;
    --th-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --th-sidebar-width: 256px;
    --th-font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
    font-family: "Poppins", sans-serif;
/*    font-family: var(--th-font-family);*/
    color: var(--th-color-text);
}

.bg-dashboard {
  background-color: var(--th-color-bg);
}

/* Generic button base */
.btn {
  border-radius: 999px;
  font-size: 0.9rem;
}

/* =========================================================
   Sidebar Navigation (shared across all pages)
   ========================================================= */
.th-sidebar {
  width: var(--th-sidebar-width);
  background-color: var(--th-color-sidebar);
  color: var(--th-color-sidebar-text);
}

.th-sidebar-header {
  min-height: 100px;
}

.th-brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.th-brand-subtitle {
  font-size: 0.85rem;
  color: var(--th-color-sidebar-muted);
}

.th-nav-link {
  color: #cad5e2;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.th-nav-link i {
  font-size: 1.05rem;
}

.th-nav-link:hover {
  background-color: rgba(21, 93, 252, 0.1);
  color: #ffffff;
}

.th-nav-link.active {
  background-color: var(--th-color-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 93, 252, 0.7);
}

/* =========================================================
   Top Header Bar (Dashboard label + profile icon)
   ========================================================= */
.th-header {
  height: 65px;
  background-color: #ffffff;
  border-color: #e5e7eb !important;
}

.th-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e2939;
}

.th-profile-btn {
  color: #111827;
}

.th-profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--th-color-card-border);
  font-size: 1.2rem;
}

/* =========================================================
   Main Content Layout
   ========================================================= */
.th-main {
    background-color: var(--th-color-bg);
    border-radius: 15px;
    box-shadow: 0 0 15px rgb(204 204 204 / 10%);
}

.th-main-inner {
  width: 100%;
  padding: 0 40px;
}

/* Back navigation link */
.th-back-link {
    font-size: 0.86rem;
    color: #0a0a0a;
    cursor: pointer;
    background-color: #ededed;
    width: max-content;
    padding: 5px 11px;
    border-radius: 6px;
    transition: 0.3s;
}
    .th-back-link:hover {
        background-color: #d0d0d0;
    }

.th-back-link i {
  font-size: 1.1rem;
}

/* Page title and subtitle */
.th-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #101828;
}

.th-section-subtitle {
  font-size: 0.875rem;
  color: var(--th-color-muted);
}

/* =========================================================
   Form Card Container (used by all form pages)
   ========================================================= */
.th-card-form {
  border-radius: var(--th-radius-lg);
  border: 0.8px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--th-shadow-soft);
  background-color: var(--th-color-card-bg);
}

.th-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
}

/* =========================================================
   Form Inputs & Labels
   ========================================================= */
.th-label {
  font-size: 13px;
  color: #364153;
}

.th-input,
.th-textarea {
  border-radius: var(--th-radius-xs);
  border: 0.8px solid #d1d5dc;
  font-size: 0.95rem;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.th-input::placeholder,
.th-textarea::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.th-input:focus,
.th-textarea:focus {
  border-color: var(--th-color-primary);
  box-shadow: 0 0 0 1px rgba(21, 93, 252, 0.12);
}

/* Helper text below inputs */
.th-help-text {
  font-size: 0.75rem;
  color: #6a7282;
}

/* Section divider inside form card */
.th-divider {
  margin: 2rem 0 1.5rem;
  border-color: rgba(0, 0, 0, 0.1);
}

/* =========================================================
   Image Upload Areas
   ========================================================= */
.th-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.th-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.th-upload-box {
  border-radius: 10px;
  border: 1.6px dashed #d1d5dc;
  min-height: 132px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.th-upload-wrapper input[type="file"]:hover~.th-upload-box,
.th-upload-box:hover {
  border-color: var(--th-color-primary);
  background-color: #f0f4ff;
}

.th-upload-icon {
  font-size: 1.5rem;
  color: #6b7280;
}

.th-upload-text {
  font-size: 13px;
  color: #4a5565;
  margin: 0;
}

.th-upload-subtext {
  font-size: 0.75rem;
  color: #6a7282;
  margin: 0;
}

.th-upload-preview {
  margin-top: 12px;
  font-size: 12px;
  color: #059669;
}

.th-upload-preview i {
  margin-right: 4px;
}

.th-upload-image-preview {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 12px;
}

.th-upload-box.has-image {
  border-style: solid;
  border-color: #059669;
  background-color: #f0fdf4;
}

/* =========================================================
   Service/Sector Offering Cards & Achievement Cards
   ========================================================= */
.th-offering-card {
  border-radius: 14px;
  background-color: #f9fafb;
  border: 0.8px solid rgba(0, 0, 0, 0.1);
}

.th-offering-label {
  font-size: 0.875rem;
  color: #364153;
}

/* =========================================================
   Buttons (shared across all form pages)
   ========================================================= */
.th-btn-dark {
  background-color: #030213;
  border-color: #030213;
  color: #ffffff;
  border-radius: 8px;
  height: 36px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
}

    .th-btn-dark:hover {
        background-color: #111827;
        border-color: #111827;
        color: #fff;
    }

.th-btn-light {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  border-radius: 8px;
  height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
}

    .th-btn-light:hover {
        background-color: #f3f4f6;
        color: #000;
    }

.th-btn-outline {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  border-radius: 8px;
  height: 32px;
  font-size: 0.85rem;
  padding-inline: 0.85rem;
}

.th-btn-outline:hover {
  background-color: #f9fafb;
}

/* Bottom border above action buttons */
.th-actions-border {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 991.98px) {
  .th-sidebar {
    display: none;
  }

  .th-main-inner {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .th-main-inner {
    padding-inline: 1rem !important;
  }
}

/*custom css*/
.sidebar ul.nav-menu {
    padding: 0;
}

:root {
    --sidebar-bg: #1a2332;
    --sidebar-hover: #253347;
    --sidebar-active: #0066ff;
    --main-bg: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #2d3e50;
    --text-secondary: #8b95a7;
    --border-color: #e8ecf1;
}

html, body {
    height: 100%;
    background-color: var(--main-bg);
}


.admin-wrapper {
    display: flex;
    flex: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    padding: 24px 0;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: var(--sidebar-bg);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

.sidebar-header {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.sidebar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 8px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .nav-link:hover {
        color: #ffffff;
        background-color: var(--sidebar-hover);
        border-left-color: var(--sidebar-active);
    }

    .nav-link.active {
        color: #ffffff;
        background-color: var(--sidebar-hover);
        border-left-color: var(--sidebar-active);
    }

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Main Content Area */
.main-content {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background-color: var(--card-bg);
    padding: 16px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.topbar-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .user-avatar:hover {
        box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    }

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    display: none;
    z-index: 1000;
}

    .user-dropdown.show {
        display: block;
    }

.user-dropdown-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-dropdown-menu {
    padding: 8px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .user-dropdown-item:hover {
        background-color: #f5f7fa;
        color: var(--text-primary);
    }

    .user-dropdown-item i {
        font-size: 16px;
        width: 20px;
    }

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Card Styles */
.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 15px;
    color: var(--bs-body-color);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

    .stat-icon.blue {
        background-color: #e3f2fd;
        color: #0066ff;
    }

    .stat-icon.green {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .stat-icon.purple {
        background-color: #f3e5f5;
        color: #7b1fa2;
    }

    .stat-icon.orange {
        background-color: #fff3e0;
        color: #f57c00;
    }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Section Styles */
.section-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.section-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #fafbfc;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-body {
    padding: 20px;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

    .activity-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

    .activity-dot.green {
        background-color: #4caf50;
    }

    .activity-dot.blue {
        background-color: #0066ff;
    }

    .activity-dot.purple {
        background-color: #9c27b0;
    }

.activity-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.activity-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.quick-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

    .quick-stat-row:last-child {
        border-bottom: none;
    }

.quick-stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.quick-stat-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 16px 20px;
    }

    .content {
        padding: 20px;
    }
}

.recent-activity .section-body {
    padding-block: 10px;
}
.recent-activity .section-card {
    min-height: 308px !important;
}
table thead tr th {
    background-color: #1a2332 !important;
    color: #fff !important;
    font-weight: 500;
    padding: 7px 10px !important;
}
    table thead tr th:first-child {
        border-radius: 10px 0 0 0;
    }
    table thead tr th:last-child {
        border-radius: 0 10px 0 0;
    }

table tbody tr td {
    padding: 7px 10px !important;
    vertical-align: middle;
}
    table tbody tr td p {
        margin-bottom: 0;
    }
a.btn.btn-primary {
    background-color: #1a2332;
    border-color: #1a2332;
}
    a.btn.btn-primary:hover {
        background-color: #38465d;
    }
.bg-success {
    background-color: rgb(6 205 113) !important;
}
.btn-edit {
    background-color: #576df3;
    color: #fff;
}
    .btn-edit:hover {
        background-color: #2947fe;
        color: #fff;
    }