:root {
    --primary: #002b5b;
    --primary-light: #004d80;
    --secondary: #c9a44c;
    --accent: #21e6c1;
    --bg-dark: #0a0e14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f0f0f0;
    --text-dim: #b0b0b0;
    --white: #ffffff;
    --error: #ff4d4d;
    --success: #00e676;
    --warning: #ffb300;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --logo-size: 55px;
}


/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.waves-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at top right, #001a33, #0a0e14);
    opacity: 0.8;
}

/* Auth Section */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo-main {
    width: 120px;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(33, 230, 193, 0.1);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 77, 128, 0.5);
}

/* Dashboard UI - Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: unset;
    max-width: 95%;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(33, 230, 193, 0.3);
}

.navbar .logo-small {
    height: 40px;
    /* More compact */
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.dashboard-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.badge-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 77, 77, 0.1);
    color: var(--error);
}

.badge-pending {
    background: rgba(255, 179, 0, 0.1);
    color: var(--warning);
}

.responsive-table {
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent);
}

/* Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .navbar {
        width: fit-content;
        min-width: unset;
        top: 10px;
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }

    .brand-name {
        display: none;
        /* Keep it compact on mobile */
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    /* Table for Mobile */
    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        background: var(--bg-card);
        padding: 0.5rem;
    }

    .responsive-table td {
        border-bottom: 1px solid var(--glass-border);
        position: relative;
        padding-left: 50% !important;
        text-align: right !important;
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .responsive-table td:before {
        position: absolute;
        left: 1rem;
        font-weight: 700;
        color: var(--accent);
    }

    .responsive-table td:nth-of-type(1):before {
        content: "Cliente";
    }

    .responsive-table td:nth-of-type(2):before {
        content: "Barco";
    }

    .responsive-table td:nth-of-type(3):before {
        content: "Valor";
    }

    .responsive-table td:nth-of-type(4):before {
        content: "Vencimento";
    }

    .responsive-table td:nth-of-type(5):before {
        content: "Mensalidade";
    }

    .responsive-table td.actions-cell {
        display: flex !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        text-align: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.05);
        border-top: 1px solid var(--glass-border);
        margin-top: 0.5rem;
        flex-direction: column !important;
        padding-bottom: 2rem !important;
        height: auto;
        gap: 0.8rem;
    }

    .responsive-table td.actions-cell:before {
        content: "Ações" !important;
        position: static !important;
        display: block !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
        left: unset !important;
        color: var(--accent);
        font-weight: 700;
    }

    /* Ultra-compact badge styles for mobile to prevent wrapping */
    .badge,
    .badge-success,
    .badge-warning,
    .badge-pending {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.58rem !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        line-height: 1.3 !important;
        letter-spacing: -0.01em !important;
    }

    /* Boat card mobile adjustments */
    .boat-status-card .badge-payment {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .boat-header {
        flex-direction: row;
        gap: 0.8rem;
    }

    .boat-title-wrapper {
        gap: 0.5rem;
    }

    .boat-title-wrapper h3 {
        font-size: 1.2rem;
    }

    .boat-title-wrapper #boat-name {
        font-size: 1rem;
    }

    /* Fix strict badge size for status text */
    #status-text {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        margin-top: 1rem !important;
    }
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Weekly Forecast */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.forecast-item {
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle background instead of border */
}

.forecast-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.forecast-good {
    background: rgba(33, 230, 193, 0.1);
    /* border removal */
}

.forecast-bad {
    background: rgba(255, 99, 132, 0.1);
    /* border removal */
}

.forecast-today {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(33, 230, 193, 0.2);
    z-index: 1;
}

.forecast-today strong {
    color: var(--accent);
}

/* ==================== */
/* Dashboard Layout     */
/* ==================== */

.dashboard-container-client .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

.boat-status-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.boat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.boat-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.boat-title-wrapper h3 {
    margin: 0;
    font-size: 1.4rem;
}

.boat-title-wrapper #boat-name {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

/* Payment badge positioned at top-right */
.boat-status-card .badge-payment {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    margin: 0;
}

/* Navbar Fix */
.dashboard-container-client {
    margin-top: 7rem;
    /* Explicit clearance for floating navbar */
}

