* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e8eaf6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.logo {
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #209BD5 0%, #1a7fb8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item a:hover {
    background: rgba(32, 155, 213, 0.1);
    color: #209BD5;
}

.nav-item a:hover::before {
    transform: scaleY(1);
}

.nav-item.active a {
    background: linear-gradient(90deg, rgba(32, 155, 213, 0.15) 0%, rgba(32, 155, 213, 0.05) 100%);
    color: #209BD5;
}

.nav-item.active a::before {
    transform: scaleY(1);
}

.nav-item .icon {
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Content */
.content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #209BD5 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(32, 155, 213, 0.3);
    border-color: rgba(32, 155, 213, 0.4);
}

.stat-card.blue {
    border-left: 4px solid #209BD5;
}

.stat-card.green {
    border-left: 4px solid #4ade80;
}

.stat-card.yellow {
    border-left: 4px solid #fbbf24;
}

.stat-card.red {
    border-left: 4px solid #f87171;
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(32, 155, 213, 0.5));
}

.stat-info h3 {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #209BD5 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .logo h1,
    .nav-item span:not(.icon) {
        display: none;
    }

    .content {
        margin-left: 70px;
    }

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

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .login-logo {
    width: 280px !important;
    height: auto !important;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #209BD5 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e8eaf6;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #209BD5;
    box-shadow: 0 0 0 3px rgba(32, 155, 213, 0.1);
    background: rgba(13, 13, 13, 0.8);
}

.form-group input::placeholder {
    color: #6b7280;
}

.error-message {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    color: #f87171;
    font-size: 0.9rem;
    text-align: center;
}

.btn-login {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 155, 213, 0.4);
    background: linear-gradient(135deg, #1a7fb8 0%, #209BD5 100%);
}

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

/* Logout Button */
.logout-btn {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: #9ca3af;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Page */
.profile-container {
    max-width: 800px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(32, 155, 213, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.4);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(32, 155, 213, 0.6);
}

.avatar-upload-btn input {
    display: none;
}

.profile-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #9ca3af;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #209BD5;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.info-value {
    color: #fff;
    font-size: 1rem;
    padding: 0.875rem;
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 0;
}

.btn-save {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 155, 213, 0.4);
}

