html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f5ef;
    color: #2d2a26;
}


/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    width: 100%;
    height: 80px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e1d7;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 285px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.navbar nav {
    display: flex;
    gap: 35px;
}

.navbar nav a {
    position: relative;
    text-decoration: none;
    color: #2d2a26;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 2px;
    transition: color 0.2s ease;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: #4f6545;
    border-radius: 2px;
    transition: width 0.2s ease;
}

.navbar nav a:hover {
    color: #4f6545;
}

.navbar nav a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-buttons a {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-buttons .login-btn {
    background: transparent;
    border: 1px solid #4f6545;
    color: #4f6545;
}

.nav-buttons .login-btn:hover {
    background: #eef1eb;
}

.nav-buttons .register-btn {
    background-color: #4f6545;
    border: 1px solid #4f6545;
    color: white;
}

.nav-buttons .register-btn:hover {
    background-color: #3f5637;
    border-color: #3f5637;
}

.login-btn {
    background: transparent;
    border: 1px solid #4f6545;
    color: #4f6545;
}

.register-btn {
    background-color: #4f6545;
    border: 1px solid #4f6545;
    color: white;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    width: 100%;
    height: 520px;
    display: flex;
    position: relative;
    background: #f4efe6;
    overflow: hidden;
}

/* ЛЕВ ДЕЛ */

.hero-content {
    width: 52%;
    height: 520px;
    padding: 65px 2% 65px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 4;
}

/* ДЕСНА СЛИКА */

.hero-image {
    width: 56%;
    height: 520px;
    margin-left: -8%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 63% center;
}

/*
   Ова е мекиот премин.
   Сликата навлегува под левиот дел,
   а gradient-от постепено ја претопува
   во беж позадината.
*/

.hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    pointer-events: none;

    background: linear-gradient(
        to right,
        #f4efe6 0%,
        #f4efe6 12%,
        rgba(244, 239, 230, 0.98) 24%,
        rgba(244, 239, 230, 0.90) 38%,
        rgba(244, 239, 230, 0.72) 53%,
        rgba(244, 239, 230, 0.48) 68%,
        rgba(244, 239, 230, 0.22) 83%,
        rgba(244, 239, 230, 0) 100%
    );
}

.hero-label {
    display: inline-block;
    color: #4f6545;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.08;
    margin-bottom: 22px;
    color: #25231f;
    max-width: 700px;
}

.hero h1 span {
    color: #4f6545;
}

.hero p {
    max-width: 590px;
    font-size: 18px;
    line-height: 1.7;
    color: #69645d;
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
    max-width: 620px;
    display: flex;
    padding: 7px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 15px;
    font-size: 15px;
    background: transparent;
}

.search-box button {
    border: none;
    background: #4f6545;
    color: white;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-box button:hover {
    background: #3f5637;
}


/* =========================================
   КНИГИ
   ========================================= */

.books-section {
    padding: 70px 10%;
    background-color: #ffffff;
}

.section-header {
    margin-bottom: 35px;
}

.section-header span {
    color: #4f6545;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-header h2 {
    margin-top: 8px;
    font-size: 34px;
    color: #25231f;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.book-card {
    background: #f8f5ef;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee8dc;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.book-cover {
    height: 330px;
    background: #eee8dd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
}

.book-cover img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.book-placeholder {
    font-size: 70px;
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.price {
    color: #4f6545;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 18px;
}

.book-info button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background-color: #4f6545;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.details-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    background-color: #4f6545;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.details-btn:hover {
    background-color: #3f5637;
}

.no-results {
    grid-column: 1 / -1;
    padding: 25px;
    background: #f8f5ef;
    border: 1px solid #e7dfd1;
    border-radius: 12px;
    color: #69645d;
    text-align: center;
    font-size: 16px;
}


/* =========================================
   ДЕТАЛИ ЗА КНИГА
   ========================================= */

.book-details {
    min-height: calc(100vh - 80px);
    padding: 70px 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    background: #f8f5ef;
}

.details-cover {
    width: 320px;
    height: 430px;
    background: #eee8dd;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.details-cover img {
    width: auto;
    height: 92%;
    max-width: 92%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.details-info {
    max-width: 550px;
}

.details-label {
    color: #4f6545;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.details-info h1 {
    font-size: 45px;
    margin: 12px 0 15px;
    color: #25231f;
}

.details-year {
    color: #777168;
    margin-bottom: 25px;
}

.details-description {
    font-size: 17px;
    line-height: 1.7;
    color: #5f5a53;
    margin-bottom: 25px;
}

.details-price {
    font-size: 27px;
    font-weight: bold;
    color: #4f6545;
    margin-bottom: 25px;
}

.buy-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 9px;
    background: #4f6545;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.favorite-btn {
    padding: 14px 30px;
    margin-left: 10px;
    border: 1px solid #4f6545;
    border-radius: 9px;
    background: transparent;
    color: #4f6545;
    font-size: 16px;
    cursor: pointer;
}

.favorite-btn:hover {
    background: #eef1eb;
}

.remove-favorite-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid #a85d5d;
    border-radius: 8px;
    background: transparent;
    color: #a85d5d;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-favorite-btn:hover {
    background: #a85d5d;
    color: white;
}


