
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

    /* Reset and Base */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

    body {
      background-color: #f1f5f9;
      color: #1e293b;
      height: 100vh;
      overflow: hidden;
    }

    /* Layout Structure */
    .layout {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    .sidebar {
      width: 250px;
      background-color: #ffffff;
      border-right: 1px solid #e2e8f0;
      padding: 20px;
      overflow-y: auto;
    }

    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* Header */
    header {
      background-color: #ffffff;
      padding: 16px 24px;
      border-bottom: 1px solid #e2e8f0;
      font-size: 20px;
      font-weight: 600;
      color: #0f172a;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    /* Main Scrollable Area */
    .main-scroll-area {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
    }

    /* Search Bar */
    .search-bar {
      padding: 10px;
      border-radius: 8px;
      background-color: #ffffff;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .search-bar h2 {
      font-size: 28px;
      color: #0ea5e9;
    }
    .search-bar:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    }
    .search-bar button{
       padding: 10px 16px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      background: linear-gradient(90deg, #ef4444, #dc2626);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .search-bar button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    .search-bar button a{
      color: #ffffff;
      text-decoration: none;
    }

    .search-box {
      width: 100%;
      max-width: 500px;
      height: 48px;
      padding: 10px 14px;
      border-radius: 8px;
      background-color: #ffffff;
      border: 1px solid #cbd5e1;
      color: #1e293b;
      font-size: 16px;
    }

    .search-box::placeholder {
      color: #94a3b8;
    }

    .search-box:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      outline: none;
    }

    /* Back to Home Button */
    .back-home-button {
      padding: 8px 12px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      color: #ffffff;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      background: linear-gradient(90deg, #f97316, #ef4444);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .back-home-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* Book Container */
    .book-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 10px;
    }

    /* Book Card */
    .book-card {
      background: linear-gradient(to bottom, #ffffff, #f8fafc);
      border: 1px solid #e2e8f0;
      border-left: 6px solid #3b82f6;
      border-radius: 12px;
      padding: 18px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .book-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    }

    .book-card img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      border-radius: 8px;
      margin-bottom: 14px;
      transition: transform 0.3s ease;
    }

    .book-card:hover img {
      transform: scale(1.03);
    }

    .book-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 10px;
      color: #0f172a;
      text-align: center;
    }

    .book-description {
      font-size: 15px;
      color: #475569;
      line-height: 1.6;
      margin-bottom: 14px;
      text-align: justify;
    }

    /* Button Group */
    .button-group {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: auto;
    }

    .button {
      padding: 10px 16px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      cursor: pointer;
      text-align: center;
      flex: 1;
      transition: background-color 0.2s ease, transform 0.2s ease;
      text-decoration: none;
    }

    .button-update {
      background-color: #3b82f6;
    }

    .button-update:hover {
      background-color: #2563eb;
      transform: translateY(-2px);
    }

    .button-delete {
      background-color: #ef4444;
    }

    .button-delete:hover {
      background-color: #dc2626;
      transform: translateY(-2px);
    }

    /* Pagination */
    .pagination-controls {
      margin-top: 24px;
      text-align: center;
    }

    .pagination-controls button {
      padding: 8px 16px;
      margin: 0 8px;
      border: none;
      border-radius: 6px;
      background-color: #0ea5e9;
      color: #ffffff;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .pagination-controls button:hover {
      background-color: #0284c7;
    }

    .pagination-controls span {
      margin: 0 12px;
      font-size: 16px;
      color: #1e293b;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .layout {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
      }

      .book-container {
        grid-template-columns: 1fr;
      }
    }