*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background-color:#fcfcfc;color:#333;min-height:100vh}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;font-family:inherit}input,select,textarea{font-family:inherit;font-size:1rem}.app-layout{display:flex;min-height:100vh}.sidebar{width:250px;background:linear-gradient(180deg,#c70000,#610000);color:#fff;display:flex;flex-direction:column;flex-shrink:0}.sidebar-header{padding:1.5rem 1.2rem;border-bottom:1px solid rgba(255,255,255,.15)}.sidebar-header h1{font-size:1.3rem;font-weight:700;letter-spacing:.5px}.sidebar-header .subtitle{font-size:.75rem;opacity:.7;margin-top:.2rem}.sidebar-nav{flex:1;padding:1rem 0}.sidebar-nav button{width:100%;text-align:left;padding:.8rem 1.2rem;background:none;color:#fffc;font-size:.9rem;display:flex;align-items:center;gap:.7rem;transition:all .2s;border-left:3px solid transparent}.sidebar-nav button:hover{background:#ffffff1a;color:#fff}.sidebar-nav button.active{background:#ffffff26;color:#fff;border-left-color:#3b932d;font-weight:600}.sidebar-footer{padding:1rem 1.2rem;border-top:1px solid rgba(255,255,255,.15)}.sidebar-footer .user-email{font-size:.8rem;opacity:.7;margin-bottom:.5rem}.btn-logout{background:#ffffff26;color:#fff;padding:.5rem 1rem;border-radius:6px;font-size:.85rem;width:100%;transition:background .2s}.btn-logout:hover{background:#ffffff4d}.mobile-menu-btn{display:none;position:fixed;top:.7rem;left:.7rem;z-index:1100;background:#c70000;color:#fff;width:44px;height:44px;border-radius:8px;font-size:1.4rem;align-items:center;justify-content:center;box-shadow:0 2px 8px #0003}.sidebar-overlay{display:none}.main-content{flex:1;display:flex;flex-direction:column}.top-bar{background:#fff;padding:1rem 2rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}.top-bar h2{font-size:1.2rem;color:#333}.page-content{flex:1;padding:1.5rem 2rem;overflow-y:auto}.card{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 2px 8px #0000000f;border:1px solid #f0f0f0}.card h2{font-size:1.05rem;margin-bottom:1rem;color:#c70000}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.3rem;font-weight:600;font-size:.85rem;color:#555}.form-group input,.form-group textarea,.form-group select{width:100%;padding:.65rem .8rem;border:1px solid #ddd;border-radius:8px;font-size:.9rem;transition:border-color .2s;background:#fcfcfc}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#3b932d;box-shadow:0 0 0 3px #3b932d1a}.form-group input:disabled{background:#f0f0f0;color:#999}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}.checkbox-group{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.7rem;background:#f8fff7;border:1px solid #d4edda;border-radius:8px}.checkbox-group input[type=checkbox]{width:18px;height:18px;accent-color:#3B932D;cursor:pointer}.checkbox-group label{font-size:.9rem;color:#333;cursor:pointer;font-weight:500}.btn{padding:.65rem 1.5rem;border-radius:8px;font-size:.9rem;font-weight:600;transition:all .2s}.btn-primary{background:#3b932d;color:#fff}.btn-primary:hover{background:#2d7a22}.btn-primary:disabled{background:#ccc;cursor:not-allowed}.btn-secondary{background:#ecf0f1;color:#333}.btn-secondary:hover{background:#d5dbdb}.btn-download{background:#3b932d;color:#fff;padding:.4rem .9rem;border-radius:6px;font-size:.8rem}.btn-download:hover{background:#2d7a22}.btn-download-featured{font-size:1rem;padding:.7rem 2rem}.search-bar{display:flex;gap:.8rem;margin-bottom:1.2rem}.search-bar input{flex:1;padding:.65rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:.9rem}.search-bar input:focus{outline:none;border-color:#3b932d;box-shadow:0 0 0 3px #3b932d1a}.exam-table{width:100%;border-collapse:collapse}.exam-table th{text-align:left;padding:.65rem .5rem;border-bottom:2px solid #eee;font-size:.78rem;color:#888;text-transform:uppercase;letter-spacing:.3px}.exam-table td{padding:.65rem .5rem;border-bottom:1px solid #f0f0f0;font-size:.88rem}.exam-table tr:hover{background:#fafafa}.reg-code{font-family:monospace;font-weight:600;color:#c70000;font-size:.85rem}.desktop-only{display:table}.mobile-only{display:none}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#c70000,#610000);padding:1rem}.login-card{background:#fff;border-radius:16px;padding:2.5rem;width:100%;max-width:400px;box-shadow:0 10px 40px #0000004d}.login-logo{display:block;margin:0 auto 1.5rem;max-width:280px;width:100%;height:auto}.login-card h1{text-align:center;color:#c70000;margin-bottom:.3rem;font-size:1.5rem}.login-card .subtitle{text-align:center;color:#999;margin-bottom:2rem;font-size:.9rem}.login-tabs{display:flex;margin-bottom:1.5rem;border-radius:8px;overflow:hidden;border:1px solid #ddd}.login-tab{flex:1;padding:.7rem;text-align:center;font-weight:600;font-size:.9rem;background:#f5f5f5;color:#777;transition:all .2s}.login-tab.active{background:#c70000;color:#fff}.error-msg{background:#fdeaea;color:#c70000;padding:.7rem;border-radius:8px;font-size:.85rem;margin-bottom:1rem;text-align:center}.success-msg{background:#eafde7;color:#3b932d;padding:.7rem;border-radius:8px;font-size:.85rem;margin-bottom:1rem;text-align:center}.featured-exam{background:linear-gradient(135deg,#f8fff7,#eafde7);border:2px solid #3B932D;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;text-align:center}.featured-exam h3{color:#3b932d;margin-bottom:.5rem}.featured-exam .exam-date{color:#888;font-size:.9rem;margin-bottom:.3rem}.featured-exam .exam-desc{color:#666;font-size:.9rem;margin-bottom:1rem}.patient-item{display:flex;justify-content:space-between;align-items:center;padding:.7rem 0;border-bottom:1px solid #f0f0f0}.patient-item:last-child{border-bottom:none}.patient-name{font-weight:600}.patient-cpf{color:#888;font-size:.85rem;font-family:monospace}.empty-state,.loading{text-align:center;padding:2rem;color:#999}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}.stat-card{background:#fff;border-radius:10px;padding:1.2rem;text-align:center;box-shadow:0 2px 8px #0000000f;border:1px solid #f0f0f0}.stat-card .stat-number{font-size:1.8rem;font-weight:700;color:#c70000}.stat-card .stat-label{font-size:.8rem;color:#888;margin-top:.2rem}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.2rem;padding-top:1rem;border-top:1px solid #f0f0f0}.pagination-info{font-size:.85rem;color:#888}.btn-sm{padding:.4rem .9rem;font-size:.82rem}.filters-card{margin-bottom:1rem}.filter-actions{display:flex;gap:.7rem;margin-top:.3rem}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background:#fff;border-radius:12px;padding:2rem;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 10px 40px #0003}.modal h3{margin-bottom:1.2rem;color:#c70000;font-size:1.1rem}.modal-actions{display:flex;gap:.7rem;margin-top:1.2rem;justify-content:flex-end}.btn-action-group{display:flex;gap:.4rem}.btn-edit{background:#f0ad4e;color:#fff;padding:.35rem .7rem;border-radius:5px;font-size:.78rem;font-weight:600}.btn-edit:hover{background:#d9953a}.btn-delete{background:#c70000;color:#fff;padding:.35rem .7rem;border-radius:5px;font-size:.78rem;font-weight:600}.btn-delete:hover{background:#a00000}.btn-cancel{background:#999;color:#fff;padding:.6rem 1.2rem;border-radius:8px;font-size:.9rem;font-weight:600}.btn-cancel:hover{background:#777}.btn-danger{background:#c70000;color:#fff;padding:.6rem 1.2rem;border-radius:8px;font-size:.9rem;font-weight:600}.btn-danger:hover{background:#a00000}.confirm-text{font-size:.95rem;color:#555;line-height:1.5;margin-bottom:.5rem}.confirm-warning{font-size:.85rem;color:#c70000;font-weight:600}.mobile-card{background:#fff;border:1px solid #f0f0f0;border-radius:10px;padding:1rem;margin-bottom:.8rem;box-shadow:0 1px 4px #0000000a}.mobile-card-row{display:flex;justify-content:space-between;align-items:flex-start;padding:.35rem 0;border-bottom:1px solid #f8f8f8;font-size:.88rem;gap:.5rem}.mobile-card-row:last-of-type{border-bottom:none}.mobile-card-label{font-weight:600;color:#888;font-size:.78rem;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0;min-width:80px}.mobile-card-actions{display:flex;gap:.5rem;margin-top:.7rem;padding-top:.7rem;border-top:1px solid #f0f0f0;justify-content:flex-end}.btn-mobile-action{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:8px}@media (max-width: 768px){.mobile-menu-btn{display:flex}.sidebar{position:fixed;top:0;left:-280px;width:280px;height:100vh;z-index:1050;transition:left .3s ease}.sidebar-open{left:0}.sidebar-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;z-index:1040}.main-content{width:100%}.top-bar{padding:.8rem 1rem .8rem 3.5rem}.top-bar h2{font-size:1.05rem}.page-content{padding:1rem}.desktop-only{display:none!important}.mobile-only{display:block!important}.form-row,.form-row-3{grid-template-columns:1fr}.form-group input,.form-group select,.form-group textarea{min-height:44px;font-size:1rem}.stats-row{grid-template-columns:1fr}.login-logo{max-width:220px}.login-card{padding:1.8rem 1.5rem;margin:.5rem}.login-card h1{font-size:1.4rem}.login-tab{padding:.8rem;font-size:.95rem;min-height:44px}.login-card .form-group input,.login-card .btn-primary{min-height:48px;font-size:1rem}.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.btn-primary{width:100%}.filter-actions{flex-direction:column}.filter-actions .btn{width:100%}.modal-overlay{padding:0;align-items:flex-end}.modal{max-width:100%;max-height:95vh;border-radius:16px 16px 0 0;padding:1.5rem}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%;min-height:48px}.pagination{gap:.5rem;flex-wrap:wrap}.pagination-info{font-size:.78rem;width:100%;text-align:center;order:-1}.btn-sm{min-height:44px;padding:.5rem 1.2rem}.featured-exam{padding:1.2rem}.btn-download-featured{width:100%;min-height:48px;font-size:1rem}.checkbox-group{padding:.8rem}.checkbox-group input[type=checkbox]{width:22px;height:22px}}