/* =========================================
   ПЕРСОНАЛИЗИРАНИ ПРЕПОРАКИ
   ========================================= */

.recommendations-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.recommendations-section > h1 {
    font-size: 38px;
    margin: 10px 0 10px;
    color: #222;
}

.recommendations-text {
    font-size: 17px;
    color: #666;
    margin-bottom: 35px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 55px;
}

.mood-card {
    background: white;
    border: 1px solid #ded8cc;
    border-radius: 12px;
    padding: 22px 18px;
    text-decoration: none;
    color: #222;
    transition: 0.25s;
    min-height: 115px;
}

.mood-card:hover {
    transform: translateY(-4px);
    border-color: #4d6845;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mood-card h3 {
    color: #4d6845;
    margin: 0 0 10px;
    font-size: 18px;
}

.mood-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.recommended-books {
    margin-top: 20px;
}

.recommended-books > h2 {
    font-size: 28px;
    margin: 8px 0 25px;
    color: #222;
}

.personalized-recommendations {
    margin-bottom: 55px;
}

.mood-recommendations {
    padding-top: 35px;
    border-top: 1px solid #ddd5c8;
}

.mood-card.selected-mood {
    border: 2px solid #4f6b45;
    background: #f1f5ee;
    box-shadow: 0 4px 12px rgba(79, 107, 69, 0.12);
}

.mood-card.selected-mood h3 {
    color: #3f5d37;
}


/* =========================================
   УСПЕШНО КУПУВАЊЕ
   ========================================= */

.purchase-success {
    max-width: 700px;
    margin: 70px auto;
    padding: 50px;
    text-align: center;
    background: white;
    border: 1px solid #ded8cc;
    border-radius: 16px;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #4d6845;
    color: white;
    font-size: 40px;
    line-height: 70px;
    font-weight: bold;
}

.purchase-success h1 {
    margin: 12px 0;
    font-size: 32px;
    color: #222;
}

.success-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.order-summary {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f7f5f0;
    border-radius: 12px;
    text-align: left;
}

.order-summary h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #4d6845;
}

.order-summary p {
    margin: 12px 0;
    color: #444;
}

.purchase-success .details-btn {
    display: inline-block;
    margin-top: 10px;
}


/* =========================================
   МОИ НАРАЧКИ
   ========================================= */

.orders-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.orders-section > h1 {
    font-size: 38px;
    margin: 10px 0;
    color: #222;
}

.orders-intro {
    color: #666;
    font-size: 16px;
    margin-bottom: 35px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border: 1px solid #ded8cc;
    border-radius: 14px;
    padding: 25px 30px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e0d7;
}

