:root { --brand-green: #a3db59; --brand-dark: #2b2a29; --brand-light: #f6faf7; --text-main: #333333; --text-muted: #777777; --border-color: #eaeaea; }
        body { font-family: 'Poppins', sans-serif; background-color: var(--brand-light); background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 25L15 15h10z' fill='%23e6ede8' fill-rule='evenodd'/%3E%3C/svg%3E"); padding: 0; margin: 0; color: var(--text-main); }
        
        .topbar { background: var(--brand-dark); color: white; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--brand-green); box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: relative; z-index: 100;}
        .topbar-left { display: flex; align-items: center; gap: 40px; }
        .topbar h1 { margin: 0; font-size: 22px; font-weight: 700; display: block; line-height: 1.1;}
        .topbar h1 span { font-size: 11px; color: #aaa; font-weight: 400; letter-spacing: 1px; display: block; line-height: 1.2;}
        
        .nav-links { display: flex; gap: 10px; align-items: center; }
        .nav-btn { background: transparent; color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; transition: 0.2s; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14px; text-decoration: none;}
        .nav-btn:hover { background: rgba(255,255,255,0.1); }
        .nav-btn.active { background: #e0e0e0; color: #333; font-weight: 700;}
        
        .topbar-right { display: flex; align-items: center; gap: 20px; }
        .credit-badge { color: var(--brand-green); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}
        
        .user-chip { background: rgba(255,255,255,0.1); border-radius: 30px; padding: 5px 20px 5px 5px; display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; transition: 0.2s; }
        .user-chip:hover { background: rgba(255,255,255,0.15); }
        .user-avatar { background: var(--brand-green); color: var(--brand-dark); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
        .user-email { font-size: 13px; font-weight: 500; color: white;}
        
        .user-dropdown { position: absolute; right: 0; top: 100%; margin-top: 10px; background: white; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; flex-direction: column; min-width: 180px; z-index: 100; overflow: hidden; }
        .user-dropdown a { padding: 12px 20px; text-decoration: none; color: var(--text-main); font-size: 13px; border-bottom: 1px solid #f1f1f1; transition: 0.2s; font-weight: 500;}
        .user-dropdown a:hover { background: #f9f9f9; padding-left: 25px;}
        .user-dropdown a.danger { color: #d93025; border-bottom: none; }

        .app-layout { display: flex; min-height: calc(100vh - 72px); }
        .sidebar { width: 260px; background: white; border-right: 1px solid var(--border-color); padding: 30px 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.02); display: none;}
        .side-btn { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 14px; border-radius: 8px; margin-bottom: 8px; transition: 0.2s; border: 1px solid transparent;}
        .side-btn:hover { background: var(--brand-light); }
        .side-btn.active { background: #eff7e8; color: #49711a; border-color: #d1eab7; font-weight: 600;}
        .main-content { flex: 1; padding: 40px; overflow-y: auto; }

        .container-login { max-width: 500px; margin: 60px auto; padding: 0 20px; }
        .container-setup { max-width: 800px; margin: 60px auto; padding: 0 20px; }
        .box { background: white; padding: 50px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
        
        .help-text { font-size: 13px; color: var(--text-muted); margin-top: 4px; margin-bottom: 20px; display: block; line-height: 1.5; }
        .btn { background: var(--brand-green); color: var(--brand-dark); padding: 14px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 15px; text-align: center; display: inline-block; text-decoration: none; transition: 0.2s; font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
        .btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(163, 219, 89, 0.4); }
        .alert-danger { background: #fdf3f4; color: #d93025; padding: 15px 20px; border-left: 4px solid #d93025; margin-bottom: 25px; font-size: 14px; display: none; border-radius: 0 8px 8px 0; }
        
        .table-container { max-height: 380px; overflow-y: auto; margin-bottom: 20px; padding-right: 8px; border-radius: 8px; }
        .table-container::-webkit-scrollbar { width: 8px; }
        .table-container::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 10px; }
        
        table { width: 100%; border-collapse: separate; border-spacing: 0 6px; text-align: left; margin-bottom: 10px; position: relative;}
        thead th { position: sticky; top: 0; background: white; z-index: 10; padding: 10px 15px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        tbody td { padding: 14px 15px; background: white; border: 1px solid var(--border-color); border-style: solid none; font-size: 14px; }
        tbody td:first-child { border-left-style: solid; border-radius: 8px 0 0 8px; }
        tbody td:last-child { border-right-style: solid; border-radius: 0 8px 8px 0; }
        tr:hover td { border-color: #c4c4c4; }
        
        .badge { padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
        .badge-green { background: #eff7e8; color: #5c8a24; }
        .badge-red { background: #fdf3f4; color: #d93025; }

        .filters { display: flex; gap: 20px; margin-bottom: 5px; }
        .filters label { cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px;}
        .search-box { width: 100%; padding: 14px 15px; margin-bottom: 15px; border-radius: 8px; border: 1px solid var(--border-color); box-sizing: border-box; font-family: 'Poppins', sans-serif; font-size: 14px; outline: none; transition: border-color 0.2s;}
        .search-box:focus { border-color: var(--brand-dark); }
        .search-box:disabled { background-color: #f1f1f1; cursor: not-allowed; color: #999; border-color: #eaeaea; }
        
        textarea { width: 100%; height: 120px; padding: 15px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 8px; font-family: monospace; outline: none;}
        textarea:focus { border-color: var(--brand-dark); }
        .preview-box { border: 2px dashed var(--border-color); padding: 20px; border-radius: 8px; min-height: 100px; overflow-x: auto; margin-bottom: 25px; background: white;}

        .login-box { text-align: center; }
        .login-box h2 { font-size: 28px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
        .login-box p.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
        .copy-box { width: 100%; padding: 12px; border-radius: 6px; border: 1px dashed #bbb; font-family: monospace; font-size: 13px; background: #fafafa; color: #333; cursor: pointer; transition: 0.2s; box-sizing: border-box; outline: none; resize: none;}
        .copy-box:hover { border-color: var(--brand-green); background: #f6faf7;}
        
        #sec-app, #sec-setup, #view-reportes { display: none; }
        
        .user-img-row { margin-bottom: 12px; background: #fafafa; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
        .user-img-row label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--brand-dark);}
        .user-img-row input { margin-bottom: 0; padding: 12px; }
        .preview-btn { background: #333; color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: 'Poppins', sans-serif; transition: 0.2s; flex-shrink: 0;}
        .preview-btn:hover { background: #000; }

        .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43, 42, 41, 0.7); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(4px);}
        .modal-content { background: white; padding: 30px; border-radius: 16px; position: relative; max-width: 80%; max-height: 80%; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.2);}
        .modal-body { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: center; margin-top: 15px;}
        .close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #777; cursor: pointer; background: none; border: none;}
        .close-modal:hover { color: #000;}