/* RentAuto — System Design stylesheet */

:root {
    --bg-dark: #07090e;
    --sidebar-bg: rgba(10, 15, 26, 0.7);
    --card-bg: rgba(18, 26, 44, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 255, 157, 0.25);
    
    /* Neon Colors */
    --neon-emerald: #00ff9d;
    --neon-cyan: #00e5ff;
    --neon-pink: #ff2e93;
    --neon-amber: #ffaa00;
    
    /* Gradients */
    --grad-emerald: linear-gradient(135deg, #00ff9d 0%, #00b0ff 100%);
    --grad-cyan: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
    --grad-pink: linear-gradient(135deg, #ff2e93 0%, #a000ff 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --neon-shadow-emerald: 0 0 15px rgba(0, 255, 157, 0.3);
    --neon-shadow-cyan: 0 0 15px rgba(0, 229, 255, 0.3);
    --neon-shadow-pink: 0 0 15px rgba(255, 46, 147, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-image: 
        radial-gradient(at 10% 20%, rgba(0, 229, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 255, 157, 0.04) 0px, transparent 50%);
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* App Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
}

.brand {
    margin-bottom: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.brand-logo span span {
    color: var(--neon-emerald);
}

.neon-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-emerald);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background: var(--neon-emerald);
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--neon-emerald);
    border-radius: 50%;
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan);
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.05);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--grad-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Main Content area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    backdrop-filter: blur(10px);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    width: 320px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 100%;
}

.search-bar i {
    color: rgba(255, 255, 255, 0.4);
    width: 16px;
    height: 16px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-emerald);
    color: #000;
    box-shadow: var(--neon-shadow-emerald);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: #fff;
    position: relative;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-warning {
    background: rgba(255, 46, 147, 0.1);
    border-color: rgba(255, 46, 147, 0.3);
    color: var(--neon-pink);
}

.btn-warning:hover {
    background: rgba(255, 46, 147, 0.2);
    box-shadow: var(--neon-shadow-pink);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-pink);
}

.dashboard-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-section h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-size: 14px;
}

.realtime-clock {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.metric-card.cyan { --border-hover: rgba(0, 229, 255, 0.3); }
.metric-card.emerald { --border-hover: rgba(0, 255, 157, 0.3); }
.metric-card.warning { --border-hover: rgba(255, 46, 147, 0.3); }

.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -60px;
    right: -60px;
    filter: blur(40px);
    opacity: 0.15;
    transition: all 0.4s ease;
}

.cyan .card-glow { background: var(--neon-cyan); }
.emerald .card-glow { background: var(--neon-emerald); }
.warning .card-glow { background: var(--neon-pink); }

.metric-card:hover .card-glow {
    opacity: 0.3;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.metric-icon i {
    width: 18px;
    height: 18px;
}

.cyan .metric-icon { color: var(--neon-cyan); }
.emerald .metric-icon { color: var(--neon-emerald); }
.warning .metric-icon { color: var(--neon-pink); }

.metric-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.trend.positive {
    color: var(--neon-emerald);
    font-weight: 700;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 18px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.cyan .progress-bar-fill { background: var(--grad-cyan); }
.emerald .progress-bar-fill { background: var(--grad-emerald); }
.warning .progress-bar-fill { background: var(--grad-pink); }

/* Content Split Grid */
.content-split-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.neon-cyan {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-cyan);
}

.badge.neon-emerald {
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.2);
    color: var(--neon-emerald);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.tenant-cell {
    font-weight: 600;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 11px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-paye { color: var(--neon-emerald); }
.status-paye::before { background: var(--neon-emerald); box-shadow: 0 0 8px var(--neon-emerald); }

.status-relance { color: var(--neon-amber); }
.status-relance::before { background: var(--neon-amber); box-shadow: 0 0 8px var(--neon-amber); }

.status-legal { color: var(--neon-pink); }
.status-legal::before { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }

/* Simulator section styles */
.info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
    line-height: 1.5;
}

.whatsapp-mockup {
    background: #0b141a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-bottom: 16px;
}

.whatsapp-header {
    background: #202c33;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6a7c85;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wa-avatar i {
    width: 16px;
    height: 16px;
}

.wa-user-details h4 {
    font-size: 13px;
    font-weight: 600;
}

.wa-user-details span {
    font-size: 10px;
    color: #8696a0;
}

.whatsapp-chat {
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 12px 12px;
    background-color: #0b141a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 240px;
    overflow-y: auto;
}

.wa-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
}

.wa-received {
    background: #202c33;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    color: #e9edef;
}

.wa-sent {
    background: #005c4b;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    color: #e9edef;
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.wa-time {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: 4px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