.success-message {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    color: #4ade80;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Configurações Page */
.config-container {
    max-width: 900px;
}

.config-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.config-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.config-description {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Usuários Container */
.usuarios-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.usuario-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(32, 155, 213, 0.3);
    border-color: rgba(32, 155, 213, 0.4);
}

.usuario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.usuario-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.table-badge {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(32, 155, 213, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Client Link Modal Styles */
.client-link-info-card {
    padding: 1.5rem;
}

.client-link-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(32, 155, 213, 0.05);
    border: 1px solid rgba(32, 155, 213, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.client-info {
    flex: 1;
}

.client-info h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.client-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    font-size: 0.9rem;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.link-section {
    margin-bottom: 1.5rem;
}

.link-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.link-label .icon {
    font-size: 1.1rem;
}

.link-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-input {
    flex: 1;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(32, 155, 213, 0.3);
    border-radius: 10px;
    padding: 0.875rem;
    color: #209BD5;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 155, 213, 0.4);
}

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

.copy-icon {
    font-size: 1rem;
}

.link-hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 155, 213, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.info-label {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-delete {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    transform: translateY(-2px);
}

.btn-delete .icon {
    font-size: 1rem;
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.label-hint {
    display: block;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.form-group {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.btn-toggle-password:hover {
    color: #00d4ff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-test {
    background: transparent;
    border: 1px solid rgba(32, 155, 213, 0.3);
    color: #209BD5;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-test:hover {
    background: rgba(32, 155, 213, 0.1);
    border-color: #209BD5;
    transform: translateY(-2px);
}

.btn-refresh {
    background: transparent;
    border: 1px solid rgba(32, 155, 213, 0.3);
    color: #209BD5;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-refresh:hover {
    background: rgba(32, 155, 213, 0.1);
    border-color: #209BD5;
}

.btn-page {
    background: transparent;
    border: 1px solid rgba(32, 155, 213, 0.3);
    color: #209BD5;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-page:hover:not(:disabled) {
    background: rgba(32, 155, 213, 0.1);
    border-color: #209BD5;
    transform: translateY(-2px);
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: #9ca3af;
}

.btn-enviar-conversao {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(32, 155, 213, 0.3);
}

.btn-enviar-conversao:hover {
    background: linear-gradient(135deg, #1a7fb8 0%, #209BD5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.4);
}

/* Client Dashboard */
.client-dashboard-container {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.client-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.client-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #209BD5 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-content {
    width: 100%;
}

.client-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.btn-client-link {
    background: linear-gradient(135deg, #209BD5 0%, #1a7fb8 100%);
    border: none;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(32, 155, 213, 0.3);
}

.btn-client-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 155, 213, 0.4);
}

/* Company Logo Preview */
.company-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-logo-preview {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.6);
    overflow: hidden;
}

.company-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Client Footer */
.client-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.client-footer p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}



.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: #209BD5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #888;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #209BD5, #64b5f6);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: #ffffff;
}

/* Info Box */
.info-box {
    background-color: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.info-box h4 {
    color: #00d4ff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.info-box ol {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-box ol li {
    margin-bottom: 0.5rem;
}

.info-box strong {
    color: #fff;
}

.info-box a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.info-box a:hover {
    color: #00ff88;
}

.info-note {
    color: #ffd700;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.75rem;
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #ffd700;
    border-radius: 4px;
}

/* Supabase Data Section */
.supabase-section {
    margin-top: 2rem;
}

.supabase-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.select-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper select {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.875rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.select-wrapper select option {
    background-color: #2a2a2a;
    color: #fff;
}

.btn-refresh {
    background-color: transparent;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

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

.data-table-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table thead {
    background: rgba(32, 155, 213, 0.1);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: #209BD5;
    font-weight: 600;
    border-bottom: 2px solid rgba(32, 155, 213, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.data-table td {
    padding: 1rem;
    color: #e8eaf6;
    border-bottom: 1px solid rgba(32, 155, 213, 0.1);
    font-size: 0.95rem;
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(32, 155, 213, 0.05);
}

.data-table tbody tr.has-conversion {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-left: 3px solid #4ade80;
}

.data-table tbody tr.has-conversion:hover {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.08) 100%);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(32, 155, 213, 0.3));
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: #209BD5;
    font-size: 1.1rem;
}

.table-info {
    padding: 1rem;
    background: rgba(13, 13, 13, 0.6);
    border-top: 1px solid rgba(32, 155, 213, 0.2);
    color: #9ca3af;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-info strong {
    color: #209BD5;
}

/* Custom Date Range */
.custom-date-range {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.date-inputs .form-group {
    margin: 0;
}

.date-inputs input[type="date"] {
    background-color: #000;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 0.875rem;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.date-inputs input[type="date"]:focus {
    outline: none;
    border-color: #00d4ff;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
}

.btn-page {
    background-color: transparent;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* Usuários Container */
.usuarios-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.usuario-card {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.1);
}

.usuario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1a1a1a;
}

.usuario-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.table-badge {
    background: #666666;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.usuario-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usuario-form .form-group {
    position: relative;
}

.usuario-form .btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 2.5rem;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.usuario-form .btn-toggle-password:hover {
    color: #00d4ff;
}

@media (max-width: 768px) {
    .usuarios-container {
        grid-template-columns: 1fr;
    }
}

/* Conversão Container */
.conversao-container {
    max-width: 800px;
}

.conversao-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 2rem;
}

.conversao-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3a3a3a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid #666666;
    color: #ffffff;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-enviar-conversao {
    background: #ffffff;
    border: none;
    color: #1c1c1c;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-enviar-conversao:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}