.order-number {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.order-date {
    margin: 7px 0 0;
    color: #777;
    font-size: 14px;
}

.order-status {
    background: #e8eee5;
    color: #4d6845;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.order-card-body p {
    margin: 9px 0;
    color: #444;
}

.order-total {
    margin-top: 15px !important;
    font-size: 17px;
    color: #4d6845 !important;
}

.empty-orders {
    background: white;
    border: 1px solid #ded8cc;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
}


/* =========================================
   НАЈАВА И РЕГИСТРАЦИЈА
   ========================================= */

.auth-section {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border: 1px solid #ded8cc;
    border-radius: 16px;
    padding: 40px;
}

.auth-card h1 {
    font-size: 36px;
    margin: 10px 0;
    color: #222;
}

.auth-intro {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 7px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #526b49;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #526b49;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.auth-submit:hover {
    opacity: 0.9;
}

.auth-bottom-text {
    text-align: center;
    color: #666;
    margin-top: 22px;
    margin-bottom: 0;
}


/* =========================================
   PREFERENCES
   ========================================= */

.preferences-section {
    padding: 60px 8% 90px;
    background: #f8f5ef;
}

.preferences-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* ГЛАВЕН НАСЛОВ */

.preferences-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.preferences-header h1 {
    font-size: 42px;
    margin: 10px 0 14px;
    color: #25231f;
}

.preferences-header p {
    color: #69645d;
    font-size: 16px;
    line-height: 1.7;
}


/* БЕЛА СЕКЦИЈА */

.preferences-box {
    background: #ffffff;
    border: 1px solid #e5ded2;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.preferences-box-header {
    margin-bottom: 25px;
}

.preferences-box-header h2 {
    font-size: 27px;
    color: #25231f;
    margin: 7px 0 6px;
}

.preferences-box-header p {
    color: #777168;
    font-size: 15px;
}


/* КАРТИЧКИ */

.preferences-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.preference-card-new {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;

    min-height: 110px;
    padding: 20px;

    background: #faf9f6;
    border: 1px solid #ddd6ca;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s ease;
}

.preference-card-new:hover {
    border-color: #4f6545;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}


/* ИЗБРАНА КАРТИЧКА */

.preference-card-new:has(input:checked) {
    background: #f0f4ed;
    border: 2px solid #4f6545;
}


/* CHECKBOX */

.preference-card-new input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #4f6545;
    cursor: pointer;
}


/* ТЕКСТ ВО КАРТИЧКАТА */

.preference-content h3 {
    font-size: 17px;
    color: #25231f;
    margin: 0 0 7px;
}

.preference-content p {
    font-size: 14px;
    color: #777168;
    line-height: 1.5;
    margin: 0;
}


/* ДОЛЕН ДЕЛ */

.preferences-save-new {
    margin-top: 35px;
    text-align: center;
}

.preferences-save-new p {
    color: #777168;
    font-size: 14px;
    margin-bottom: 15px;
}

.preferences-save-new .buy-btn {
    min-width: 280px;
    padding: 15px 30px;
    font-weight: 600;
    transition: 0.2s ease;
}

.preferences-save-new .buy-btn:hover {
    background: #3f5637;
}


/* RESPONSIVE ЗА PREFЕРЕНЦИИ */

@media (max-width: 1000px) {

    .preferences-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .preferences-section {
        padding: 40px 20px 60px;
    }

    .preferences-header h1 {
        font-size: 34px;
    }

    .preferences-box {
        padding: 22px;
    }

    .preferences-grid-new {
        grid-template-columns: 1fr;
    }

    .preferences-save-new .buy-btn {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

    .hero h1 {
        font-size: 47px;
    }

    .hero-content {
        padding-left: 7%;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 800px) {

    .hero {
        height: auto;
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 60px 8%;
    }

    .hero-image {
        width: 100%;
        height: 350px;
        min-height: 350px;
        margin-left: 0;
    }

    .hero-image img {
        height: 350px;
    }

    .hero-image::before {
        width: 100%;
        height: 100px;
        top: 0;

        background: linear-gradient(
            to bottom,
            #f4efe6 0%,
            rgba(244, 239, 230, 0) 100%
        );
    }

    .navbar {
        height: auto;
        min-height: 80px;
        padding-top: 15px;
        padding-bottom: 15px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .navbar nav {
        gap: 18px;
        flex-wrap: wrap;
    }
}


@media (max-width: 600px) {

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 16px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .books-section {
        padding: 50px 6%;
    }

    .recommendations-section,
    .orders-section,
    .preferences-section {
        padding: 35px 20px;
    }

    .mood-grid,
    .preferences-grid {
        grid-template-columns: 1fr;
    }

    .order-card-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* =========================================
   КОЛИЧИНА ПРИ КУПУВАЊЕ
   ========================================= */

.purchase-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 12px;
}

.quantity-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-box label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.quantity-select {
    width: 75px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #9da994;
    border-radius: 8px;
    background-color: #ffffff;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.quantity-select:focus {
    border-color: #526f47;
}

.purchase-form .buy-btn {
    min-width: 150px;
    margin: 0;
}

/* MODERN QUANTITY SELECTOR */

.quantity-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid #a7b09f;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-control input {
    width: 42px;
    height: 40px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    color: #222;
    appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn {
    width: 38px;
    height: 40px;
    border: none;
    background: transparent;
    color: #526f47;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f3ed;
}

/* =========================================
   PREFERENCES - TWO COLUMN LAYOUT
   ========================================= */

.preferences-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 28px;
}

.preferences-column {
    margin: 0;
    padding: 28px;
    height: 100%;
}

.preferences-column .preferences-box-header {
    margin-bottom: 22px;
}

.preferences-column .preferences-box-header h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.preferences-column .preferences-box-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
}

/* Опциите во секоја страна */

.preferences-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.preferences-grid-compact .preference-card-new {
    min-height: 105px;
    padding: 17px;
    margin: 0;
}

.preferences-grid-compact .preference-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.preferences-grid-compact .preference-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Копчето за зачувување */

.preferences-save-new {
    margin-top: 28px;
    text-align: center;
}

.preferences-save-new p {
    margin-bottom: 14px;
}

.preferences-save-new .buy-btn {
    min-width: 250px;
}


/* Responsive */

@media (max-width: 1000px) {

    .preferences-columns {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .preferences-grid-compact {
        grid-template-columns: 1fr;
    }

}

/* ==================================================
   ADMIN PANEL
================================================== */

.admin-page {
    min-height: calc(100vh - 85px);
    background: #f8f5ef;
    padding: 70px 8% 100px;
}

.admin-header {
    max-width: 1200px;
    margin: 0 auto 45px;
}

.admin-label {
    color: #526d4b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.admin-header h1 {
    font-size: 42px;
    margin: 0 0 12px;
    color: #1e1e1e;
}

.admin-header p {
    color: #6d665d;
    font-size: 17px;
    margin: 0;
}

.admin-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.admin-card {
    background: white;
    border: 1px solid #e2dbcf;
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.admin-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1eee7;
    border-radius: 12px;
    font-size: 27px;
    margin-bottom: 20px;
}

.admin-card h2 {
    font-size: 22px;
    color: #222;
    margin: 0 0 10px;
}

.admin-card p {
    color: #746d64;
    line-height: 1.6;
    min-height: 52px;
    margin-bottom: 24px;
}

.admin-button {
    display: inline-block;
    text-decoration: none;
    background: #526d4b;
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.admin-button:hover {
    background: #40583b;
}

@media (max-width: 950px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-page {
        padding: 45px 20px;
    }

    .admin-header h1 {
        font-size: 34px;
    }
}

/* ==================================================
   ADMIN - BOOKS
================================================== */

.admin-books-section {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-books-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.admin-books-top h2 {
    margin: 0;
    font-size: 24px;
    color: #222;
}

.admin-table-wrapper {
    background: white;
    border: 1px solid #e2dbcf;
    border-radius: 16px;
    overflow: hidden;
}

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

.admin-table thead {
    background: #f1eee7;
}

.admin-table th {
    text-align: left;
    padding: 16px 18px;
    font-size: 14px;
    color: #4e4942;
    border-bottom: 1px solid #e2dbcf;
}

.admin-table td {
    padding: 17px 18px;
    border-bottom: 1px solid #eee9e1;
    color: #5e5851;
    font-size: 14px;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #faf8f4;
}

.admin-actions {
    white-space: nowrap;
}

.admin-edit-btn {
    display: inline-block;
    text-decoration: none;
    color: #526d4b;
    border: 1px solid #526d4b;
    padding: 7px 13px;
    border-radius: 7px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-edit-btn:hover {
    background: #526d4b;
    color: white;
}

.admin-back {
    margin-top: 25px;
}

.admin-back a {
    color: #526d4b;
    text-decoration: none;
    font-weight: 600;
}

.admin-back a:hover {
    text-decoration: underline;
}

/* ==================================================
   ADMIN - FORM
================================================== */

.admin-form-section {
    max-width: 900px;
    margin: 0 auto;
}

.admin-form {
    background: white;
    border: 1px solid #e2dbcf;
    border-radius: 16px;
    padding: 35px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-full {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #3f3b36;
}

.admin-form-group input,
.admin-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;

    border: 1px solid #d8d1c6;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    color: #333;

    background: #fff;
    outline: none;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
    border-color: #526d4b;
}

.admin-form-group textarea {
    resize: vertical;
}

.admin-form-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 10px;
}

.admin-form-actions button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-cancel-btn {
    display: inline-block;
    text-decoration: none;

    color: #665f57;
    background: #f1eee7;

    padding: 11px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
}

.admin-cancel-btn:hover {
    background: #e5e0d7;
}

@media (max-width: 700px) {
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-form-full,
    .admin-form-actions {
        grid-column: 1;
    }
}

/* DELETE BUTTON */
.admin-delete-btn {
    background-color: #b84a4a;
    color: white;
    border: 1px solid #b84a4a;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-delete-btn:hover {
    background-color: #963b3b;
    border-color: #963b3b;
}

/* --------------------------------------------------
   PAGINATION
-------------------------------------------------- */

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.pagination span {
    font-size: 14px;
    color: #555;
}

.pagination a {
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #315c3b;
    border-radius: 6px;
    color: #315c3b;
    font-size: 14px;
    font-weight: 600;
    background: white;
    transition: 0.2s;
}

.pagination a:hover {
    background: #315c3b;
    color: white;
}