.forecast-detail {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Blocked Action Alert */
.payment-alert {
    background: rgba(255, 77, 77, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ==================== */
/* Loading & Feedback   */
/* ==================== */

/* Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.spinner-dark {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: #000;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading.btn-accent::after {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: #000;
}

/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
}

/* Toast Notification */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(15, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
    font-size: 0.9rem;
    color: var(--text-main);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(50%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    background: rgba(0, 230, 118, 0.2);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error);
}

.toast-info .toast-icon {
    background: rgba(33, 230, 193, 0.2);
    color: var(--accent);
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Page Loading Overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1rem;
}

.page-loading .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.page-loading-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Language Toggle Button (fixed position on login page) */
#lang-toggle.lang-toggle-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

/* Lucide Icon Styling */
.icon-sm {
    width: 20px;
    height: 20px;
    color: white;
    opacity: 0.8;
}

.icon-btn {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Admin Group */
.input-group-hidden {
    display: none;
    position: relative;
}

.input-wrapper {
    position: relative;
}

/* Toggle Password Button */
#toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    margin-top: 1rem;
}

/* Admin Login Toggle Link */
.admin-login-link {
    display: block;
    margin-top: 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
}

.admin-login-link:hover {
    color: var(--accent);
}

/* Navigation Links Container */
/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Welcome Message */
#welcome-msg {
    margin-right: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* Compact Button */
.btn-compact {
    padding: 0.5rem 1rem;
    width: auto;
}

/* Payment Badge */
.badge-payment {
    margin: 0.5rem 0 1rem 0;
    display: inline-block;
}

/* Status Text */
#status-text {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Payment Amount */
.payment-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
}

/* Payment Subtitle */
.payment-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

/* QR Code Container */
.qr-code-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(33, 230, 193, 0.2);
}

.qr-code-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* PIX Code Display - Hidden Visually but kept for JS */
.pix-code-display {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Copy PIX Button */
.btn-copy-pix {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: #000;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.payment-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-header-center {
    margin-bottom: 1.5rem;
}

/* Weather Display */
.weather-display {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#weather-icon {
    font-size: 2.5rem;
}

#weather-temp {
    font-weight: 700;
    font-size: 1.5rem;
}

#weather-desc {
    opacity: 0.7;
}

.weather-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Divider */
.divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--glass-border);
}

/* Weather Tip */
#weather-tip {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Large Icon */
.icon-lg {
    width: 48px;
    height: 48px;
}

/* ==================== */
/* Admin Panel Styles   */
/* ==================== */

/* Navbar Actions Container */
.navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-logout-compact {
    padding: 0.5rem 1rem;
    width: auto;
    font-size: 0.9rem;
}

.badge-admin {
    background: rgba(33, 230, 193, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid var(--accent);
    letter-spacing: 1px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.admin-form-grid .input-group {
    margin-bottom: 0;
}

.admin-form-grid input {
    margin-bottom: 0;
}

.btn-accent {
    background: var(--accent);
    color: #001a33;
}

.card-no-padding {
    padding: 0 !important;
}

/* ==================== */
/* Modal Styles         */
/* ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a121d;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error);
    border-color: rgba(255, 77, 77, 0.3);
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    width: auto;
    padding: 0.75rem 1.5rem;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.btn-save {
    width: auto;
    padding: 0.75rem 2rem;
}

/* Dashboard Container Wide (Admin) */
.dashboard-container-wide {
    max-width: 1200px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.user-welcome {
    margin-bottom: 2rem;
}

.admin-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

/* Notification Panel */
.notification-panel {
    max-height: 500px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.notification-item:last-child {
    border-bottom: none;
}

/* Adjust main container to avoid navbar overlap */
.dashboard-container {
    margin-top: 6rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-container {
        margin-top: 5rem;
    }
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    /* Try to keep on one line if possible */
    align-items: center;
}

/* Specific Column Widths & Alignment */
.responsive-table th,
.responsive-table td {
    vertical-align: middle;
}

/* Prevent wrapping on data columns */
.responsive-table td:nth-child(1),
/* Cliente */
.responsive-table td:nth-child(2),
/* Barco */
.responsive-table td:nth-child(3),
/* Valor */
.responsive-table td:nth-child(4) {
    /* Mensalidade */
    white-space: nowrap;
}

/* Give Action column enough space */
.responsive-table td:last-child {
    min-width: 200px;
    /* Ensure enough space for buttons */
    width: 1%;
    /* Collapse to content width but respect min-width */
    white-space: nowrap;
}

/* Mobile Table Card Improvements */
@media (max-width: 768px) {
    .responsive-table tr {
        margin-bottom: 2rem;
        /* Increased spacing between cards */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        /* Better separation */
    }

    .responsive-table td {
        padding-left: 50% !important;
        text-align: right !important;
        justify-content: flex-end;
    }

    .responsive-table td:last-child {
        justify-content: center;
        /* Center actions on mobile */
        padding-left: 0 !important;
        text-align: center !important;
        flex-direction: row;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-top: 1px solid var(--glass-border);
    }

    .responsive-table td:last-child:before {
        display: none;
        /* Hide 'Ações' label on mobile to save space/cleaner look */
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* Animation for button click */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.3s ease-in-out;
}

/* Force positioning for the payment badge */
#payment-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    margin: 0;
    z-index: 10;
}

.controls {
    margin-top: 1.5rem;
}