/* Global Styles - Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
}

html.login-page {
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
  padding-bottom: 80px; /* Space for bottom nav */
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.login-page {
  padding-bottom: 0 !important;
  height: 100vh;
  overflow: hidden;
}

/* Mobile first - default mobile layout */
@media (max-width: 768px) {
  body {
    max-width: 480px;
  }
}

/* Desktop layout - sama cantiknya dengan mobile */
@media (min-width: 769px) {
  body:not(.login-page) {
    max-width: 480px; /* Tetap gunakan layout mobile yang cantik */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    border-radius: 20px;
    margin: 20px auto;
    border: 1px solid rgba(255,255,255,0.8);
  }
  
  body.login-page {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    border: none;
    padding: 0;
    padding-bottom: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Login Page Styles */
.login-page {
  margin: 0;
  padding: 0;
  height: 100vh;
  max-height: 100vh;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2c5aa0 100%);
  background-size: 400% 400%;
  -webkit-animation: gradientShift 15s ease infinite;
  -moz-animation: gradientShift 15s ease infinite;
  animation: gradientShift 15s ease infinite;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop login page - gunakan styling yang sama dengan mobile */
@media (min-width: 769px) {
  .login-page {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #2c5aa0 100%);
    background-size: 400% 400%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  -webkit-animation: float 6s ease-in-out infinite;
  -moz-animation: float 6s ease-in-out infinite;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  -webkit-animation-delay: 0s;
  -moz-animation-delay: 0s;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  -webkit-animation-delay: 2s;
  -moz-animation-delay: 2s;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  -webkit-animation-delay: 4s;
  -moz-animation-delay: 4s;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  -webkit-animation-delay: 1s;
  -moz-animation-delay: 1s;
  animation-delay: 1s;
}

.login-container {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* Mobile optimization untuk login container */
@media (max-width: 768px) {
  .login-container {
    height: auto;
    max-height: 100vh;
    min-height: 100vh;
    padding: 15px 10px;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 20px;
  }
  
  body.login-page {
    overflow-y: auto;
  }
  
  html.login-page {
    overflow-y: auto;
  }
}

/* Desktop centering untuk login container */
@media (min-width: 769px) {
  .login-container {
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    overflow: hidden;
  }
}



/* Logo Section */
.logo-section {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 0;
  -webkit-animation: slideInDown 1s ease-out;
  -moz-animation: slideInDown 1s ease-out;
  animation: slideInDown 1s ease-out;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  -webkit-animation: pulse 2s ease-in-out infinite;
  -moz-animation: pulse 2s ease-in-out infinite;
  animation: pulse 2s ease-in-out infinite;
}

.logo-icon i {
  font-size: 28px;
  color: white;
}

.app-title {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 15px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-animation: slideInUp 1s ease-out 0.3s both;
  -moz-animation: slideInUp 1s ease-out 0.3s both;
  animation: slideInUp 1s ease-out 0.3s both;
  margin-bottom: 5px;
}

.card-header {
  text-align: center;
  margin-bottom: 15px;
}

.login-title {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.login-subtitle {
  color: #666;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* Google Login Button */
.google-login-wrapper {
  margin-bottom: 15px;
}

.custom-google-btn {
  width: 100%;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-google-btn:hover {
  border-color: #4285f4;
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
}

.custom-google-btn:active {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.google-icon {
  margin-right: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 15px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 15px;
  color: #999;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Demo Login Button */
.demo-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.demo-login-btn:hover {
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.demo-login-btn:active {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.demo-login-btn i {
  margin-right: 10px;
  font-size: 18px;
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.login-footer p {
  color: #999;
  font-size: 10px;
  margin: 0;
  line-height: 1.3;
}

.login-footer a {
  color: #4a90e2;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Features Section - Slogan */
.features-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin-top: 5px;
  padding: 8px 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-animation: fadeInUp 1s ease-out 0.6s both, sloganPulse 4s ease-in-out infinite 2s, sloganGlow 3s ease-in-out infinite 3s;
  -moz-animation: fadeInUp 1s ease-out 0.6s both, sloganPulse 4s ease-in-out infinite 2s, sloganGlow 3s ease-in-out infinite 3s;
  animation: fadeInUp 1s ease-out 0.6s both, sloganPulse 4s ease-in-out infinite 2s, sloganGlow 3s ease-in-out infinite 3s;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  -webkit-animation: shimmer 3s ease-in-out infinite 4s;
  -moz-animation: shimmer 3s ease-in-out infinite 4s;
  animation: shimmer 3s ease-in-out infinite 4s;
}

@-webkit-keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@-moz-keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.feature-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  padding: 10px 5px;
  border-radius: 12px;
  flex: 1;
}

.feature-item:hover {
  transform: translateY(-5px) scale(1.05);
  -webkit-transform: translateY(-5px) scale(1.05);
  -moz-transform: translateY(-5px) scale(1.05);
  -ms-transform: translateY(-5px) scale(1.05);
  -o-transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  color: white;
}

.feature-item i {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(45deg, #fff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.feature-item:hover i {
  transform: scale(1.2) rotate(5deg);
  -webkit-transform: scale(1.2) rotate(5deg);
  -moz-transform: scale(1.2) rotate(5deg);
  -ms-transform: scale(1.2) rotate(5deg);
  -o-transform: scale(1.2) rotate(5deg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-item span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.feature-item:hover span {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Animations */
@-webkit-keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@-moz-keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Slogan Animation */
@-webkit-keyframes sloganPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@-moz-keyframes sloganPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes sloganPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@-webkit-keyframes sloganGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@-moz-keyframes sloganGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@keyframes sloganGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@-webkit-keyframes float {
  0%, 100% { -webkit-transform: translateY(0px) rotate(0deg); }
  33% { -webkit-transform: translateY(-20px) rotate(120deg); }
  66% { -webkit-transform: translateY(10px) rotate(240deg); }
}

@-moz-keyframes float {
  0%, 100% { -moz-transform: translateY(0px) rotate(0deg); }
  33% { -moz-transform: translateY(-20px) rotate(120deg); }
  66% { -moz-transform: translateY(10px) rotate(240deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@-webkit-keyframes pulse {
  0%, 100% { -webkit-transform: scale(1); }
  50% { -webkit-transform: scale(1.05); }
}

@-moz-keyframes pulse {
  0%, 100% { -moz-transform: scale(1); }
  50% { -moz-transform: scale(1.05); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@-webkit-keyframes slideInDown {
  from {
    -webkit-transform: translateY(-50px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    opacity: 1;
  }
}

@-moz-keyframes slideInDown {
  from {
    -moz-transform: translateY(-50px);
    opacity: 0;
  }
  to {
    -moz-transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes slideInUp {
  from {
    -webkit-transform: translateY(50px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    opacity: 1;
  }
}

@-moz-keyframes slideInUp {
  from {
    -moz-transform: translateY(50px);
    opacity: 0;
  }
  to {
    -moz-transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes fadeInUp {
  from {
    -webkit-transform: translateY(30px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    opacity: 1;
  }
}

@-moz-keyframes fadeInUp {
  from {
    -moz-transform: translateY(30px);
    opacity: 0;
  }
  to {
    -moz-transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */

/* Desktop and Tablet Styles */
@media (min-width: 768px) {
  .login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  
  .login-container {
    max-width: 450px;
    padding: 40px;
    min-height: auto;
    justify-content: flex-start;
  }
  
  .logo-section {
    margin-bottom: 50px;
  }
  
  .logo-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
  }
  
  .logo-icon i {
    font-size: 48px;
  }
  
  .app-title {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  .app-subtitle {
    font-size: 16px;
  }
  
  .login-card {
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 24px;
  }
  
  .login-title {
    font-size: 28px;
  }
  
  .login-subtitle {
    font-size: 16px;
  }
  
  .custom-google-btn,
  .demo-login-btn {
    padding: 16px 24px;
    font-size: 18px;
  }
  
  .features-section {
    margin-top: 30px;
    gap: 40px;
  }
  
  .feature-item {
    font-size: 14px;
  }
  
  .feature-item i {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  /* Floating shapes adjustment for desktop */
  .shape-1 {
    width: 120px;
    height: 120px;
  }
  
  .shape-2 {
    width: 180px;
    height: 180px;
  }
  
  .shape-3 {
    width: 90px;
    height: 90px;
  }
  
  .shape-4 {
    width: 150px;
    height: 150px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .login-container {
    max-width: 500px;
    padding: 50px;
  }
  
  .login-card {
    padding: 50px;
  }
  
  .app-title {
    font-size: 36px;
  }
  
  .login-title {
    font-size: 30px;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .login-container {
    padding: 15px;
  }
  
  .login-card {
    padding: 25px 20px;
    border-radius: 16px;
  }
  
  .app-title {
    font-size: 24px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  .features-section {
    margin-top: 20px;
  }
  
  .feature-item {
    font-size: 11px;
  }
  
  .feature-item i {
    font-size: 18px;
  }
}

/* Height-based adjustments */
@media (max-height: 700px) {
  .logo-section {
    margin-bottom: 25px;
  }
  
  .login-card {
    margin-bottom: 20px;
  }
  
  .features-section {
    margin-top: 15px;
  }
}

@media (min-height: 900px) and (min-width: 768px) {
  .login-container {
    justify-content: center;
  }
}

/* Mobile Header */
.mobile-header {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  background: -webkit-linear-gradient(135deg, #2196F3, #1976D2);
  background: -moz-linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  padding: 12px 16px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Desktop header - tetap cantik seperti mobile */
@media (min-width: 769px) {
  .mobile-header {
    border-radius: 0 0 20px 20px;
    margin: 0 -20px 20px -20px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95), rgba(25, 118, 210, 0.95));
  }
}

.header-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 8px;
}

.header-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.header-title i {
  font-size: 20px;
}

.notification-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.notification-btn:hover {
  background: rgba(255,255,255,0.3);
}

.user-profile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.profile-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-class {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading state for profile */
.profile-name.loading,
.profile-class.loading {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: transparent;
  animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Main Content */
.mobile-main {
  padding: 20px 16px;
}

/* Desktop main content - tetap cantik seperti mobile */
@media (min-width: 769px) {
  .mobile-main {
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    margin: 0 20px 20px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
}

/* Search Bar */
.search-container {
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 16px;
}

.search-box i {
  color: #9e9e9e;
  margin-right: 12px;
}

.search-box input {
  border: none;
  outline: none;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 16px 0;
  font-size: 16px;
  background: transparent;
}

.search-box input::placeholder {
  color: #9e9e9e;
}

/* Barcode Search Styles */
.barcode-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 8px;
}

.barcode-search-box .barcode-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.barcode-search-box .barcode-input::placeholder {
  color: #9e9e9e;
}

.barcode-search-box .scan-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile responsive untuk barcode search */
@media (max-width: 768px) {
  .barcode-search-box {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .barcode-search-box .barcode-input {
    width: 100%;
    padding: 14px;
  }
  
  .barcode-search-box .scan-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .barcode-search-box .scan-btn {
    padding: 12px;
    font-size: 14px;
  }
}

.barcode-search-box .scan-btn:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.barcode-search-box .scan-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Scanner Modal Styles */
.scanner-modal {
  max-width: 90vw;
  max-height: 90vh;
  width: 400px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
}

.scanner-header .modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-scanner-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-scanner-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.scanner-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: #000;
  overflow: hidden;
}

#barcodeVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-line {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2196F3, transparent);
  animation: scannerMove 2s ease-in-out infinite;
}

@keyframes scannerMove {
  0%, 100% {
    transform: translateY(-50px);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
}

.scanner-instruction {
  text-align: center;
  padding: 16px 20px;
  margin: 0;
  color: #666;
  font-size: 14px;
  background: #f8f9fa;
}

/* Book Search Result Styles */
.book-search-result {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.book-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.book-result-header h4 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.book-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.book-availability.available {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.book-availability.unavailable {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

.book-result-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.book-author, .book-publisher, .book-barcode {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.book-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.borrow-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  width: 100%;
  justify-content: center;
}

.borrow-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.borrow-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Book Section */
.book-section {
  background: white;
  border-radius: 12px;
}

/* Loans Container - Mobile First */
.loans-container {
  padding: 16px;
  max-width: 100%;
  overflow-x: hidden;
  background: transparent;
}

.loans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.loans-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.15px;
}

.loans-header h4 i {
  color: #2196F3;
  font-size: 18px;
}

.loans-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.loans-list {
  display: flex;
  flex-direction: column;
}

.loan-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* Prevent text selection on touch */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Touch action for better scrolling */
  touch-action: manipulation;
  /* Animation on load */
  animation: slideInUp 0.4s ease-out;
}

/* Touch feedback for mobile */
.loan-item:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Hover effects for desktop */
@media (hover: hover) {
  .loan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
    border-color: #e3f2fd;
  }
}

/* Animation keyframes */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loan-item:last-child {
  margin-bottom: 0;
}

/* Material Design elevation on focus */
.loan-item:focus {
  outline: none;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2), 0 2px 6px rgba(0,0,0,0.06);
  border-color: #2196F3;
}

.loan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  /* Touch-friendly spacing */
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
}

.book-info {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.book-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
  /* Better text rendering on mobile */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent text overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Material Design typography */
  letter-spacing: 0.15px;
}

.book-barcode {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #e9ecef;
  letter-spacing: 0.5px;
}

.loan-status-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.loan-status-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.loan-status-indicator:hover::before {
  transform: translateX(100%);
}

.loan-status-indicator.normal {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.loan-status-indicator.warning {
  background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
  color: white;
  animation: gentlePulse 2s ease-in-out infinite;
}

.loan-status-indicator.overdue {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
  }
}

@keyframes urgentPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  }
  50% { 
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.6);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Status indicators for due dates */
.detail-value.warning {
  color: #ff9800;
  font-weight: 600;
}

.detail-value.overdue {
  color: #f44336;
  font-weight: 600;
}

.loans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.8);
}

.loans-header h4 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loans-count {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
}

.loans-count:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.loan-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #495057;
  padding: 6px 0;
  /* Touch-friendly minimum height */
  min-height: 36px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* Touch feedback for detail items */
.detail-item:active {
  background-color: #f5f5f5;
}

.detail-item i {
  color: #6c757d;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.detail-item span {
  flex: 1;
  line-height: 1.4;
  /* Better text rendering */
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

.detail-item span.warning {
  color: #fd7e14;
  font-weight: 500;
}

.detail-item span.overdue {
  color: #dc3545;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
  color: #666;
}

/* Loading Skeleton */
.skeleton-loader {
  padding: 12px;
}

.skeleton-item {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.skeleton-title {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-barcode {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  width: 40%;
}

.skeleton-status {
  height: 32px;
  width: 90px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 24px;
}

.skeleton-detail {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-detail:nth-child(1) { width: 80%; }
.skeleton-detail:nth-child(2) { width: 70%; }
.skeleton-detail:nth-child(3) { width: 85%; }
.skeleton-detail:nth-child(4) { width: 75%; }
.skeleton-detail:nth-child(5) { width: 60%; }

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pull to refresh indicator */
.pull-indicator {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #666;
}

.pull-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.pull-icon i {
  transition: transform 0.3s ease;
}

/* Responsive Design for Loans - Mobile First Approach */

/* Extra small devices (phones, less than 360px) */
@media (max-width: 359px) {
  .loans-container {
    padding: 12px 8px;
  }
  
  .loans-header {
    margin-bottom: 12px;
    padding: 0 4px;
  }
  
  .loans-header h4 {
    font-size: 18px;
  }
  
  .loans-count {
    padding: 3px 8px;
    font-size: 11px;
  }
  
  .loan-item {
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  
  .book-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .book-barcode {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .loan-status-indicator {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .detail-item {
    font-size: 13px;
    min-height: 32px;
    gap: 10px;
    padding: 4px 0;
  }
  
  .detail-item i {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .loans-container {
    padding: 20px;
  }
  
  .loan-item {
    padding: 24px;
    margin-bottom: 16px;
  }
  
  .book-title {
    font-size: 19px;
  }
  
  .detail-item {
    font-size: 15px;
    min-height: 40px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .loan-item {
    background: #1e1e1e;
    border-color: #333;
    color: #ffffff;
  }
  
  .book-title {
    color: #ffffff;
  }
  
  .book-barcode {
    background: #333;
    border-color: #444;
    color: #ccc;
  }
  
  .detail-item {
    color: #ccc;
  }
  
  .loans-header h4 {
    color: #ffffff;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .loan-item {
    animation: none;
    transition: none;
  }
  
  .loan-status-indicator {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .loan-item {
    border: 2px solid #000;
  }
  
  .book-barcode {
    border: 1px solid #000;
  }
    height: 18px;
    font-size: 14px;
  }
}

/* Small devices (phones, 360px to 480px) */
@media (max-width: 480px) {
  .loan-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .loan-status {
    margin-left: 0;
    align-self: flex-start;
    margin-top: 4px;
  }
  
  .book-info {
    padding-right: 0;
  }
  
  /* Improve touch targets */
  .loan-item {
    margin-bottom: 20px;
  }
  
  .detail-item {
    padding: 10px 8px;
  }
}

/* Medium devices (tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .loans-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .loan-item {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .book-title {
    font-size: 18px;
  }
  
  .detail-item {
    font-size: 16px;
  }
}

/* Large devices (desktops, 769px and up) */
@media (min-width: 769px) {
  .loans-container {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .loan-item {
    padding: 24px;
    margin-bottom: 24px;
    /* Grid layout for larger screens */
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 20px;
  }
  
  .loan-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  
  .loan-details {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .book-title {
    font-size: 20px;
  }
  
  .detail-item {
    font-size: 16px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 12px;
  }
  
  /* Remove swipe indicator on desktop */
  .loan-item::before {
    display: none;
  }
  
  /* Enhanced hover effects for desktop */
  .loan-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
}

.book-section {
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* Scan Barcode Styles */
.scan-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.scan-input-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scan-input-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1rem;
}

.barcode-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.barcode-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.barcode-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.scan-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scan-btn, .search-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.scan-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Scanner Section */
.scanner-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.scanner-video {
  width: 100%;
  max-width: 400px;
  height: 300px;
  border-radius: 8px;
  background: #f0f0f0;
  margin-bottom: 15px;
}

.stop-scan-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.stop-scan-btn:hover {
  background: #d32f2f;
}

/* Book Result Styles */
.book-result-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-search-loading {
  text-align: center;
  padding: 40px 20px;
}

.book-result-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.book-result-header {
  background: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.book-result-header h4 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.book-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.book-availability.available {
  background: #e8f5e8;
  color: #2e7d32;
}

.book-availability.unavailable {
  background: #ffebee;
  color: #c62828;
}

.book-details {
  padding: 20px;
}

.book-result-title {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.book-author, .book-isbn, .book-location {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.book-actions {
  padding: 0 20px 20px;
}

.borrow-btn {
  width: 100%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.borrow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive adjustments for scan */
@media (max-width: 768px) {
  .scan-container {
    padding: 15px;
  }
  
  .barcode-input-group {
    flex-direction: column;
  }
  
  .scan-buttons {
    flex-direction: column;
  }
  
  .scan-btn, .search-btn {
    width: 100%;
  }
  
  .book-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.section-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.see-all {
  color: #2196F3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  -o-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
  0% { -moz-transform: rotate(0deg); }
  100% { -moz-transform: rotate(360deg); }
}

@-o-keyframes spin {
  0% { -o-transform: rotate(0deg); }
  100% { -o-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  width: 60px;
  height: 60px;
  background: #ffebee;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.error-icon i {
  font-size: 24px;
  color: #f44336;
}

.error-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.error-state p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.retry-btn {
  background: #2196F3;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.retry-btn:hover {
  background: #1976D2;
}

/* Table Styles */
.members-container {
  margin-top: 20px;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table.show {
  display: table;
}

.members-table th,
.members-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.members-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.members-table td {
  font-size: 14px;
  color: #666;
}

.members-table tr:hover {
  background-color: #f5f5f5;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid #eee;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 8px 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

/* Desktop bottom navigation - tetap cantik seperti mobile */
@media (min-width: 769px) {
  .bottom-nav {
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
  }
}

.nav-item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.3s;
  color: #9e9e9e;
}

.nav-item.active {
  color: #2196F3;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
}

.nav-item:hover {
  color: #2196F3;
}



/* Logout Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-container {
  background: white;
  border-radius: 16px;
  padding: 32px 24px 24px;
  margin: 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  animation: modalShow 0.3s ease-out forwards;
}

@keyframes modalShow {
  to {
    transform: scale(1);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #ffebee;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon i {
  font-size: 28px;
  color: #f44336;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.modal-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.modal-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.btn-cancel,
.btn-confirm {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-cancel:hover {
  background: #e0e0e0;
}

.btn-confirm {
  background: #f44336;
  color: white;
}

.btn-confirm:hover {
  background: #d32f2f;
}

/* Add User Modal Styles */
.add-user-modal {
  max-width: 400px;
  padding: 0;
  text-align: left;
}

.add-user-modal .modal-header {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.add-user-modal .modal-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.add-user-modal .modal-icon i {
  font-size: 24px;
  color: white;
}

.add-user-modal .modal-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0 16px;
  flex: 1;
}

.close-modal-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.add-user-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-label i {
  font-size: 16px;
  color: #4a90e2;
  margin-right: 8px;
  width: 16px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  color: #333;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  padding: 8px;
}

.input-error {
  font-size: 12px;
  color: #f44336;
  margin-top: 4px;
  min-height: 16px;
}

.add-user-modal .modal-buttons {
  margin-top: 24px;
  gap: 12px;
}

.add-user-modal .btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e1e5e9;
}

.add-user-modal .btn-cancel:hover {
  background: #e0e0e0;
  border-color: #d1d5d9;
}

.add-user-modal .btn-confirm {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-user-modal .btn-confirm:hover {
  background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.add-user-modal .btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.add-user-modal .btn-confirm i {
  font-size: 14px;
}

/* Form validation states */
.form-input.error,
.form-select.error {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-input.success,
.form-select.success {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Loading state */
.btn-confirm.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-confirm.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Return Book Modal Styles */
.return-book-modal {
  max-width: 450px;
  padding: 0;
  text-align: left;
}

.return-book-modal .modal-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.return-book-modal .modal-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.return-book-modal .modal-icon i {
  font-size: 24px;
  color: white;
}

.return-book-modal .modal-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0 16px;
  flex: 1;
}

.return-book-form {
  padding: 24px;
}

.return-book-modal .modal-buttons {
  margin-top: 24px;
  gap: 12px;
}

.return-book-modal .btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e1e5e9;
}

.return-book-modal .btn-cancel:hover {
  background: #e0e0e0;
  border-color: #d1d5d9;
}

.return-book-modal .btn-confirm {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.return-book-modal .btn-confirm:hover {
  background: linear-gradient(135deg, #f7931e 0%, #e8851c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.return-book-modal .btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.return-book-modal .btn-confirm i {
  font-size: 14px;
}

/* Loan details section */
.loan-details {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  display: none;
}

.loan-details.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.loan-details h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-details h4 i {
  color: #ff6b35;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #666;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.overdue {
  color: #dc3545 !important;
  font-weight: 700;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness for return book modal */
@media (max-width: 480px) {
  .return-book-modal {
    max-width: 95%;
    margin: 10px;
  }
  
  .return-book-modal .modal-header {
    padding: 20px;
  }
  
  .return-book-modal .modal-title {
    font-size: 18px;
  }
  
  .return-book-form {
    padding: 20px;
  }
  
  .loan-details {
    padding: 12px;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Mobile responsiveness for add user modal */
@media (max-width: 480px) {
  .add-user-modal {
    max-width: 95%;
    margin: 10px;
  }
  
  .add-user-modal .modal-header {
    padding: 20px;
  }
  
  .add-user-modal .modal-title {
    font-size: 18px;
  }
  
  .add-user-form {
    padding: 20px;
  }
  
  .form-input,
  .form-select {
    padding: 10px 14px;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .btn-cancel,
  .btn-confirm {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #4a90e2;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 350px;
  min-width: 280px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-content i {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-content span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

.notification-success {
  border-left-color: #4caf50;
}

.notification-success .notification-content i {
  color: #4caf50;
}

.notification-error {
  border-left-color: #f44336;
}

.notification-error .notification-content i {
  color: #f44336;
}

.notification-info {
  border-left-color: #2196f3;
}

.notification-info .notification-content i {
  color: #2196f3;
}

/* Mobile notification adjustments */
@media (max-width: 480px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
}

/* Mobile viewport optimization */
@media (max-width: 480px) {
  .login-page {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
  
  .login-container {
    height: 100vh;
    max-height: 100vh;
    padding: 15px 10px 10px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  
  .logo-section {
    margin-bottom: 20px;
    margin-top: 5px;
  }
  
  .logo-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
  }
  
  .logo-icon i {
    font-size: 26px;
  }
  
  .app-title {
    font-size: 20px;
    margin: 0 0 4px 0;
  }
  
  .app-subtitle {
    font-size: 12px;
  }
  
  .login-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  
  .card-header {
    margin-bottom: 18px;
  }
  
  .login-title {
    font-size: 19px;
  }
  
  .login-subtitle {
    font-size: 12px;
  }
  
  .custom-google-btn,
  .demo-login-btn {
    padding: 11px 15px;
    font-size: 13px;
    border-radius: 9px;
  }
  
  .google-login-wrapper {
    margin-bottom: 14px;
  }
  
  .divider {
    margin: 14px 0;
  }
  
  .login-footer {
    margin-top: 14px;
    padding-top: 14px;
  }
  
  .login-footer p {
    font-size: 10px;
  }
  
  .features-section {
    margin-top: 18px;
    padding: 18px 10px;
    border-radius: 16px;
  }
  
  .feature-item {
    font-size: 13px;
    padding: 10px 4px;
  }
  
  .feature-item i {
    font-size: 24px !important;
    margin-bottom: 7px !important;
  }
  
  .feature-item span {
    font-size: 13px;
    letter-spacing: 0.8px;
    font-weight: 700;
  }
}

/* Force mobile layout on all devices */
@media (min-width: 481px) {
  body {
    max-width: 480px !important;
  }
}

/* Ensure mobile-first design */
.login-container {
  max-width: 90%;
  margin: 50px auto;
  padding: 30px 20px;
}

/* Hide desktop elements */
@media (min-width: 769px) {
  body {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
}

/* Warning Modal Styles */
.warning-modal-overlay,
.fedcm-error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.warning-modal-overlay.show,
.fedcm-error-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.warning-modal-container {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.warning-modal-overlay.show .warning-modal-container {
  transform: scale(1) translateY(0);
}

.warning-modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.warning-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(255, 107, 107, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  animation: warningPulse 2s ease-in-out infinite;
}

.warning-icon i {
  font-size: 36px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes warningPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 10px 30px rgba(255, 107, 107, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 15px 40px rgba(255, 107, 107, 0.6),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
}

.warning-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.warning-subtitle {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  font-weight: 500;
}

.warning-content {
  padding: 25px 30px;
}

.email-display {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-display i {
  font-size: 18px;
  color: #6c757d;
}

.email-display span {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  word-break: break-all;
}

.warning-message {
  font-size: 15px;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
  text-align: center;
}

.warning-actions {
  padding: 20px 30px 30px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.btn-contact-admin,
.btn-try-again {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-contact-admin {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 
    0 6px 20px rgba(40, 167, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-contact-admin:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(40, 167, 69, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-try-again {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: white;
  box-shadow: 
    0 6px 20px rgba(108, 117, 125, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-try-again:hover {
  background: linear-gradient(135deg, #5a6268, #6c757d);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(108, 117, 125, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-contact-admin:active,
.btn-try-again:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile optimization for warning modal */
@media (max-width: 480px) {
  .warning-modal-container {
    margin: 20px;
    max-width: calc(100% - 40px);
    border-radius: 16px;
  }
  
  .warning-modal-header {
    padding: 25px 20px 15px;
  }
  
  .warning-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  .warning-icon i {
    font-size: 30px;
  }
  
  .warning-title {
    font-size: 20px;
  }
  
  .warning-subtitle {
    font-size: 13px;
  }
  
  .warning-content {
    padding: 20px;
  }
  
  .email-display {
    padding: 12px 15px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .email-display span {
    font-size: 14px;
  }
  
  .warning-message {
    font-size: 14px;
  }
  
  .warning-actions {
    padding: 15px 20px 25px;
    gap: 10px;
  }
  
  .btn-contact-admin,
  .btn-try-again {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* FedCM Error Modal Styles */
.fedcm-error-modal-container {
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.fedcm-error-modal-overlay.show .fedcm-error-modal-container {
  transform: scale(1) translateY(0);
}

.fedcm-error-header {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  padding: 24px;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.fedcm-error-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fedcm-error-icon i {
  font-size: 28px;
  color: white;
}

.fedcm-error-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fedcm-error-content {
  padding: 24px;
}

.fedcm-error-message {
  font-size: 16px;
  color: #333;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.fedcm-error-steps {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  border-left: 4px solid #17a2b8;
}

.fedcm-error-steps li {
  margin: 8px 0;
  color: #555;
  line-height: 1.5;
}

.fedcm-error-steps strong {
  color: #17a2b8;
  font-weight: 600;
}

.fedcm-alternative {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 0 0;
  color: #0066cc;
  font-size: 14px;
  text-align: center;
}

.fedcm-error-actions {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-demo-alternative,
.btn-close-fedcm {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-demo-alternative {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-close-fedcm {
  background: #6c757d;
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-demo-alternative:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-close-fedcm:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Mobile optimization for FedCM modal */
@media (max-width: 480px) {
  .fedcm-error-modal-container {
    width: 95%;
    margin: 10px;
  }
  
  .fedcm-error-header {
    padding: 20px;
  }
  
  .fedcm-error-content {
    padding: 20px;
  }
  
  .fedcm-error-actions {
    padding: 0 20px 20px;
    grid-template-columns: 1fr;
  }
  
  .fedcm-error-steps {
    padding: 12px 16px;
  }
  
  .fedcm-error-title {
    font-size: 18px;
  }
}

/* Google Sign-In Modal */
.google-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.google-modal-overlay.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.google-modal-container {
  background: white;
  border-radius: 16px;
  padding: 30px 25px;
  margin: 20px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.google-modal-overlay.show .google-modal-container {
  transform: scale(1);
  opacity: 1;
}

.google-modal-header {
  margin-bottom: 25px;
}

.google-modal-icon {
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid #e8eaed;
}

.google-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.google-modal-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.google-signin-container {
  margin: 25px 0;
}

.google-modal-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.google-modal-cancel {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: white;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
}

.google-modal-cancel:hover {
  background: #f8f9fa;
  border-color: #c4c7c5;
}

.google-modal-signin {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #1a73e8;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
}

.google-modal-signin:hover {
  background: #1557b0;
}

.google-modal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.google-modal-footer p {
  color: #999;
  font-size: 11px;
  margin: 0;
  line-height: 1.3;
}

.google-modal-footer a {
  color: #1a73e8;
  text-decoration: none;
}

.google-modal-footer a:hover {
  text-decoration: underline;
}

/* Login Loading Overlay */
.login-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  z-index: 1000;
}

.login-loading-content {
  text-align: center;
  color: #2c3e50;
}

.login-loading-content p {
  margin: 16px 0 0 0;
  font-size: 16px;
  font-weight: 500;
}

.login-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Login Error Modal */
.login-error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.login-error-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.login-error-modal-container {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.login-error-modal-overlay.show .login-error-modal-container {
  transform: scale(1) translateY(0);
}

.login-error-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.login-error-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.login-error-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.login-error-content {
  padding: 24px;
  text-align: center;
}

.login-error-message {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.login-error-actions {
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
}

.btn-close-error {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-error:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Mobile optimization for new modals */
@media (max-width: 768px) {
  .login-error-modal-container {
    width: 95%;
    margin: 20px;
  }
  
  .login-error-header {
    padding: 20px;
  }
  
  .login-error-icon {
    font-size: 40px;
  }
  
  .login-error-title {
    font-size: 20px;
  }
  
  .login-error-content {
    padding: 20px;
  }
  
  .login-error-actions {
    padding: 0 20px 20px;
  }
  
  .btn-close-error {
    width: 100%;
    justify-content: center;
  }
}

/* Book Search Loading, Error, and Not Found Styles */
.book-search-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.book-search-loading .loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.book-search-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196F3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.book-search-error {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 16px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.book-search-error .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.book-search-error .error-content i {
  font-size: 48px;
  color: #F44336;
  margin-bottom: 8px;
}

.book-search-error h4 {
  margin: 0;
  color: #F44336;
  font-size: 18px;
  font-weight: 600;
}

.book-search-error p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.book-search-error .retry-btn {
  background: linear-gradient(135deg, #F44336, #D32F2F);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.book-search-error .retry-btn:hover {
  background: linear-gradient(135deg, #D32F2F, #C62828);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.book-not-found {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2) !important;
  border: 1px solid rgba(255, 152, 0, 0.2) !important;
}

.book-not-found .not-found-content {
  text-align: center;
  padding: 20px;
}

.book-not-found .not-found-content h3 {
  margin: 0 0 12px 0;
  color: #FF9800;
  font-size: 20px;
  font-weight: 600;
}

.book-not-found .not-found-content p {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.book-not-found .not-found-content .suggestion {
  color: #999;
  font-style: italic;
  font-size: 13px;
}

/* Barcode Search Result Section Styles */
.barcode-result-section {
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.barcode-result-section .section-header {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  padding: 16px 20px;
  margin: 0;
}

.barcode-result-section .section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.barcode-result-section .section-header h3::before {
  content: '\f029';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 16px;
}

#barcodeSearchResultContainer {
  padding: 20px;
}

.book-search-result {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.book-result-header h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.book-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-availability.available {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.book-availability.unavailable {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.book-details {
  margin-bottom: 16px;
}

.book-result-title {
  margin: 0 0 12px 0;
  color: #2196F3;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.book-details p {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.book-details p strong {
  color: #333;
  font-weight: 600;
}

.book-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.borrow-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.borrow-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Mobile responsiveness for barcode result section */
@media (max-width: 768px) {
  .barcode-result-section {
    margin: 12px 0;
    border-radius: 12px;
  }
  
  .barcode-result-section .section-header {
    padding: 12px 16px;
  }
  
  .barcode-result-section .section-header h3 {
    font-size: 16px;
  }
  
  #barcodeSearchResultContainer {
    padding: 16px;
  }
  
  .book-search-result {
    padding: 16px;
  }
  
  .book-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .book-result-title {
    font-size: 16px;
  }
  
  .book-actions {
    justify-content: stretch;
  }
  
  .borrow-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Borrow Confirmation Modal Styles */
.borrow-confirmation-modal {
  z-index: 10000;
}

.borrow-modal {
  max-width: 400px;
  width: 90%;
  padding: 32px 24px;
  text-align: center;
}

.borrow-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.3);
}

.borrow-icon i {
  font-size: 36px;
  color: white;
}

.borrow-modal .modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.borrow-modal .modal-message {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 32px;
}

.borrow-modal .modal-message strong {
  color: #2196F3;
  font-weight: 600;
}

.borrow-modal .modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.borrow-modal .btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.borrow-modal .btn-cancel:hover {
  background: #e0e0e0;
  color: #333;
}

.borrow-modal .btn-confirm {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.borrow-modal .btn-confirm:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Snackbar Styles */
.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  width: 90%;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.snackbar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.success-snackbar {
  border-left: 4px solid #4CAF50;
}

.success-snackbar .snackbar-content i {
  color: #4CAF50;
  font-size: 20px;
}

.success-snackbar .snackbar-content span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.error-snackbar {
  border-left: 4px solid #f44336;
}

.error-snackbar .snackbar-content i {
  color: #f44336;
  font-size: 20px;
}

.error-snackbar .snackbar-content span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.info-snackbar {
  border-left: 4px solid #2196F3;
}

.info-snackbar .snackbar-content i {
  color: #2196F3;
  font-size: 20px;
}

.info-snackbar .snackbar-content span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.warning-snackbar {
  border-left: 4px solid #FF9800;
}

.warning-snackbar .snackbar-content i {
  color: #FF9800;
  font-size: 20px;
}

.warning-snackbar .snackbar-content span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* Mobile responsiveness for modal and snackbar */
@media (max-width: 768px) {
  .borrow-modal {
    padding: 24px 20px;
  }
  
  .borrow-icon {
    width: 64px;
    height: 64px;
  }
  
  .borrow-icon i {
    font-size: 28px;
  }
  
  .borrow-modal .modal-title {
    font-size: 20px;
  }
  
  .borrow-modal .modal-message {
    font-size: 14px;
  }
  
  .borrow-modal .modal-buttons {
    flex-direction: column;
  }
  
  .borrow-modal .btn-cancel,
  .borrow-modal .btn-confirm {
    width: 100%;
    min-width: auto;
  }
  
  .snackbar {
    bottom: 16px;
    width: 95%;
  }
  
  .snackbar-content {
    padding: 14px 16px;
  }
  
  .snackbar-content span {
    font-size: 13px;
  }
}

/* Member Level Section Styles */
.member-level-section {
  margin: 20px 16px;
  display: block;
}

.level-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 200%;
  border-radius: 20px;
  padding: 24px;
  color: white;
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: gradientShift 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.level-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(102, 126, 234, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.1);
  animation-duration: 2s;
}

.level-card:active {
  transform: translateY(-4px) scale(1.01);
  transition-duration: 0.1s;
}

.level-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmerRotate 3s linear infinite;
  pointer-events: none;
}

.level-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 25% 85%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(255, 165, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 30% 60%, rgba(255, 215, 0, 0.06) 0%, transparent 40%);
  animation: sparkleFloat 8s ease-in-out infinite;
  pointer-events: none;
}

/* Tambahan sparkle effects */
.level-card {
  position: relative;
}

.level-card:hover::after {
  animation-duration: 4s;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(255, 215, 0, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 25% 85%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(255, 165, 0, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 30% 60%, rgba(255, 215, 0, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(255, 215, 0, 0.1) 0%, transparent 35%);
}

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

.level-info {
  flex: 1;
}

.level-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: white;
}

.level-subtitle {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.level-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: iconFloat 3s ease-in-out infinite;
}

.level-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  animation: iconShimmer 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-card:hover .level-icon::before {
  opacity: 1;
}

.level-card:hover .level-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 25px rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.level-number {
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: badgeShimmer 3s ease-in-out infinite;
}

.level-card:hover .level-number {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.level-progress {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.books-count {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.next-level {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: progressGlow 2s ease-in-out infinite;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progressShine 3s ease-in-out infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.6), 
    transparent
  );
  animation: shimmer-progress 2.5s infinite;
}

.level-card:hover .progress-fill {
  animation-duration: 1s;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes progressGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

@keyframes progressShine {
  0%, 100% {
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
  }
  50% {
    transform: translateX(100%) skewX(-15deg);
    opacity: 1;
  }
}

@keyframes shimmer-progress {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.level-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-align: center;
}

/* Level animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmerRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0.8;
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: translateY(-8px) scale(1.1) rotate(90deg);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-5px) scale(0.95) rotate(180deg);
  }
  75% {
    opacity: 0.9;
    transform: translateY(3px) scale(1.05) rotate(270deg);
  }
}

@keyframes floatingParticles {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0px) scale(1);
  }
  33% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.1);
  }
  66% {
    opacity: 0.4;
    transform: translateY(5px) scale(0.9);
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}

@keyframes iconShimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

@keyframes badgeShimmer {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

@keyframes levelUp {
  0% {
    transform: scale(1) rotate(0deg);
    box-shadow: 
      0 8px 32px rgba(102, 126, 234, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  25% {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
      0 12px 48px rgba(255, 215, 0, 0.6),
      0 0 0 2px rgba(255, 255, 255, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
    box-shadow: 
      0 16px 64px rgba(255, 215, 0, 0.8),
      0 0 0 3px rgba(255, 255, 255, 0.5),
      inset 0 3px 0 rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 215, 0, 0.5);
  }
  75% {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 
      0 12px 48px rgba(255, 215, 0, 0.6),
      0 0 0 2px rgba(255, 255, 255, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.4);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 
      0 8px 32px rgba(102, 126, 234, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes celebrationPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

.level-up-animation {
  animation: 
    levelUp 1.2s ease-in-out,
    celebrationPulse 0.8s ease-in-out 1.2s 3;
}

/* Menu Icons Section */
.menu-icons-section {
  margin: 24px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.menu-icons-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.05) 0%,
    rgba(156, 39, 176, 0.05) 100%
  );
  pointer-events: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.1) 0%,
    rgba(156, 39, 176, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(33, 150, 243, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.menu-item:active {
  transform: translateY(-4px) scale(1.02);
  transition-duration: 0.1s;
}

.menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2196F3 0%, #9C27B0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 
    0 4px 16px rgba(33, 150, 243, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%
  );
  animation: iconShimmer 3s linear infinite;
  opacity: 0;
}

.menu-item:hover .menu-icon::before {
  opacity: 1;
}

.menu-item:hover .menu-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 8px 25px rgba(33, 150, 243, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.menu-icon i {
  font-size: 20px;
  color: white;
  transition: all 0.3s ease;
}

.menu-item:hover .menu-icon i {
  transform: scale(1.1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.menu-item:hover .menu-label {
  color: #2196F3;
  transform: scale(1.05);
}

/* Specific icon colors */
.menu-item:nth-child(1) .menu-icon {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.menu-item:nth-child(2) .menu-icon {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.menu-item:nth-child(3) .menu-icon {
  background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
}

.menu-item:nth-child(4) .menu-icon {
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.menu-item:nth-child(5) .menu-icon {
  background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
}

.menu-item:nth-child(6) .menu-icon {
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
}

.menu-item:nth-child(7) .menu-icon {
  background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
}

.menu-item:nth-child(8) .menu-icon {
  background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.menu-item:nth-child(9) .menu-icon {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
}

/* Mobile responsiveness for menu icons */
@media (max-width: 768px) {
  .menu-icons-section {
    margin: 20px 12px;
    padding: 20px;
  }
  
  .menu-grid {
    gap: 16px;
  }
  
  .menu-item {
    padding: 16px 8px;
  }
  
  .menu-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  
  .menu-icon i {
    font-size: 18px;
  }
  
  .menu-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .menu-icons-section {
    margin: 16px 8px;
    padding: 16px;
  }
  
  .menu-grid {
    gap: 12px;
  }
  
  .menu-item {
    padding: 14px 6px;
  }
  
  .menu-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .menu-icon i {
    font-size: 16px;
  }
  
  .menu-label {
    font-size: 10px;
  }
}

/* Mobile responsiveness for level section */
@media (max-width: 480px) {
  .member-level-section {
    margin: 16px 12px;
  }
  
  .level-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .level-header {
    margin-bottom: 16px;
  }
  
  .level-title {
    font-size: 18px;
  }
  
  .level-subtitle {
    font-size: 13px;
  }
  
  .level-icon {
    width: 50px;
    height: 50px;
    padding: 6px;
  }
  
  .level-number {
    font-size: 12px;
    padding: 3px 10px;
  }
  
  .books-count {
    font-size: 14px;
  }
  
  .next-level {
    font-size: 12px;
  }
  
  .level-description {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .level-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .progress-info {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* Literasi Content Styles */
.literasi-content {
  padding: 24px;
  background: white;
  border-radius: 16px;
  margin: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.literasi-header {
  text-align: center;
  margin-bottom: 24px;
}

.literasi-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.literasi-icon i {
  font-size: 24px;
  color: white;
}

.literasi-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 8px;
}

.literasi-header p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.literasi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.literasi-instruction {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: 12px;
  border-left: 4px solid #2196F3;
}

.literasi-instruction i {
  font-size: 20px;
  color: #2196F3;
}

.literasi-instruction span {
  font-size: 14px;
  color: #1976D2;
  font-weight: 500;
}

/* Bacaan Content Styles */
.bacaan-content {
  padding: 24px;
  background: white;
  border-radius: 16px;
  margin: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bacaan-header {
  text-align: center;
  margin-bottom: 24px;
}

.bacaan-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.bacaan-icon i {
  font-size: 24px;
  color: white;
}

.bacaan-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #F57C00;
  margin-bottom: 8px;
}

.bacaan-header p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.bacaan-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 0, 0.1);
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}

.summary-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-icon i {
  font-size: 16px;
  color: white;
}

.summary-info {
  flex: 1;
}

.summary-number {
  font-size: 20px;
  font-weight: 700;
  color: #F57C00;
  margin-bottom: 2px;
}

.summary-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.bacaan-empty {
  text-align: center;
  padding: 32px 16px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px dashed #dee2e6;
}

.empty-icon i {
  font-size: 32px;
  color: #adb5bd;
}

.bacaan-empty h4 {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.bacaan-empty p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 16px;
}

.empty-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.1);
  margin: 0 auto;
  max-width: 280px;
}

.empty-action i {
  font-size: 16px;
  color: #2196F3;
}

.empty-action span {
  font-size: 13px;
  color: #1976D2;
  font-weight: 500;
}

/* Pinjaman section styling */
.pinjaman-section {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.pinjaman-section h4 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pinjaman-section h4 i {
  color: #6c757d;
}

.pinjaman-section .empty-state {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.pinjaman-section .empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.pinjaman-section .empty-state p {
  margin: 5px 0;
  font-weight: 500;
}

.pinjaman-section .empty-state small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Instruction styling */
.literasi-instruction, .bacaan-instruction {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 1px solid #c3e6c3;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2d5a2d;
}

.literasi-instruction i, .bacaan-instruction i {
  font-size: 1.2rem;
  color: #4CAF50;
}

.literasi-instruction span, .bacaan-instruction span {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile responsiveness for literasi and bacaan */
@media (max-width: 480px) {
  .literasi-content,
  .bacaan-content {
    margin: 12px;
    padding: 20px;
  }
  
  .literasi-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .stat-item {
    padding: 12px 8px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .bacaan-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .summary-card {
    padding: 14px;
  }
  
  .summary-number {
    font-size: 18px;
  }
  
  .literasi-instruction,
  .empty-action {
    padding: 14px;
    gap: 10px;
  }
  
  .literasi-instruction span,
  .empty-action span {
    font-size: 13px;
  }
  
  .pinjaman-section {
    margin-top: 20px;
    padding: 15px;
  }
  
  .literasi-instruction, .bacaan-instruction {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .literasi-instruction i, .bacaan-instruction i {
    font-size: 1.5rem;
  }
}

/* Add Book Form Styles */
.add-book-form {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.add-book-form:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.add-book-form .book-result-header {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-book-form .book-result-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-book-form .book-result-header h4 i {
  font-size: 20px;
}

.book-availability.new-book {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-availability.new-book i {
  font-size: 16px;
}

.add-book-content {
  padding: 24px;
}

.info-message {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid #bbdefb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-message i {
  color: #2196f3;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-message p {
  color: #1565c0;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.barcode-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.barcode-info label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.barcode-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 16px;
}

.barcode-display i {
  color: #6c757d;
  font-size: 16px;
}

.barcode-display span {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  letter-spacing: 1px;
}

.add-book-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group.required label::after {
  content: ' *';
  color: #dc3545;
  font-weight: bold;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.form-group label i {
  color: #6c757d;
  font-size: 16px;
  width: 16px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  background: #fafafa;
}

.form-input.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.field-hint {
  color: #6c757d;
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.btn-cancel {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cancel:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-add-book {
  flex: 2;
  padding: 14px 20px;
  border: none;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-add-book:hover:not(:disabled) {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-add-book:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for add book form */
@media (max-width: 480px) {
  .add-book-content {
    padding: 20px;
  }
  
  .add-book-form-fields {
    gap: 16px;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-cancel,
  .btn-add-book {
    flex: none;
    padding: 12px 16px;
  }
  
  .info-message {
    padding: 14px;
    gap: 10px;
  }
  
  .barcode-info {
    padding: 14px;
  }
  
  .barcode-display {
    padding: 10px 12px;
  }
  
  .barcode-display span {
    font-size: 14px;
  }
}

/* Loan Success Styles */
.loan-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  border-radius: 12px;
  overflow: hidden;
}

.loan-success .book-result-header h4 {
  color: #155724;
}

.loan-success .book-availability.borrowed {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.loan-success-content {
  padding: 20px;
}

.loan-success .success-message {
  background: #ffffff;
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.loan-success .success-message i {
  color: #28a745;
  font-size: 1.2rem;
  margin-top: 2px;
}

.loan-success .success-message p {
  margin: 0;
  color: #155724;
  font-weight: 500;
  line-height: 1.5;
}

.loan-success .book-details {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #c3e6cb;
}

.loan-success .book-details h5 {
  color: #155724;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}

.loan-success .book-details p {
  margin: 6px 0;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-success .loan-info {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #c3e6cb;
}

.loan-success .loan-date-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.loan-success .date-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loan-success .date-item i {
  color: #28a745;
  font-size: 1.1rem;
}

.loan-success .date-item div {
  display: flex;
  flex-direction: column;
}

.loan-success .date-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.loan-success .date-value {
  font-size: 0.95rem;
  color: #155724;
  font-weight: 600;
}

.loan-success .loan-actions {
  display: flex;
  justify-content: center;
}

.loan-success .btn-view-loans {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-success .btn-view-loans:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Book Not Found Warning Styles */
.book-not-found-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #ffc107;
  border-radius: 12px;
  overflow: hidden;
}

.book-not-found-warning .book-result-header h4 {
  color: #856404;
}

.book-not-found-warning .book-availability.not-found {
  background: linear-gradient(135deg, #ffc107, #ffca2c);
  color: #212529;
}

.warning-content {
  padding: 20px;
}

.book-not-found-warning .warning-message {
  background: #ffffff;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.book-not-found-warning .warning-message i {
  color: #ffc107;
  font-size: 1.2rem;
  margin-top: 2px;
}

.book-not-found-warning .warning-message p {
  margin: 0;
  color: #856404;
  font-weight: 500;
  line-height: 1.5;
}

.book-not-found-warning .barcode-info {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #ffeaa7;
}

.book-not-found-warning .barcode-info label {
  display: block;
  margin-bottom: 8px;
  color: #856404;
  font-weight: 500;
  font-size: 0.9rem;
}

.book-not-found-warning .barcode-display {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1rem;
}

.book-not-found-warning .suggestion-box {
  background: #ffffff;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.book-not-found-warning .suggestion-box i {
  color: #ffc107;
  font-size: 1.2rem;
  margin-top: 2px;
}

.book-not-found-warning .suggestion-box h6 {
  margin: 0 0 8px 0;
  color: #856404;
  font-size: 1rem;
  font-weight: 600;
}

.book-not-found-warning .suggestion-box p {
  margin: 4px 0;
  color: #6c757d;
  line-height: 1.4;
}

.book-not-found-warning .warning-actions {
  display: flex;
  gap: 12px;
}

.book-not-found-warning .btn-contact-admin {
  flex: 1;
  background: linear-gradient(135deg, #ffc107, #ffca2c);
  color: #212529;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.book-not-found-warning .btn-contact-admin:hover {
  background: linear-gradient(135deg, #e0a800, #d39e00);
  transform: translateY(-1px);
}

.book-not-found-warning .btn-try-again {
  flex: 1;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.book-not-found-warning .btn-try-again:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Book Unavailable Styles */
.book-unavailable {
  background: linear-gradient(135deg, #f8d7da, #f1b0b7);
  border: 2px solid #dc3545;
  border-radius: 12px;
  overflow: hidden;
}

.book-unavailable .book-result-header h4 {
  color: #721c24;
}

.book-unavailable .book-availability.unavailable {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.unavailable-content {
  padding: 20px;
}

.book-unavailable .unavailable-message {
  background: #ffffff;
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.book-unavailable .unavailable-message i {
  color: #dc3545;
  font-size: 1.2rem;
  margin-top: 2px;
}

.book-unavailable .unavailable-message p {
  margin: 0;
  color: #721c24;
  font-weight: 500;
  line-height: 1.5;
}

.book-unavailable .book-details {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #f1b0b7;
}

.book-unavailable .book-details h5 {
  color: #721c24;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}

.book-unavailable .book-details p {
  margin: 6px 0;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-unavailable .current-borrower {
  color: #dc3545 !important;
  font-weight: 600;
}

.book-unavailable .suggestion-box {
  background: #ffffff;
  border: 1px solid #f1b0b7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.book-unavailable .suggestion-box i {
  color: #dc3545;
  font-size: 1.2rem;
  margin-top: 2px;
}

.book-unavailable .suggestion-box h6 {
  margin: 0 0 8px 0;
  color: #721c24;
  font-size: 1rem;
  font-weight: 600;
}

.book-unavailable .suggestion-box p {
  margin: 4px 0;
  color: #6c757d;
  line-height: 1.4;
}

.book-unavailable .unavailable-actions {
  display: flex;
  gap: 12px;
}

.book-unavailable .btn-find-similar {
  flex: 1;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.book-unavailable .btn-find-similar:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-1px);
}

.book-unavailable .btn-try-again {
  flex: 1;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.book-unavailable .btn-try-again:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Mobile responsiveness for new components */
@media (max-width: 768px) {
  .loan-success .loan-date-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .book-not-found-warning .warning-actions,
  .book-unavailable .unavailable-actions {
    flex-direction: column;
  }
  
  .loan-success-content,
  .warning-content,
  .unavailable-content {
    padding: 16px;
  }
}