/* Khai báo biến màu sắc theo yêu cầu */
:root {
    --primary-color: #005671;
    --secondary-color: #A4DFE7;
    --bg-light: #f4f9fa;
    --text-dark: #333;
    --white: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.main-header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* Weather Dashboard */
.weather-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.card-main {
    background: linear-gradient(135deg, var(--primary-color), #00789d);
    color: var(--white);
}

.card-secondary {
    border: 2px solid var(--secondary-color);
}

.temp-big {
    font-size: 4rem;
    font-weight: bold;
}

.temp-med {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Hourly Forecast */
.section-title {
    margin: 40px 0 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.hourly-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.hourly-item {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

.hourly-item:hover {
    background: var(--secondary-color);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    padding: 10px;
}

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

th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    background: #eef6f7;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .weather-dashboard {
        grid-template-columns: 1fr;
    }
    .hourly-grid {
        flex-wrap: wrap;
    }
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	list-style: none;
	background-color: #e9ecef;
	border-radius: .25rem
}

.breadcrumb-on-top nav .breadcrumb {
	font-size: 14px;
	background-color: #fff;
	margin: 0;
	padding: 9px 0;
	flex-wrap: nowrap
}

@media (max-width:767px) {
	.breadcrumb-on-top nav .breadcrumb {
		overflow: auto;
		white-space: nowrap
	}
}

@media (min-width: 768px) {
    .breadcrumb-on-top .container .breadcrumb {
        padding: 15px 0;
    }
}

.breadcrumb-on-top nav .breadcrumb .breadcrumb-item::before {
	color: #181818
}

.breadcrumb-on-top nav .breadcrumb .breadcrumb-item.active {
	color: #757575
}

.breadcrumb-on-top nav .breadcrumb a {
	color: #181818
}

.breadcrumb-on-top nav .breadcrumb a:hover {
	color: #005671
}

.breadcrumb-item+.breadcrumb-item {
	padding-left: .5rem
}

.breadcrumb-item+.breadcrumb-item::before {
	float: left;
	padding-right: .5rem;
	color: #6c757d;
	content: "/"
}

.breadcrumb-item+.breadcrumb-item:hover::before {
	text-decoration: underline
}

.breadcrumb-item+.breadcrumb-item:hover::before {
	text-decoration: none
}

.breadcrumb-item.active {
	color: #6c757d
}

/* Container tổng */
.weather-container {
    padding: 24px;
    border-radius: 24px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Grid layout */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột đều nhau */
    gap: 12px;
}

/* Card cơ bản */
.weather-card {
    background-color: #002d3a;
    border-radius: 20px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.weather-card:hover {
    background-color: #003d4d;
    transform: translateY(-5px);
}

/* Card cho ngày hiện tại */
.weather-card.active {
    background-color: #005671; /* Màu chính của bạn */
    border: 1px solid #A4DFE7; /* Màu phụ làm viền */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Header của Card */
.card-header {
    text-align: center;
    margin-bottom: 10px;
}

.day-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.day-name {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #A4DFE7; /* Màu phụ */
    opacity: 0.8;
}

.active .day-name {
    color: #ffffff;
    opacity: 1;
}

/* Icon */
.weather-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Nhóm nhiệt độ */
.temp-group {
    text-align: center;
    margin-top: 10px;
}

.temp-max {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

.temp-min {
    font-size: 0.9rem;
    color: #A4DFE7;
    opacity: 0.6;
}

.active .temp-min {
    color: #ffffff;
    opacity: 0.8;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .weather-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên mobile */
    }
}
