﻿/* site.css - style chung toàn site */

/* site.css - style chung toàn site */

/*body {
    padding-top: 50px;
    padding-bottom: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}*/

/* Set padding để tránh nội dung sát mép màn hình */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override nhẹ cho form control, giữ gần giống Bootstrap mặc định */
.form-control {
    display: block;
    width: 100%;
    height: auto;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

 /*Thanh navbar (có thể tùy chỉnh nhẹ) */
.navbar {
    background-color: #f8f9fa;
}
.navbar .nav-link {
    color: #333;
}

 Footer 
footer {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}

/* Nút button success mặc định */
.btn-success {
    background-color: #28a745;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-actions .fa-shopping-cart {
    font-size: 18px;
    color: #333;
}

/* Header */
header {
    background-color: white;
    padding: 10px;
}

header img {
    height: 60px;
}

header nav {
    background-color: teal;
    padding: 10px;
}

/*footer {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: left;
}*/

/* Form control chung cho tất cả */
.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    outline: none;
    background-color: #fff;
}

/* Button chung */
.btn-success {
    background-color: #28a745;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
}

/* Container chung */
.container.mt-4 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Card dùng chung */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin: 10px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card img {
    border-bottom: 1px solid #ddd;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    margin: 5px 0;
}

/* D-flex, Row, Col chung */
.d-flex {
    display: flex;
}

.row {
    margin: 0 -5px;
}

.col-md-3 {
    padding: 5px;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

select.form-control {
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 5px;
}

.btn {
    min-width: 100px;
}

input[type="file"].form-control {
    padding: 0.5rem 0.75rem;
    height: auto;
}


.scrolling-wrapper {
  overflow-x: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE và Edge */
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.intro-box {
     height: 400px;
    background: url('/Images/bg-books.png') no-repeat center center;

    background-size: cover;
    padding: 60px 30px;
    color: white;
    text-align: center;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
}

.intro-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  Mờ nền 
    z-index: 0;
}

.intro-box .content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-in-out;
     top: 50%;
    transform: translateY(-50%);  căn giữa dọc nội dung 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*footer .col-md-6,
footer .col-md-4,
footer p,
footer h5,
footer h6,
footer li {
    text-align: left !important;
}
*/
