/* Trang index ----------------------------------------------------------- */
/* Định dạng chung cho body */
body {
    font-family: Arial, sans-serif;
}

/* Header */
header {
    background-color: #34a853;
    color: white;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 15px;
}

/* Bản đồ */
#map {
    width: 100%;
    height: 100%;
}

/* Thống kê và lọc cây */
h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

#filter-btn {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #34a853;
    color: white;
}

/* Thống kê cây */
ul.list-group {
    list-style-type: none;
}

/* style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
}

header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

#mapContainer {
    height: 500px;
    background-color: #cce5ff;
    border-radius: 8px;
    margin-top: 20px;
}
/* trang signup - login -------------------------------------------------- */
.container-signup,
.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Wrapper cho các form */
.signup-wrapper,
.login-wrapper,
.error-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

/* Tiêu đề */
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Các trường input */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

/* Nút đăng nhập/đăng ký */
button {
    width: 100%;
    padding: 12px;
    background-color: #34a853;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00300c;
}

/* Liên kết đăng nhập/đăng ký */
.login-link {
    text-align: center;
    margin-top: 10px;
}

.login-link a {
    color: #34a853;
    text-decoration: none;
    font-size: 16px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Thông báo lỗi */
.alert {
    color: red;
    font-size: 16px;
    margin-top: 10px;
}

/* trang 404 -----------------------------------------------------------------*/
.error-container {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h1 {
    font-size: 48px;
    color: #ff4747;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

a {
    font-size: 16px;
    color: #34a853;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Media Queries cho mobile */
@media (max-width: 768px) {
    h2 {
        font-size: 20px;  /* Giảm kích thước font tiêu đề cho điện thoại */
    }

    .form-group input {
        font-size: 14px;  /* Giảm kích thước font input trên điện thoại */
    }

    button {
        font-size: 14px;  /* Giảm kích thước font button trên điện thoại */
    }

    .signup-wrapper,
    .login-wrapper,
    .error-container {
        padding: 20px; /* Giảm padding cho các form để tiết kiệm không gian */
    }

    .container-signup,
    .container-login {
        margin-top: 50px;  /* Giảm margin-top trên màn hình điện thoại */
        margin-bottom: 50px;  /* Giảm margin-bottom trên màn hình điện thoại */
    }

    .login-link a {
        font-size: 14px;  /* Giảm kích thước font cho liên kết */
    }

    .alert {
        font-size: 14px;  /* Giảm font size của thông báo lỗi */
    }

    .error-container {
        height: auto;  /* Đảm bảo không gian vừa vặn với màn hình nhỏ */
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;  /* Giảm kích thước font tiêu đề cho màn hình rất nhỏ */
    }

    .error-container {
        height: auto;  /* Đảm bảo chiều cao không vượt quá màn hình */
        padding: 15px;
    }

    .form-group input {
        font-size: 13px;  /* Giảm kích thước font cho input trên điện thoại nhỏ */
    }

    button {
        font-size: 13px;  /* Giảm kích thước font cho button */
    }

    .login-link a {
        font-size: 12px;  /* Giảm kích thước font cho liên kết đăng nhập */
    }

    .alert {
        font-size: 12px;  /* Giảm font size của thông báo lỗi */
    }
}
        