*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fa;color:#2c3e50;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.sidebar{background:linear-gradient(180deg,#1e3a5f,#2c5282 50%,#1a365d);box-shadow:4px 0 20px #00000026;height:100vh;left:0;overflow:hidden;position:fixed;top:0;transition:width .3s cubic-bezier(.4,0,.2,1);width:280px;z-index:1000}.sidebar.closed{width:80px}.sidebar-header{background:#0000001a;border-bottom:1px solid #ffffff1a;padding:2rem 1.5rem;position:relative}.hamburger-btn{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff26;border:1px solid #fff3;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:1.2rem;height:45px;justify-content:center;padding:.75rem;position:absolute;right:1.5rem;top:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);width:45px;z-index:1001}.hamburger-btn:hover{background:#ffffff40;box-shadow:0 4px 12px #0003;transform:scale(1.05)}.sidebar.closed .hamburger-btn{left:50%;margin:0;position:absolute;right:auto;top:50%;transform:translate(-50%,-50%)}.logo-section{align-items:center;display:flex;gap:1rem;padding-right:3rem}.logo-icon{color:#fbbf24;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));font-size:2rem}.logo-text{color:#fff;font-size:1.5rem;font-weight:700;text-shadow:0 2px 4px #0003;white-space:nowrap}.sidebar.closed .logo-section{opacity:0;overflow:hidden;width:0}.sidebar-nav{padding:1.5rem 0}.nav-item{align-items:center;border-left:3px solid #0000;color:#fffc;display:flex;gap:1rem;padding:1rem 1.5rem;position:relative;text-decoration:none;transition:all .3s cubic-bezier(.4,0,.2,1);white-space:nowrap}.nav-item:hover{background:#ffffff1a}.nav-item.active,.nav-item:hover{border-left-color:#fbbf24;color:#fff}.nav-item.active{background:linear-gradient(90deg,#fbbf2433,#fbbf240d);font-weight:600}.nav-item.active:before{background:#fbbf24;border-radius:4px 0 0 4px;box-shadow:0 0 10px #fbbf2480;content:"";height:60%;position:absolute;right:0;top:50%;transform:translateY(-50%);width:4px}.nav-icon{align-items:center;display:flex;font-size:1.3rem;justify-content:center;min-width:24px}.nav-text{font-size:1rem;font-weight:500}.sidebar.closed .nav-item{justify-content:center;padding:1rem}.sidebar.closed .nav-text{opacity:0;overflow:hidden;width:0}.sidebar.closed .nav-item.active:before{display:none}@media (max-width:768px){.sidebar{transform:translateX(-100%);width:280px}.sidebar.open{transform:translateX(0)}.sidebar.closed{transform:translateX(-100%);width:280px}}.login-page{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:2rem}.login-container{animation:slideUp .5s ease-out;background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:480px;padding:3rem;width:100%}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-header{margin-bottom:2rem;text-align:center}.login-logo{align-items:center;display:flex;gap:.75rem;justify-content:center;margin-bottom:.5rem}.logo-icon{filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));font-size:3rem}.login-logo h1{color:#1e3a5f;font-size:2rem;font-weight:700;margin:0}.login-subtitle{color:#64748b;font-size:1rem;margin:0}.login-error{align-items:center;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;display:flex;font-size:.9rem;gap:.5rem;margin-bottom:1.5rem;padding:1rem}.error-icon{font-size:1.2rem}.login-form{margin-bottom:2rem}.form-group{margin-bottom:1.5rem}.form-group label{color:#334155;display:block;font-size:.95rem;font-weight:500}.form-group input{background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;padding:.875rem 1rem;transition:all .3s ease;width:100%}.form-group input:focus{background:#fff;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.form-group input:disabled{background:#f1f5f9;cursor:not-allowed}.btn-login{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;box-shadow:0 4px 12px #667eea66;color:#fff;cursor:pointer;font-size:1rem;font-weight:600;padding:1rem;transition:all .3s ease;width:100%}.btn-login:hover:not(:disabled){box-shadow:0 6px 20px #667eea80;transform:translateY(-2px)}.btn-login:active:not(:disabled){transform:translateY(0)}.btn-login:disabled{cursor:not-allowed;opacity:.6}.demo-accounts{border-top:1px solid #e2e8f0;padding-top:2rem}.demo-title{color:#64748b;font-size:.9rem;font-weight:500;margin-bottom:1rem;text-align:center}.demo-buttons{display:flex;flex-direction:column;gap:.75rem}.btn-demo{align-items:center;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;display:flex;gap:1rem;padding:1rem;text-align:left;transition:all .3s ease}.btn-demo:hover:not(:disabled){background:#f8fafc;border-color:#667eea;transform:translateX(4px)}.btn-demo:disabled{cursor:not-allowed;opacity:.5}.demo-icon{flex-shrink:0;font-size:2rem}.demo-text{display:flex;flex-direction:column;gap:.25rem}.demo-text strong{color:#1e293b;font-size:1rem}.demo-text small{color:#64748b;font-size:.85rem}.btn-demo-admin:hover:not(:disabled){background:#fef2f2;border-color:#dc2626}.btn-demo-librarian:hover:not(:disabled){background:#eff6ff;border-color:#2563eb}.btn-demo-member:hover:not(:disabled){background:#f0fdf4;border-color:#16a34a}@media (max-width:640px){.login-container{padding:2rem}.login-logo h1{font-size:1.5rem}.logo-icon{font-size:2.5rem}}.dashboard-page{margin:0 auto;max-width:1400px}.page-header h1{font-size:2.5rem;margin-bottom:.5rem;text-shadow:0 2px 4px #0000001a}.page-subtitle{font-size:1.1rem;font-weight:400}.stats-grid{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-bottom:3rem}.stat-card{align-items:center;background:#fff;border:1px solid #0000000d;border-radius:16px;box-shadow:0 4px 12px #00000014;display:flex;gap:1.5rem;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1)}.stat-card:hover{box-shadow:0 8px 24px #0000001f;transform:translateY(-4px)}.stat-icon{align-items:center;border-radius:12px;color:#fff;display:flex;flex-shrink:0;font-size:1.8rem;height:60px;justify-content:center;width:60px}.users-card .stat-icon{background:linear-gradient(135deg,#667eea,#764ba2)}.books-card .stat-icon{background:linear-gradient(135deg,#f093fb,#f5576c)}.issued-card .stat-icon{background:linear-gradient(135deg,#4facfe,#00f2fe)}.available-card .stat-icon{background:linear-gradient(135deg,#43e97b,#38f9d7)}.overdue-card .stat-icon{background:linear-gradient(135deg,#fa709a,#fee140)}.stat-content h3{color:#64748b;font-size:.9rem;font-weight:600;letter-spacing:.5px;margin-bottom:.5rem;text-transform:uppercase}.stat-value{color:#1e3a5f;font-size:2rem;font-weight:700;line-height:1}.recent-section{background:#fff;border-radius:16px;box-shadow:0 4px 12px #00000014;padding:2rem}.recent-section h2{color:#1e3a5f;font-size:1.5rem;font-weight:700;margin-bottom:1.5rem}.recent-issues-grid{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.recent-issue-card{background:linear-gradient(135deg,#f5f7fa,#e8ecf1);border:1px solid #0000000d;border-radius:12px;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1)}.recent-issue-card:hover{box-shadow:0 6px 16px #0000001a;transform:translateY(-2px)}.issue-id{background:#fff}.issue-status{border-radius:6px;font-size:.75rem;font-weight:600;letter-spacing:.5px;padding:.25rem .75rem;text-transform:uppercase}.issue-status.issued{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.issue-status.returned{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.issue-status.overdue{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.issue-book-title{font-size:1.1rem;font-weight:600}.issue-user{font-size:.9rem}.issue-dates{border-top:1px solid #0000001a;grid-template-columns:1fr 1fr;padding-top:1rem}.issue-dates small{color:#94a3b8;display:block;font-size:.75rem;letter-spacing:.5px;margin-bottom:.25rem;text-transform:uppercase}.issue-dates p{color:#1e3a5f;font-size:.9rem;font-weight:600}.empty-state{padding:3rem}.empty-state svg{font-size:3rem;margin-bottom:1rem;opacity:.5}@media (max-width:768px){.page-header h1{font-size:2rem}.recent-issues-grid,.stats-grid{grid-template-columns:1fr}}.users-page{margin:0 auto;max-width:1400px}.page-header{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-bottom:2rem}.page-header h1{color:#1e3a5f;font-size:2rem;font-weight:700;margin-bottom:.25rem}.page-subtitle{color:#64748b;font-size:1rem}.btn-add{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:10px;box-shadow:0 4px 12px #667eea4d;color:#fff;cursor:pointer;display:flex;font-size:1rem;font-weight:600;gap:.5rem;padding:.75rem 1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1)}.btn-add:hover{box-shadow:0 6px 20px #667eea66;transform:translateY(-2px)}.table-container{background:#fff;border-radius:16px;box-shadow:0 4px 12px #00000014;overflow-x:auto;padding:1.5rem}.users-table{border-collapse:collapse;width:100%}.users-table thead{background:linear-gradient(135deg,#f5f7fa,#e8ecf1)}.users-table th{border-bottom:2px solid #e8ecf1;color:#1e3a5f;font-size:.9rem;font-weight:600;letter-spacing:.5px;padding:1rem;text-align:left;text-transform:uppercase}.users-table td{border-bottom:1px solid #f1f5f9;color:#475569;padding:1rem}.users-table tbody tr{transition:all .2s ease}.users-table tbody tr:hover{background:#f8fafc}.user-id-badge{background:linear-gradient(135deg,#4facfe,#00f2fe);border-radius:6px;color:#fff;font-size:.85rem;font-weight:600;padding:.25rem .75rem}.user-name{color:#1e3a5f;font-weight:600}.role-badge{border-radius:6px;font-size:.85rem;font-weight:600;letter-spacing:.5px;padding:.25rem .75rem;text-transform:uppercase}.role-admin{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.role-librarian{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.role-member{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.action-buttons{display:flex;gap:.5rem}.btn-delete,.btn-edit{align-items:center;border:none;border-radius:6px;cursor:pointer;display:flex;font-size:.9rem;justify-content:center;padding:.5rem;transition:all .2s ease}.btn-edit{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.btn-edit:hover{box-shadow:0 4px 12px #4facfe66;transform:scale(1.1)}.btn-delete{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.btn-delete:hover{box-shadow:0 4px 12px #fa709a66;transform:scale(1.1)}.modal-overlay{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:1rem;position:fixed;right:0;top:0;z-index:2000}.modal-content{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-height:90vh;max-width:600px;overflow-y:auto;padding:2rem;width:100%}.modal-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:1.5rem}.modal-header h2{color:#1e3a5f;font-size:1.5rem;font-weight:700}.modal-close{background:none;border:none;color:#64748b;cursor:pointer;font-size:1.5rem;padding:.25rem;transition:color .2s ease}.modal-close:hover{color:#1e3a5f}.form-row{grid-gap:1rem;display:grid;gap:1rem;grid-template-columns:1fr 1fr;margin-bottom:1rem}.form-group{display:flex;flex-direction:column}.form-group label{color:#475569;font-size:.9rem;font-weight:600;margin-bottom:.5rem}.form-group input,.form-group select{border:2px solid #e8ecf1;border-radius:8px;font-size:1rem;padding:.75rem;transition:all .2s ease}.form-group input:focus,.form-group select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.error-message{background:linear-gradient(135deg,#fa709a,#fee140);border-radius:8px;color:#fff;font-weight:500;margin-bottom:1rem;padding:.75rem 1rem}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.btn-cancel,.btn-primary{border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;padding:.75rem 1.5rem;transition:all .2s ease}.btn-cancel{background:#f1f5f9;color:#64748b}.btn-cancel:hover{background:#e2e8f0}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 4px 12px #667eea4d;color:#fff}.btn-primary:hover{box-shadow:0 6px 20px #667eea66;transform:translateY(-2px)}.empty-state{background:#fff;border-radius:16px;box-shadow:0 4px 12px #00000014;color:#94a3b8;padding:4rem 2rem;text-align:center}.loading-container{align-items:center;color:#64748b;display:flex;flex-direction:column;justify-content:center;min-height:400px}.loading-spinner{animation:spin 1s linear infinite;border:4px solid #e8ecf1;border-radius:50%;border-top-color:#1e3a5f;height:50px;margin-bottom:1rem;width:50px}@keyframes spin{to{transform:rotate(1turn)}}@media (max-width:768px){.form-row{grid-template-columns:1fr}.table-container{overflow-x:scroll}.users-table{min-width:800px}}.issues-page{margin:0 auto;max-width:1400px}.status-filters{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:2rem}.status-btn{background:#fff;border:2px solid #e8ecf1;border-radius:10px;color:#64748b;cursor:pointer;font-size:.95rem;font-weight:600;padding:.75rem 1.5rem;transition:all .2s ease}.status-btn:hover{border-color:#4facfe;color:#4facfe}.status-btn.active{background:linear-gradient(135deg,#4facfe,#00f2fe);border-color:#0000;box-shadow:0 4px 12px #4facfe4d;color:#fff}.issues-grid{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(350px,1fr))}.issue-card{background:#fff;border:1px solid #0000000d;border-radius:16px;box-shadow:0 4px 12px #00000014;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1)}.issue-card:hover{box-shadow:0 8px 24px #0000001f;transform:translateY(-4px)}.issue-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.issue-id{background:#f1f5f9;color:#64748b;font-size:.85rem}.issue-id,.status-badge{border-radius:6px;font-weight:600;padding:.25rem .75rem}.status-badge{color:#fff;font-size:.75rem;letter-spacing:.5px;text-transform:uppercase}.status-badge.issued{background:linear-gradient(135deg,#4facfe,#00f2fe)}.status-badge.returned{background:linear-gradient(135deg,#43e97b,#38f9d7)}.status-badge.overdue{background:linear-gradient(135deg,#fa709a,#fee140)}.issue-book-title{color:#1e3a5f;font-size:1.2rem;font-weight:700;line-height:1.4;margin-bottom:.5rem}.issue-user{color:#64748b;font-size:.95rem;margin-bottom:1rem}.issue-user strong{color:#1e3a5f}.issue-dates{grid-gap:1rem;border-bottom:1px solid #f1f5f9;border-top:1px solid #f1f5f9;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin-bottom:1rem;padding:1rem 0}.date-item small{color:#94a3b8;display:block;font-size:.75rem;letter-spacing:.5px;margin-bottom:.25rem;text-transform:uppercase}.date-item p{color:#1e3a5f;font-size:.9rem;font-weight:600}.btn-return{align-items:center;background:linear-gradient(135deg,#43e97b,#38f9d7);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:.95rem;font-weight:600;gap:.5rem;justify-content:center;padding:.75rem;transition:all .2s ease;width:100%}.btn-return:hover{box-shadow:0 4px 12px #43e97b66;transform:translateY(-2px)}.returned-badge{align-items:center;color:#10b981;display:flex;font-size:.95rem;font-weight:600;gap:.5rem;justify-content:center;padding:.75rem;width:100%}.info-box,.returned-badge{background:linear-gradient(135deg,#f5f7fa,#e8ecf1);border-radius:8px}.info-box{border-left:4px solid #4facfe;margin:1rem 0;padding:1rem}.info-box p{color:#475569;font-size:.9rem;margin:0}.info-box strong{color:#1e3a5f}@media (max-width:768px){.issues-grid{grid-template-columns:1fr}.status-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.5rem}}.app-container{background:linear-gradient(135deg,#f5f7fa,#e8ecf1);display:flex;min-height:100vh}.main-content{flex:1 1;margin-left:280px;min-height:100vh;padding:2rem;transition:margin-left .3s cubic-bezier(.4,0,.2,1)}.main-content.sidebar-closed{margin-left:80px}@media (max-width:768px){.main-content{margin-left:0;padding:1rem}.main-content.sidebar-closed{margin-left:0}}