﻿/* General Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.container {
    margin-top: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #b75003;
    text-transform: uppercase;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
    padding-left: 10px;
}

.align-items-center {
    align-items: center;
}

.form-group.input-group {
    margin-bottom: 0;
}

.form-control-sm {
    height: calc(1.5em + .75rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.btn-custom {
    border-width: 1px;
    border-color: #f06c0a;
    background-color: #f06c0a;
    color: white;
}

    .btn-custom:hover {
        background-color: #b75003;
        border-color: #b75003;
    }

/* Table Styles */
.table {
    font-family: sans-serif;
}

    .table thead th {
        background-color: #bf5a0f;
        color: #fff;
        text-align: center;
        vertical-align: middle;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}

.table-bordered td, .table-bordered th {
    border: 1px solid #ddd;
}

.table-hover > tbody > tr:hover {
    background-color: #f2f2ad;
}

.table-hover td a {
    color: #f06c0a;
}

    .table-hover td a:hover {
        color: #b75003;
    }

/* Button Styles */
.input-group-append .btn-custom {
    border-radius: 0 0.25rem 0.25rem 0;
    border-color: #f06c0a;
    background-image: linear-gradient(#fa9917, #ea5f07);
    color: white;
}

    .input-group-append .btn-custom:hover {
        background-color: #b75003;
        border-color: #b75003;
    }

/* Form Styles */
.search-form {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.search-select {
    margin-right: 1rem;
}

.search-input-group {
    display: flex;
    flex: 1;
}

    .search-input-group .form-control {
        border-radius: 0.25rem 0 0 0.25rem;
    }

    .search-input-group .input-group-append .btn-custom {
        border-radius: 0 0.25rem 0.25rem 0;
        border-color: #f06c0a;
        background-image: linear-gradient(#fa9917, #ea5f07);
        color: white;
    }

        .search-input-group .input-group-append .btn-custom:hover {
            background-color: #b75003;
            border-color: #b75003;
        }

/* Pagination Styles */
.pagination {
    margin-top: 50px;
}

.page-link {
    color: #f06c0a;
}

.page-item.active .page-link {
    background-color: #f06c0a;
    border-color: #f06c0a;
}

.page-link:hover {
    color: #b75003;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-red {
    color: red !important;
}

.text-blue {
    color: blue !important;
}

.text-green {
    color: green !important;
}

.text-bold {
    font-weight: bold !important;
}

/* Thumbnail Styles */
.cls-thumb {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    background: none;
    border: solid 1px #099ec4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 10px;
}

    .cls-thumb:hover {
        color: green !important;
        border-bottom: solid 4px;
    }

.cls-thumb-icon {
    display: block !important;
    padding: 20px;
    font-size: 30pt !important;
    width: 80px;
    background: #e6f2fa;
    border-radius: 4px;
    margin: auto;
}

.cls-thumb-text {
    display: block;
    padding-top: 15px;
    font-weight: bold;
}

/* Header Styles */
#header-vlg {
    position: relative;
    padding: 5px 24px;
    color: #313337;
    background-color: #ffffff;
    height: 90px;
}

.logo1 {
    width: 80px;
    float: left;
}

    .logo1 > img {
        width: 100%;
    }

.head-text {
    position: relative;
    width: 80%;
    left: 5px;
}

.head-text1 {
    position: absolute;
    top: 10px;
    color: #00923f;
    font-weight: bold;
    font-size: 15pt;
}

.head-text2 {
    position: absolute;
    top: 40px;
    color: #d73b17;
    font-weight: bold;
    font-size: 17pt;
}

.front-top {
    position: relative;
    z-index: 50;
    padding-top: 11px;
    float: right;
}

/* Hotline Styles */
.hotline {
    padding-left: 36px;
    float: left;
    background-size: 24px 24px;
    min-height: 24px;
}

    .hotline .hotline-label {
        padding-bottom: 4px;
        opacity: 0.6;
        font-weight: 400;
        font-size: 1.3rem;
        color: #313337;
        line-height: 1.2;
    }

    .hotline .hotline-tel {
        font-weight: 700;
        font-size: 1.2rem;
        line-height: 1.2;
        color: #ca0a0a;
    }

    .hotline .hotline-login {
        line-height: 1.2;
        font-size: 11pt;
    }

    .hotline .hotline-label, .hotline .hotline-tel {
        display: block;
    }

/* Date Styles */
.cls-date {
    color: gray;
    font-size: 8pt;
    display: block;
    text-align: center;
}

.cls-date-reg {
    color: blue;
    font-size: 8pt;
    display: block;
    text-align: center;
}

.cls-date-accepted {
    color: green;
    font-size: 8pt;
    display: block;
    text-align: center;
}

/* Media Queries */
@media (max-width: 1050px) {
    .logo1 {
        width: 60px;
    }

    #header-vlg {
        height: 70px;
        padding: 5px 0;
    }

    .head-text {
        width: 100%;
        left: 5px;
    }

    .container-fluid {
        padding: 0 5px;
    }

    .head-text1 {
        top: 5px;
        font-size: 12pt;
    }

    .head-text2 {
        top: 25px;
        font-size: 13pt;
    }

    .front-top {
        position: absolute;
        bottom: 0;
        right: 0;
        float: none;
    }

    .hotline .hotline-label {
        font-size: 9pt;
    }

    .hotline .hotline-tel {
        font-size: 9pt;
    }

    .hotline .hotline-login {
        font-size: 9pt;
    }

    .hotline .hotline-label, .hotline .hotline-tel {
        display: inline;
    }
}

@media (max-width: 767px) {
    .logo1 {
        width: 50px;
    }

    #header-vlg {
        height: 70px;
        padding: 5px 0;
    }

    .head-text {
        width: 100%;
        left: 5px;
    }

    .container-fluid {
        padding: 0 5px;
    }

    .head-text1 {
        top: 5px;
        font-size: 9pt;
    }

    .head-text2 {
        top: 20px;
        font-size: 8pt;
    }

    .front-top {
        position: absolute;
        bottom: 0;
        right: 0;
        float: none;
    }

    .hotline .hotline-label {
        font-size: 9pt;
    }

    .hotline .hotline-tel {
        font-size: 9pt;
    }

    .hotline .hotline-login {
        font-size: 9pt;
    }

    .hotline .hotline-label, .hotline .hotline-tel {
        display: inline;
    }
}
/* Details.css */

