@charset "UTF-8";
/*
! tailwindcss v3.3.0 | MIT License | https://tailwindcss.com
*/
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #E5E7EB; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/
html {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font family by default.
2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-size: 1em; /* 2 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9CA3AF; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9CA3AF; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}
.tooltip-arrow,.tooltip-arrow:before{
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}
.tooltip-arrow{
  visibility: hidden;
}
.tooltip-arrow:before{
  content: "";
  visibility: visible;
  transform: rotate(45deg);
}
[data-tooltip-style^='light'] + .tooltip > .tooltip-arrow:before{
  border-style: solid;
  border-color: #e5e7eb;
}
[data-tooltip-style^='light'] + .tooltip[data-popper-placement^='top'] > .tooltip-arrow:before{
  border-bottom-width: 1px;
  border-right-width: 1px;
}
[data-tooltip-style^='light'] + .tooltip[data-popper-placement^='right'] > .tooltip-arrow:before{
  border-bottom-width: 1px;
  border-left-width: 1px;
}
[data-tooltip-style^='light'] + .tooltip[data-popper-placement^='bottom'] > .tooltip-arrow:before{
  border-top-width: 1px;
  border-left-width: 1px;
}
[data-tooltip-style^='light'] + .tooltip[data-popper-placement^='left'] > .tooltip-arrow:before{
  border-top-width: 1px;
  border-right-width: 1px;
}
.tooltip[data-popper-placement^='top'] > .tooltip-arrow{
  bottom: -4px;
}
.tooltip[data-popper-placement^='bottom'] > .tooltip-arrow{
  top: -4px;
}
.tooltip[data-popper-placement^='left'] > .tooltip-arrow{
  right: -4px;
}
.tooltip[data-popper-placement^='right'] > .tooltip-arrow{
  left: -4px;
}
.tooltip.invisible > .tooltip-arrow:before{
  visibility: hidden;
}
[data-popper-arrow],[data-popper-arrow]:before{
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}
[data-popper-arrow]{
  visibility: hidden;
}
[data-popper-arrow]:before{
  content: "";
  visibility: visible;
  transform: rotate(45deg);
}
[data-popper-arrow]:after{
  content: "";
  visibility: visible;
  transform: rotate(45deg);
  position: absolute;
  width: 9px;
  height: 9px;
  background: inherit;
}
[role="tooltip"] > [data-popper-arrow]:before{
  border-style: solid;
  border-color: #e5e7eb;
}
.dark [role="tooltip"] > [data-popper-arrow]:before{
  border-style: solid;
  border-color: #4b5563;
}
[role="tooltip"] > [data-popper-arrow]:after{
  border-style: solid;
  border-color: #e5e7eb;
}
.dark [role="tooltip"] > [data-popper-arrow]:after{
  border-style: solid;
  border-color: #4b5563;
}
[data-popover][role="tooltip"][data-popper-placement^='top'] > [data-popper-arrow]:before{
  border-bottom-width: 1px;
  border-right-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='top'] > [data-popper-arrow]:after{
  border-bottom-width: 1px;
  border-right-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='right'] > [data-popper-arrow]:before{
  border-bottom-width: 1px;
  border-left-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='right'] > [data-popper-arrow]:after{
  border-bottom-width: 1px;
  border-left-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='bottom'] > [data-popper-arrow]:before{
  border-top-width: 1px;
  border-left-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='bottom'] > [data-popper-arrow]:after{
  border-top-width: 1px;
  border-left-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='left'] > [data-popper-arrow]:before{
  border-top-width: 1px;
  border-right-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='left'] > [data-popper-arrow]:after{
  border-top-width: 1px;
  border-right-width: 1px;
}
[data-popover][role="tooltip"][data-popper-placement^='top'] > [data-popper-arrow]{
  bottom: -5px;
}
[data-popover][role="tooltip"][data-popper-placement^='bottom'] > [data-popper-arrow]{
  top: -5px;
}
[data-popover][role="tooltip"][data-popper-placement^='left'] > [data-popper-arrow]{
  right: -5px;
}
[data-popover][role="tooltip"][data-popper-placement^='right'] > [data-popper-arrow]{
  left: -5px;
}
[role="tooltip"].invisible > [data-popper-arrow]:before{
  visibility: hidden;
}
[role="tooltip"].invisible > [data-popper-arrow]:after{
  visibility: hidden;
}
[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select{
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6B7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}
[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #1C64F2;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #1C64F2;
}
input::-moz-placeholder, textarea::-moz-placeholder{
  color: #6B7280;
  opacity: 1;
}
input::placeholder,textarea::placeholder{
  color: #6B7280;
  opacity: 1;
}
::-webkit-datetime-edit-fields-wrapper{
  padding: 0;
}
input[type="time"]::-webkit-calendar-picker-indicator{
  background: none;
}
select:not([size]){
  background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 0.75em 0.75em;
  padding-right: 2.5rem;
}

/* 
   ==========================================================================
   MODERN PAYMENT MODAL STYLES (Inline Checkout)
   ==========================================================================
*/

/* Modal Overlay */
#checkoutModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

/* Modal Content Box */
.checkout-box {
    background-color: #ffffff;
    margin: 5vh auto;
    padding: 0;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

/* Modal Header */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.checkout-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Close Button */
.close-checkout {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-checkout:hover {
    color: #ef4444;
    background-color: #fef2f2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments for Modal */
@media (max-width: 480px) {
    .checkout-box {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
    
    .checkout-header {
        padding: 16px 20px;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modern-pay-container {
    padding: 32px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    max-width: 100%;
    margin: 0 auto;
}

.modern-pay-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modern-pay-amount-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.modern-pay-amount {
    font-size: 42px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    line-height: 1;
}

.modern-pay-due {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.modern-pay-client {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modern-pay-client-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #bae6fd;
}

.modern-pay-client-info {
    overflow: hidden;
    flex: 1;
}

.modern-pay-client-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-pay-client-doc {
    font-size: 13px;
    color: #64748b;
}

/* PIX Styles */
.modern-pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modern-qr-wrapper {
    width: 220px;
    height: 220px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.modern-qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modern-copy-box {
    width: 100%;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.modern-copy-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modern-input-group {
    display: flex;
    gap: 10px;
}

.modern-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    font-family: 'Monaco', 'Consolas', monospace;
    outline: none;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modern-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modern-btn-copy {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.modern-btn-copy:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(15, 23, 42, 0.3);
}

.modern-btn-copy:active {
    transform: translateY(0);
}

/* Boleto Styles */
.modern-boleto-container {
    text-align: center;
    padding: 16px 0;
}

.modern-boleto-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: #f59e0b;
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.2));
}

.modern-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f59e0b;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.modern-btn-download:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

@media (max-width: 480px) {
    .modern-pay-container { padding: 20px; }
    .modern-pay-amount { font-size: 32px; }
    .modern-qr-wrapper { width: 180px; height: 180px; }
    .modern-input-group { flex-direction: column; }
    .modern-btn-copy { padding: 14px; justify-content: center; }
    .modern-copy-box { padding: 12px; }
    .modern-pay-header { margin-bottom: 24px; padding-bottom: 16px; }
    .modern-pay-client { padding: 12px; margin-bottom: 24px; }
}

/* ==========================================================================
   RESTORED DASHBOARD LAYOUT STYLES
   ========================================================================== */

/* Overlay for Mobile Sidebar */
.overlay-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 29;
}

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    height: 70px;
}
.dark .navbar {
    background: #1f2937;
    border-color: #374151;
}

/* Dashboard Main Layout */
.dashboard-main {
    transition: margin-left 0.3s ease;
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
}
.dark .dashboard-main {
    background-color: #111827;
}

.dashboard-main-body {
    padding: 24px;
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Footer */
.d-footer {
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.dark .d-footer {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    left: -280px; /* Hidden by default on mobile */
    top: 0;
    z-index: 30;
    height: 100vh;
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.dark .sidebar {
    background-color: #1f2937;
    border-color: #374151;
}

/* Sidebar Header / Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 70px; /* Match navbar height */
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}
.dark .sidebar-logo {
    border-color: #374151;
}

.sidebar-logo img {
    max-height: 40px;
    width: auto;
}

/* Sidebar Menu Area */
.sidebar-menu-area {
    padding: 16px 0;
    flex: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

/* Sidebar Links */
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.dark .sidebar-menu li a {
    color: #9ca3af;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active-page {
    color: #2563eb;
    background-color: #eff6ff;
    border-left-color: #2563eb;
}
.dark .sidebar-menu li a:hover,
.dark .sidebar-menu li a.active-page {
    color: #60a5fa;
    background-color: rgba(30, 58, 138, 0.4);
    border-left-color: #60a5fa;
}

/* Menu Icons */
.menu-icon {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Group Title */
.sidebar-menu-group-title {
    padding: 16px 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Close Button (Mobile) */
.sidebar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    z-index: 40;
}
.dark .sidebar-close-btn {
    border-color: #4b5563;
    color: #9ca3af;
}

/* Responsive Behavior */
@media (min-width: 1024px) {
    /* Desktop: Sidebar visible, Main content pushed */
    .sidebar {
        left: 0;
    }
    
    .dashboard-main {
        margin-left: 260px;
    }
    
    .sidebar-close-btn {
        display: none;
    }
    
    /* Collapsed state (if toggled via JS class 'active') */
    .sidebar.active {
        left: -260px;
    }
    
    .dashboard-main.active {
        margin-left: 0;
    }
}

@media (max-width: 1023px) {
    /* Mobile/Tablet: Sidebar hidden by default */
    .sidebar {
        left: -280px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    /* Open state */
    .sidebar.sidebar-open {
        left: 0;
    }
}
}
/* 
   ==========================================================================
   DASHBOARD CARDS RESTORATION
   ==========================================================================
*/

/* Invoice Card - Modern Green Style */
.invoice-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0; /* Padding handled by modern-card-body if used, or added explicitly */
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.invoice-content.overdue {
    border-left: 4px solid #ef4444;
    background: #fff1f2;
    padding: 20px;
    margin: -20px; /* Compensate for modern-card-body padding if needed */
    margin-bottom: 0;
    width: calc(100% + 40px);
}

.invoice-info {
    flex: 1;
}

.invoice-amount-large {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.invoice-amount-large.overdue {
    color: #ef4444;
}

.discount-banner {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #047857;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.invoice-amounts {
    margin-bottom: 8px;
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.amount-value.discounted {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.02em;
}

.amount-value.original {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.invoice-due-date {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-due-date.overdue {
    color: #ef4444;
    font-weight: 600;
}

.btn-pay-fixed {
    width: auto;
    min-width: 120px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #10b981; /* Green as requested */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
}

.btn-pay-fixed:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-pay-fixed.btn-overdue {
    background: #ef4444;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-pay-fixed.btn-overdue:hover {
    background: #dc2626;
    box-shadow: 0 6px 10px -1px rgba(239, 68, 68, 0.4);
}

/* Modern Card Styles */
.modern-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.modern-card-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-card-icon {
    font-size: 20px;
    color: #64748b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-card:hover .modern-card-icon {
    background: #e2e8f0;
    color: #3b82f6;
    transform: scale(1.1);
}

.no-invoice-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 12px;
}


.modern-card-body {
    padding: 20px;
    flex: 1;
}

/* Dark Mode for Modern Card */
.dark .modern-card, [data-theme='dark'] .modern-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .modern-card-header, [data-theme='dark'] .modern-card-header {
    background: #111827;
    border-color: #374151;
}

.dark .modern-card-header h3, [data-theme='dark'] .modern-card-header h3 {
    color: #f1f5f9;
}

.dark .modern-card-icon, [data-theme='dark'] .modern-card-icon {
    background: #374151;
    color: #9ca3af;
}

.dark .modern-card:hover .modern-card-icon, [data-theme='dark'] .modern-card:hover .modern-card-icon {
    background: #4b5563;
    color: #60a5fa;
}


/* Referral Card - Modern Style */
.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.stat-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.code-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.code-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.referral-code {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.referral-code:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.code-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-copy-code, .btn-share-code {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-copy-code:hover, .btn-share-code:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Custom Cards (XCAST, PAINEL DO APP) */
/* The base styles were missing from dashboard.php outside of @media */

.custom-card { 
    background: #ffffff; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); 
    border: 1px solid #f1f5f9; 
    position: relative; 
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.custom-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.custom-card-header { 
    padding: 16px 20px;
    background: var(--card-color, #1e40af);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.custom-card-body {
    padding: 20px;
    flex: 1;
    background: #fff;
}

.custom-card-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #ffffff; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.custom-field-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
}

.field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label-outside {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
}

.field-value-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    height: auto;
}

.field-value {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    white-space: normal;
    word-break: break-all;
    font-family: 'Monaco', monospace;
    flex: 1;
    line-height: 1.4;
}

.btn-copy-custom {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-custom:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-access { 
    background: #f59e0b; /* Fallback default */
    color: #fff; 
    padding: 12px 24px; 
    border-radius: 12px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    text-decoration: none; 
    font-size: 14px; 
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 16px;
    transition: all 0.2s;
}

.btn-access:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

/* Dark Mode Overrides */
.dark .custom-card, [data-theme='dark'] .custom-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .custom-card-body, [data-theme='dark'] .custom-card-body {
    background: #1f2937;
}

.dark .field-value-box, [data-theme='dark'] .field-value-box {
    background: #111827;
    border-color: #374151;
}

.dark .field-value, [data-theme='dark'] .field-value {
    color: #e2e8f0;
}

.dark .field-label-outside, [data-theme='dark'] .field-label-outside {
    color: #94a3b8;
}

.dark .invoice-amount-large, [data-theme='dark'] .invoice-amount-large {
    color: #f1f5f9;
}

.dark .invoice-due-date, [data-theme='dark'] .invoice-due-date {
    color: #94a3b8;
}

.dark .stat-item, [data-theme='dark'] .stat-item {
    background: #1f2937;
    border-color: #374151;
}

.dark .stat-label, [data-theme='dark'] .stat-label {
    color: #94a3b8;
}

.dark .referral-code, [data-theme='dark'] .referral-code {
    background: #111827;
    border-color: #374151;
    color: #f1f5f9;
}

.dark .btn-copy-code, [data-theme='dark'] .btn-copy-code,
.dark .btn-share-code, [data-theme='dark'] .btn-share-code {
    background: #1f2937;
    border-color: #374151;
    color: #e2e8f0;
}

.dark .btn-copy-code:hover, [data-theme='dark'] .btn-copy-code:hover,
.dark .btn-share-code:hover, [data-theme='dark'] .btn-share-code:hover {
    background: #374151;
}

