/* ============================================================
   CAMC | Modern UI theme
   Loaded after app.css — overrides the SB Admin 2 look while
   keeping the existing markup and JavaScript behaviour intact.
   ============================================================ */

:root {
     --camc-primary: #10b981;
     --camc-primary-dark: #0b7a5c;
     --camc-primary-soft: #e7f8f1;
     --camc-accent: #06b6d4;
     --camc-ink: #0f172a;
     --camc-ink-soft: #1e293b;
     --camc-muted: #64748b;
     --camc-muted-soft: #94a3b8;
     --camc-bg: #f3f6fb;
     --camc-surface: #ffffff;
     --camc-border: #e6ebf3;
     --camc-danger: #ef4444;
     --camc-warning: #f59e0b;
     --camc-radius: 16px;
     --camc-radius-sm: 10px;
     --camc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
     --camc-shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
     --camc-shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
     --camc-sidebar: #0b1220;
     --camc-sidebar-2: #0f2438;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
body,
body#page-top {
     font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     background-color: var(--camc-bg);
     background-image:
          radial-gradient(1200px 600px at 100% -10%, rgba(16, 185, 129, .10), transparent 60%),
          radial-gradient(900px 500px at -10% 110%, rgba(6, 182, 212, .08), transparent 55%);
     background-attachment: fixed;
     color: var(--camc-ink);
     -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
     letter-spacing: -.01em;
}

a {
     transition: color .15s ease, opacity .15s ease;
}

/* ------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------ */
.sidebar,
.sidebar.bg-gradient-primary {
     background-image: linear-gradient(180deg, var(--camc-sidebar) 0%, var(--camc-sidebar-2) 100%) !important;
     background-color: var(--camc-sidebar) !important;
     box-shadow: 8px 0 30px -18px rgba(2, 6, 23, .55);
     border-right: 1px solid rgba(255, 255, 255, .04);
}

@media (min-width: 768px) {
     .sidebar {
          width: 16rem !important;
     }

     .sidebar .nav-item .nav-link {
          width: 16rem;
     }
}

.sidebar .sidebar-brand-icon {
     padding: 1.25rem .5rem .5rem;
}

.sidebar .sidebar-brand-icon img {
     filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35));
     max-width: 72% !important;
     opacity: .97;
}

.sidebar hr.sidebar-divider,
.sidebar-dark hr.sidebar-divider {
     border-top: 1px solid rgba(255, 255, 255, .08);
     margin: .35rem 1.25rem;
}

.sidebar .sidebar-heading,
.sidebar-dark .sidebar-heading {
     color: #7c8ba1 !important;
     font-size: .68rem;
     font-weight: 700;
     letter-spacing: .14em;
     padding: 1rem 1.5rem .35rem;
}

.sidebar .nav-item {
     padding: 0 .75rem;
     margin-bottom: 2px;
}

.sidebar .nav-item .nav-link,
.sidebar-dark .nav-item .nav-link {
     color: #b6c2d4 !important;
     border-radius: 12px;
     padding: .7rem .9rem !important;
     font-size: .875rem;
     font-weight: 500;
     display: flex;
     align-items: center;
     gap: .15rem;
     transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sidebar .nav-item .nav-link span:first-child {
     width: 34px !important;
     height: 34px;
     display: inline-flex !important;
     align-items: center;
     justify-content: center;
     border-radius: 9px;
     background: rgba(255, 255, 255, .06);
     margin-right: .65rem;
     transition: background .18s ease, color .18s ease;
}

.sidebar .nav-item .nav-link span:first-child i {
     font-size: 1rem !important;
}

.sidebar .nav-item .nav-link:hover {
     color: #ffffff !important;
     background: rgba(255, 255, 255, .07);
}

.sidebar .nav-item .nav-link:hover span:first-child {
     background: rgba(16, 185, 129, .18);
     color: #6ee7b7;
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link.active {
     color: #ffffff !important;
     background: linear-gradient(90deg, rgba(16, 185, 129, .28), rgba(6, 182, 212, .16));
     box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .22);
}

.sidebar .nav-item.active .nav-link span:first-child,
.sidebar .nav-item .nav-link.active span:first-child {
     background: linear-gradient(135deg, var(--camc-primary), var(--camc-accent));
     color: #ffffff;
     box-shadow: 0 6px 14px -6px rgba(16, 185, 129, .8);
}

.sidebar #sidebarToggle,
.sidebar #sidebarToggle:hover {
     background-color: rgba(255, 255, 255, .06) !important;
     color: #cbd5e1 !important;
}