/* General Card Styles */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-size: 1.25rem;
    font-weight: bold;
    background-color: #f8f9fa;
}

.card-body {
    font-size: 1rem;
}

.card-body dt {
    font-weight: bold;
}

.card-body dd {
    margin-bottom: 1rem;
}

.img-thumbnail {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.no-image {
    color: #888;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-image: linear-gradient(#fa9917, #ea5f07);
    border: 1px solid #b75003;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #b75003;
    }

.btn-secondary {
    background-color: #6c757d;
    border: 1px solid #5a6268;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Form-group Styles */
.form-group {
    margin-bottom: 1rem;
}
/*seach*/
/* Adjust the search button size and spacing */
.input-group-append .btn-custom {
    border-radius: 0 0.25rem 0.25rem 0;
    border-color: #f06c0a;
    background-image: linear-gradient(#fa9917, #ea5f07);
    color: white;
    font-size: 1.05em; /* Smaller font size */
    padding: 0.25rem 0.5rem; /* Smaller padding */
}

    .input-group-append .btn-custom:hover {
        background-image: linear-gradient(#fa9917, #ea5f07);
        border-color: #b75003;
    }

/* Add spacing between search input and button */
.search-form .form-group {
    margin-bottom: 0;
    margin-right: 0.5rem; /* Space between input and button */
}
/*DangKyMuon*/
/* site.css */
.text-primary {
    color: #f06c0a;
}

.book-card {
    border: 1px solid #f06c0a;
    padding: 10px;
    background-color: #EEEEEE;
}

.card-img-top {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 10px;
}

.btn-primary {
    border-color: #f06c0a;
    background-color: #f06c0a;
}

.btn-info {
    border-width: 1px;
    border-color: #f06c0a;
    background-color: #f06c0a;
}

.page-link {
    color: #f06c0a;
}
/* site.css */
.btn-search {
    border-color: #f06c0a;
    background-color: #f06c0a;
    color: white;
    padding: 0.25rem 0.5rem; /* Smaller padding */
    font-size: 1.05rem; /* Smaller font size */
    height: auto; /* Adjust height */
}

/*mô tả sách*/
.description-cell {
    max-height: 50px; /* Điều chỉnh chiều cao tối đa tùy theo nhu cầu */
    overflow: hidden; /* Ẩn nội dung vượt quá chiều cao */
    text-overflow: ellipsis; /* Thêm dấu ba chấm nếu nội dung bị cắt */
    white-space: normal; /* Đảm bảo nội dung có thể xuống dòng */
}

/* Card Styles */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-bottom: 1rem; /* Space between rows */
}

.card-img-top {
    width: 100%;
    height: 150px; /* Fixed height of image */
    object-fit: contain; /* Ensure entire image is visible */
    background-color: #f8f9fa; /* Optional: to give a background if the image doesn't fill the area */
}


.card-body {
    padding: 10px; /* Space inside card body */
}

.card-title {
    font-size: 0.875rem; /* Smaller font size for titles */
    margin-bottom: 0.5rem;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.75rem; /* Smaller font size for text */
    margin-bottom: 0.5rem;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space between elements */
}

.btn-link {
    color: #f06c0a;
    font-size: 0.75rem;
    padding-right: 10px;
}

    .btn-link:hover {
        color: #b75003;
    }






