/* Typography & Reset */
.rm-container { font-family: inherit; font-size: inherit; color: inherit; max-width: 1000px; line-height: 1.6; margin: 0 auto; }
.rm-container h2 { font-weight: 700; margin-bottom: 20px; }

/* Zona Testare */
.rm-test-zone { background: #fffdf5; border: 1px solid #fde68a; border-radius: 8px; padding: 16px 20px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.rm-test-zone h5 { margin: 0; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; color: #b45309; font-weight: 600;}
.rm-test-actions { display: flex; gap: 10px; }
.rm-btn-test { background: #fff; border: 1px solid #d97706; color: #d97706; padding: 6px 14px; font-size: 0.8em; font-weight: 600; text-transform: uppercase; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.rm-btn-test:hover { background: #d97706; color: #fff; }

/* SECȚIUNEA: CUM FUNCȚIONEAZĂ (Onboarding) */
.rm-how-to-section { margin-bottom: 30px; }
.rm-how-to-title { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0; margin-bottom: 15px; font-weight: 600; color: #777; }
.rm-how-to-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.rm-step { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: transform 0.2s; }
.rm-step:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.04); }
.rm-step-num { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #eefbee; color: #2bc016; font-weight: 700; border-radius: 50%; font-size: 0.9em; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1f4d1;}
.rm-step-text { font-size: 0.9em; line-height: 1.5; color: #555; }
.rm-step-text strong { display: block; color: #111; font-weight: 600; margin-bottom: 4px; font-size: 1.05em; }

/* Buton CTA Onboarding */
.rm-onboarding-cta { text-align: center; margin-top: 40px; margin-bottom: 20px; }
.rm-btn-activate { background: #2bc016; color: #fff; border: none; padding: 15px 40px; cursor: pointer; font-size: 1.1em; font-weight: 600; border-radius: 8px; transition: all 0.2s; display: inline-block; box-shadow: 0 4px 15px rgba(43, 192, 22, 0.25); }
.rm-btn-activate:hover { background: #25a813; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43, 192, 22, 0.35); }

/* Statistici */
.rm-header-stats { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.rm-stat-card { flex: 1; min-width: 150px; padding: 24px; background: #fff; border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); text-align: center; transition: transform 0.2s; }
.rm-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.04); }
.rm-stat-number { display: block; font-size: 2.2em; font-weight: 700; margin-bottom: 4px; line-height: 1; }
.rm-stat-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.6; font-weight: 600; }

/* Formular Adăugare */
.rm-form-section { background: #fff; padding: 25px; margin-bottom: 40px; border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.rm-grid-form { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr auto; gap: 15px; align-items: end; }
.rm-label { display: block; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; opacity: 0.7; }
.rm-grid-form input, .rm-grid-form select, .rm-modal-form-grid input, .rm-modal-form-grid select { background: #fafafa; border: 1px solid #e0e0e0; padding: 10px 14px; font-size: 0.95em; height: 44px; border-radius: 8px; width: 100%; box-sizing: border-box; transition: all 0.2s; font-family: inherit; color: inherit; }
.rm-grid-form input:focus, .rm-grid-form select:focus, .rm-search-input:focus, .rm-modal-form-grid input:focus, .rm-modal-form-grid select:focus { outline: none; border-color: #2bc016; background: #fff; box-shadow: 0 0 0 3px rgba(43, 192, 22, 0.15); }

/* Butoane Principale */
.rm-btn-primary { background: #2bc016; color: #fff; border: none; padding: 0 24px; cursor: pointer; font-size: 0.9em; font-weight: 600; border-radius: 8px; height: 44px; transition: all 0.2s; }
.rm-btn-primary:hover { background: #25a813; box-shadow: 0 4px 10px rgba(43, 192, 22, 0.2); }

/* Toolbar Filtre & Căutare */
.rm-toolbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; gap: 20px; flex-wrap: wrap; }
.rm-search-input { background: #fafafa; border: 1px solid #e0e0e0; padding: 10px 16px; font-size: 0.95em; width: 260px; border-radius: 8px; height: 44px; transition: all 0.2s; font-family: inherit; }
.rm-filter-group { display: flex; flex-direction: column; gap: 8px; }
.rm-filter-links { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-filter-btn { font-size: 0.85em; font-weight: 600; color: inherit; opacity: 0.6; text-decoration: none; cursor: pointer; padding: 6px 14px; border-radius: 20px; background: transparent; transition: all 0.2s; }
.rm-filter-btn:hover { opacity: 1; background: #f0f0f0; }
.rm-filter-btn.active { color: #fff; background: #2bc016; opacity: 1; box-shadow: 0 2px 6px rgba(43, 192, 22, 0.2); }

/* Tabel Modern SaaS */
.rm-table-container { 
    max-height: 450px; overflow-y: auto; border: 1px solid #eaeaea; 
    border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.02); 
    margin-bottom: 50px; scrollbar-width: thin; scrollbar-color: #d1d5db #f9fafb;
}
.rm-table-container::-webkit-scrollbar { width: 6px; height: 6px; }
.rm-table-container::-webkit-scrollbar-track { background: #f9fafb; border-radius: 8px; }
.rm-table-container::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 8px; }
.rm-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 0; }
.rm-table th { position: sticky; top: 0; background: #fafafa; z-index: 10; padding: 14px 16px; text-align: left; font-size: 0.8em; font-weight: 600; text-transform: uppercase; color: #555; border-bottom: 2px solid #eaeaea; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.rm-table td { padding: 18px 16px; border-bottom: 1px solid #eaeaea; vertical-align: middle; transition: background 0.2s; }
.rm-table tbody tr:last-child td { border-bottom: none; }
.rm-row:hover td { background: #fdfdfd; }
.rm-item-note { display: block; font-size: 0.85em; opacity: 0.6; margin-top: 4px; }

/* Etichete */
.rm-badge { font-size: 0.75em; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; display: inline-block; letter-spacing: 0.5px; }
.rm-badge-ok { background: #eefbee; color: #2bc016; }
.rm-badge-soon { background: #ffe8d0; color: #ff8000; }
.rm-badge-expired { background: #ffe6dc; color: #fc4700; }

/* Acțiuni Tabel */
.rm-actions a { font-size: 0.85em; text-decoration: none; font-weight: 600; margin-left: 15px; cursor: pointer; opacity: 0.5; transition: all 0.2s; white-space: nowrap;}
.rm-actions a.rm-act-edit:hover { color: #2bc016; opacity: 1; }
.rm-actions a.rm-act-del:hover { color: #dc2626; opacity: 1; }

/* Ghid Reciclare */
.rm-disposal-guide { background: #fafafa; border-radius: 12px; padding: 24px; margin-top: 50px; border: 1px solid #eaeaea; }
.rm-disposal-guide h4 { font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0; margin-bottom: 10px; font-weight: 600; }
.rm-disposal-guide p { font-size: 0.95em; opacity: 0.8; max-width: 700px; margin: 0; }

/* Modale */
.rm-modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); backdrop-filter: blur(3px); z-index:9999; align-items:center; justify-content:center; }
.rm-modal-content { background:#fff; padding:30px; border-radius:12px; width:100%; max-width:450px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.rm-modal-content h3 { margin-top:0; font-size:1.2em; font-weight: 700; margin-bottom:20px; }
.rm-modal-form-grid { display:flex; flex-direction:column; gap:15px; }
.rm-modal-actions { display:flex; gap:15px; align-items:center; margin-top:20px; }
.rm-btn-cancel { color: inherit; font-size: 0.9em; font-weight: 600; opacity: 0.6; cursor:pointer; text-decoration:none; transition: opacity 0.2s; }
.rm-btn-cancel:hover { opacity: 1; }
.rm-btn-danger { background:#dc2626; color:#fff; border:none; border-radius: 8px; padding:10px 20px; font-weight: 600; cursor:pointer; text-decoration: none; transition: background 0.2s; }
.rm-btn-danger:hover { background: #b91c1c; }

@media (max-width: 900px) {
    .rm-grid-form { grid-template-columns: 1fr; gap: 10px; }
    .rm-toolbar { flex-direction: column; align-items: flex-start; }
    .rm-search-input { width: 100%; }
    .rm-table th, .rm-table td { padding: 10px; }
    .rm-actions a { margin-left: 8px; }
    .rm-how-to-grid { grid-template-columns: 1fr; }
}