.sidebar #sidebarToggle::after {
     color: #cbd5e1;
}

/* Collapsed sidebar keeps icons centred */
@media (min-width: 768px) {
     .sidebar.toggled .nav-item {
          padding: 0 .4rem;
     }

     .sidebar.toggled .nav-item .nav-link {
          width: 5.7rem;
          justify-content: center;
     }

     .sidebar.toggled .nav-item .nav-link span:first-child {
          margin-right: 0;
     }

     .sidebar.toggled .nav-item .nav-link > span:last-child {
          display: none;
     }
}

/* ------------------------------------------------------------
   Topbar
   ------------------------------------------------------------ */
#content-wrapper {
     background: transparent;
}

.topbar,
.navbar.topbar {
     background: rgba(255, 255, 255, .82) !important;
     backdrop-filter: saturate(180%) blur(14px);
     -webkit-backdrop-filter: saturate(180%) blur(14px);
     border-bottom: 1px solid var(--camc-border);
     box-shadow: none !important;
     min-height: 72px;
     padding: 0 1.5rem;
     position: sticky;
     top: 0;
     z-index: 1020;
}

.topbar .nav-link {
     color: var(--camc-ink-soft) !important;
     display: flex;
     align-items: center;
     padding: .4rem .65rem !important;
     border-radius: 10px;
}

.topbar .nav-link:hover {
     background: var(--camc-primary-soft);
     color: var(--camc-primary-dark) !important;
}

.topbar .img-profile {
     width: 38px !important;
     height: 38px !important;
     border: 2px solid #ffffff;
     box-shadow: 0 0 0 2px rgba(16, 185, 129, .35);
     background: #eef2f7;
}

.topbar .dropdown-menu {
     border: 1px solid var(--camc-border);
     border-radius: 14px;
     box-shadow: var(--camc-shadow-md);
     padding: .5rem;
     margin-top: .75rem;
}

.dropdown-menu .dropdown-item {
     border-radius: 9px;
     padding: .55rem .75rem;
     font-size: .85rem;
     color: var(--camc-ink-soft);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
     background: var(--camc-primary-soft);
     color: var(--camc-primary-dark);
}

.dropdown-menu .dropdown-item strong {
     color: var(--camc-ink);
}

/* ------------------------------------------------------------
   Content & cards
   ------------------------------------------------------------ */
.container-fluid {
     padding: 1.75rem 2rem 2.25rem;
}

.card {
     border: 1px solid var(--camc-border);
     border-radius: var(--camc-radius);
     background: var(--camc-surface);
     overflow: hidden;
}

.card.shadow,
.card.shadow-sm,
.card.shadow-lg {
     box-shadow: var(--camc-shadow-sm) !important;
     transition: box-shadow .22s ease, transform .22s ease;
}

.card.shadow:hover {
     box-shadow: var(--camc-shadow-md) !important;
}

.card-header {
     background: transparent !important;
     border-bottom: 1px solid var(--camc-border) !important;
     padding: 1rem 1.35rem !important;
}

.card-header h6,
.card-header p {
     letter-spacing: .04em;
}

.card-body {
     padding: 1.35rem;
}

.text-gray-800 {
     color: var(--camc-ink) !important;
}

.text-gray-600,
.text-gray-700 {
     color: var(--camc-muted) !important;
}

.text-gray-300 {
     color: #dbe3ee !important;
}

.color1 {
     color: var(--camc-primary-dark) !important;
}

.color3 {
     color: var(--camc-ink-soft) !important;
}

/* ------------------------------------------------------------
   Dashboard stat cards
   ------------------------------------------------------------ */
.stat-card {
     position: relative;
     border: 1px solid var(--camc-border) !important;
     border-radius: var(--camc-radius);
     overflow: hidden;
}

.stat-card::before {
     content: "";
     position: absolute;
     inset: 0 auto 0 0;
     width: 4px;
     background: var(--camc-primary);
}

.stat-card .card-body {
     padding: 1.35rem 1.4rem;
}

.stat-card__top {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 1rem;
}

.stat-card__label {
     font-size: .72rem;
     font-weight: 700;
     letter-spacing: .09em;
     text-transform: uppercase;
     color: var(--camc-muted);
     margin: 0;
}

.stat-card__icon {
     width: 46px;
     height: 46px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 13px;
     font-size: 1.1rem;
     color: var(--camc-primary-dark);
     background: var(--camc-primary-soft);
     flex: 0 0 auto;
}

.stat-card__value {
     font-size: 1.85rem;
     font-weight: 700;
     line-height: 1.15;
     color: var(--camc-ink);
     margin-top: .9rem;
}

.stat-card__value small,
.stat-card__value .font-weight-normal {
     display: block;
     font-size: .72rem;
     font-weight: 500;
     color: var(--camc-muted);
     margin-top: .25rem;
}

.stat-card__hint {
     margin-top: .9rem;
     font-size: .76rem;
     font-weight: 600;
     color: var(--camc-muted-soft);
     display: flex;
     align-items: center;
     gap: .4rem;
}

.stat-card:hover .stat-card__hint {
     color: var(--camc-primary-dark);
}

.stat-card--success::before {
     background: linear-gradient(180deg, #10b981, #06b6d4);
}

.stat-card--warning::before {
     background: linear-gradient(180deg, #f59e0b, #f97316);
}

.stat-card--warning .stat-card__icon {
     color: #b45309;
     background: #fef3c7;
}

.stat-card--danger::before {
     background: linear-gradient(180deg, #ef4444, #f97316);
}

.stat-card--danger .stat-card__icon {
     color: #b91c1c;
     background: #fee2e2;
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table {
     margin-bottom: 0;
     color: var(--camc-ink-soft);
     border-collapse: separate;
     border-spacing: 0;
}

.table thead th {
     border-top: 0;
     border-bottom: 1px solid var(--camc-border) !important;
     background: #f8fafc;
     color: var(--camc-muted) !important;
     font-size: .72rem;
     font-weight: 700;
     letter-spacing: .06em;
     text-transform: uppercase;
     padding: .9rem .85rem;
     white-space: nowrap;
}

.table tbody td {
     border: none;
     border-bottom: 1px solid #eef2f7;
     padding: .85rem;
     vertical-align: middle;
     font-size: .84rem;
}

.table tbody tr:last-child td {
     border-bottom: 0;
}

.table tbody tr {
     transition: background .15s ease;
}

table tbody tr:hover,
.table tbody tr:hover {
     background-color: #f6fbf9 !important;
}

.table-striped > tbody > tr:nth-of-type(odd),
table tbody tr.odd {
     background-color: #ffffff !important;
}

.table-striped > tbody > tr:nth-of-type(even),
table tbody tr.even {
     background-color: #fafcfe !important;
}

.numSocioEdit a {
     color: var(--camc-primary-dark) !important;
     font-weight: 700;
}

/* ------------------------------------------------------------
   DataTables controls
   ------------------------------------------------------------ */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
     border: 1px solid var(--camc-border);
     border-radius: var(--camc-radius-sm);
     padding: .5rem .75rem;
     background: #fff;
     font-size: .82rem;
     outline: none;
     transition: border-color .15s ease, box-shadow .15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
     border-color: var(--camc-primary);
     box-shadow: 0 0 0 3px rgba(16, 185, 129, .16);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
     color: var(--camc-muted);
     font-size: .8rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
     border: 0 !important;
     border-radius: 8px !important;
     background: transparent !important;
     color: var(--camc-muted) !important;
     margin: 0 1px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
     background: var(--camc-primary-soft) !important;
     color: var(--camc-primary-dark) !important;
     font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
     background: #eef2f7 !important;
     color: var(--camc-ink) !important;
}

.page-item .page-link {
     border: 0 !important;
     border-radius: 8px !important;
     color: var(--camc-muted) !important;
     margin: 0 1px;
}

.page-item.active .page-link {
     background: var(--camc-primary-soft) !important;
     color: var(--camc-primary-dark) !important;
     border-bottom: 0 !important;
     font-weight: 700;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
     border-radius: var(--camc-radius-sm);
     font-weight: 600;
     font-size: .85rem;
     padding: .55rem 1.15rem;
     transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:active {
     transform: translateY(1px);
}

.btn-primary,
.camc-button1,
.camc-button2,
.camc-buttonLog {
     background: linear-gradient(135deg, var(--camc-primary) 0%, var(--camc-primary-dark) 100%) !important;
     border: 0 !important;
     color: #ffffff !important;
     box-shadow: 0 10px 20px -12px rgba(16, 185, 129, .9);
}

.btn-primary:hover,
.camc-button1:hover,
.camc-button2:hover,
.camc-buttonLog:hover {
     background: linear-gradient(135deg, #14c98f 0%, #0a6b51 100%) !important;
     color: #ffffff !important;
     box-shadow: 0 14px 26px -12px rgba(16, 185, 129, .95);
}

.camc-buttonCancelar {
     background: #ffffff;
     color: var(--camc-muted) !important;
     border: 1px solid var(--camc-border) !important;
     border-radius: var(--camc-radius-sm) !important;
     font-weight: 600;
}

.camc-buttonCancelar:hover {
     background: #f1f5f9;
     color: var(--camc-ink) !important;
}

.button_loader {
     background: linear-gradient(135deg, var(--camc-primary), var(--camc-primary-dark));
     border: 0;
     border-radius: var(--camc-radius-sm);
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-control,
.form-select,
.custom-select,
input[type="date"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
     border-radius: var(--camc-radius-sm) !important;
     border: 1px solid var(--camc-border) !important;
     background-color: #ffffff;
     color: var(--camc-ink);
     font-size: .875rem;
     padding: .6rem .8rem;
     box-shadow: none !important;
     transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus,
.custom-select:focus,
input:focus,
select:focus,
textarea:focus {
     border-color: var(--camc-primary) !important;
     box-shadow: 0 0 0 3px rgba(16, 185, 129, .16) !important;
     outline: none;
}

.form-label,
label {
     font-size: .78rem;
     font-weight: 600;
     color: var(--camc-muted);
     margin-bottom: .35rem;
}

.form-check-input:checked {
     background-color: var(--camc-primary);
     border-color: var(--camc-primary);
}

/* ------------------------------------------------------------
   Alerts / misc
   ------------------------------------------------------------ */
.alert {
     border: 0;
     border-radius: var(--camc-radius-sm);
     font-size: .85rem;
     box-shadow: var(--camc-shadow-sm);
}

.alert-success {
     background: var(--camc-primary-soft);
     color: var(--camc-primary-dark);
}

.alert-danger {
     background: #fee2e2;
     color: #991b1b;
}

.camcfontsize01 {
     font-size: .82rem;
}

.sticky-footer {
     background: transparent !important;
     border-top: 1px solid var(--camc-border);
}

.sticky-footer .copyright {
     color: var(--camc-muted-soft);
     font-size: .75rem;
     padding: .35rem 0;
}

.scroll-to-top {
     background: linear-gradient(135deg, var(--camc-primary), var(--camc-primary-dark));
     color: #ffffff;
     border-radius: 12px !important;
     box-shadow: var(--camc-shadow-md);
}

.scroll-to-top:hover {
     color: #ffffff;
}

/* Keep the shake animation for the notification bell */
.anim {
     color: var(--camc-warning) !important;
}

/* ------------------------------------------------------------
   Login page
   ------------------------------------------------------------ */
.login-page {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 2rem 1rem;
     background:
          radial-gradient(900px 500px at 15% 15%, rgba(16, 185, 129, .35), transparent 60%),
          radial-gradient(800px 500px at 85% 85%, rgba(6, 182, 212, .30), transparent 60%),
          linear-gradient(140deg, #051937 0%, #004d7a 45%, #007a6c 100%);
}

.login-shell {
     width: 100%;
     max-width: 960px;
     display: grid;
     grid-template-columns: 1.05fr .95fr;
     background: rgba(255, 255, 255, .08);
     border: 1px solid rgba(255, 255, 255, .18);
     border-radius: 26px;
     overflow: hidden;
     box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .65);
     backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
}

.login-brand {
     position: relative;
     padding: 3rem 2.75rem;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     background:
          radial-gradient(600px 400px at 0% 0%, rgba(16, 185, 129, .38), transparent 55%),
          linear-gradient(160deg, rgba(5, 25, 55, .55), rgba(0, 77, 122, .35));
     color: #ffffff;
}

.login-brand__logo {
     width: 150px;
     max-width: 70%;
     filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

.login-brand__title {
     font-size: 1.65rem;
     font-weight: 700;
     line-height: 1.25;
     margin: 2.5rem 0 .75rem;
}

.login-brand__text {
     font-size: .9rem;
     color: rgba(255, 255, 255, .72);
     max-width: 34ch;
     line-height: 1.6;
}

.login-brand__chips {
     display: flex;
     flex-wrap: wrap;
     gap: .5rem;
     margin-top: 2rem;
}

.login-brand__chip {
     font-size: .72rem;
     font-weight: 600;
     padding: .4rem .7rem;
     border-radius: 999px;
     background: rgba(255, 255, 255, .12);
     border: 1px solid rgba(255, 255, 255, .16);
     color: rgba(255, 255, 255, .85);
}

.login-panel {
     background: #ffffff;
     padding: 3rem 2.75rem;
     display: flex;
     flex-direction: column;
     justify-content: center;
}

.login-panel__title {
     font-size: 1.35rem;
     font-weight: 700;
     color: var(--camc-ink);
     margin-bottom: .35rem;
}

.login-panel__subtitle {
     font-size: .85rem;
     color: var(--camc-muted);
     margin-bottom: 2rem;
}

.login-panel .form-control {
     background: #f8fafc;
     border-color: #e2e8f0 !important;
     padding: .8rem 1rem;
     font-size: .9rem;
}

.login-panel .form-control:focus {
     background: #ffffff;
}

.login-panel .camc-buttonLog {
     padding: .8rem 1rem;
     border-radius: var(--camc-radius-sm) !important;
     font-weight: 700;
     letter-spacing: .01em;
}

.login-panel .loginColorGray {
     color: var(--camc-muted) !important;
     font-size: .8rem;
}

.login-panel .loginColorGray2,
.login-panel hr {
     border-color: var(--camc-border);
}

.login-panel .loginColorGray2 {
     color: var(--camc-muted-soft) !important;
}

.login-footnote {
     text-align: center;
     margin-top: 1.5rem;
     color: rgba(255, 255, 255, .55);
     font-size: .72rem;
}

@media (max-width: 860px) {
     .login-shell {
          grid-template-columns: 1fr;
          max-width: 440px;
     }

     .login-brand {
          padding: 2rem;
     }

     .login-brand__title {
          font-size: 1.3rem;
          margin-top: 1.5rem;
     }

     .login-brand__text,
     .login-brand__chips {
          display: none;
     }

     .login-panel {
          padding: 2rem;
     }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 991px) {
     .container-fluid {
          padding: 1.25rem 1.1rem 1.75rem;
     }

     .topbar {
          padding: 0 .9rem;
     }
}

@media (max-width: 575px) {
     .stat-card__value {
          font-size: 1.6rem;
     }

     .card-body {
          padding: 1.1rem;
     }
}

/* ------------------------------------------------------------
   Final polish
   ------------------------------------------------------------ */
.topbar .nav-link .fa-bell {
     font-size: 1.2rem !important;
}

.container-fluid > .d-sm-flex h1,
.container-fluid > .d-sm-flex .h3 {
     font-size: 1.5rem;
     font-weight: 700;
     letter-spacing: -.02em;
}

.card-header h6 {
     color: var(--camc-ink-soft) !important;
     font-size: .78rem;
     font-weight: 700;
     letter-spacing: .06em;
}

.sidebar .sidebar-brand-icon img {
     transition: transform .25s ease;
}

.sidebar .sidebar-brand-icon img:hover {
     transform: scale(1.03);
}

@media (min-width: 768px) {
     #content-wrapper {
          min-width: 0;
     }
}

/* Glass card used by the standalone password pages */
.loginOpacity.card {
     background: rgba(255, 255, 255, .12) !important;
     border: 1px solid rgba(255, 255, 255, .18) !important;
     border-radius: 22px;
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
}

.loginOpacity.card .card-body {
     color: #ffffff;
}
