BarkID-Dog-Identifier / static /breed_info.css
JanithDeshan24's picture
feat: Initial project commit for BarkID
b574826 verified
/*
* Breed Information Panel Styles
* Last Updated: 2025-10-20 19:11:50 UTC
* User: IT24102137
*/
/* Breed Info Panel Container */
.breed-info-panel {
background: var(--white);
border-radius: 16px;
box-shadow: 0 15px 40px var(--shadow);
padding: 25px;
height: 100%;
overflow-y: auto;
max-height: 650px;
position: relative;
animation: fadeInRight 0.5s ease;
}
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* Loading State */
.info-panel-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 200px;
color: var(--text-light);
}
.info-panel-loading .spinner-border {
margin-bottom: 15px;
width: 3rem;
height: 3rem;
}
/* Breed Title */
.breed-info-title {
color: var(--primary-dark);
font-size: 1.8rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.breed-info-title:after {
content: '';
position: absolute;
width: 50px;
height: 3px;
background: var(--secondary);
bottom: 0;
left: 0;
border-radius: 10px;
}
/* Breed Image */
.breed-info-image {
margin-bottom: 20px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.breed-info-image img {
width: 100%;
height: auto;
object-fit: cover;
transition: all 0.3s ease;
}
.breed-info-image:hover img {
transform: scale(1.03);
}
/* Description */
.breed-info-description {
margin-bottom: 20px;
color: var(--text);
line-height: 1.7;
}
/* Section Headers */
.breed-info-content h4 {
color: var(--primary);
font-size: 1.2rem;
margin-bottom: 12px;
display: flex;
align-items: center;
}
.breed-info-content h4::before {
content: '';
display: inline-block;
width: 6px;
height: 18px;
background: var(--secondary);
margin-right: 8px;
border-radius: 3px;
}
/* Characteristics List */
.characteristic-list {
list-style: none;
padding: 0;
margin-bottom: 20px;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px 15px;
}
.characteristic-list li {
padding: 6px 0;
border-bottom: 1px dashed var(--gray-200);
}
.characteristic-list li span {
font-weight: 600;
color: var(--text-dark);
margin-right: 5px;
}
/* Temperament List */
.temperament-list {
list-style: none;
padding: 0;
margin-bottom: 20px;
}
.temperament-list li {
position: relative;
padding-left: 22px;
margin-bottom: 6px;
}
.temperament-list li:before {
content: '\f058';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
position: absolute;
left: 0;
color: var(--accent);
}
/* Uses Tags */
.uses-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}
.use-tag {
background: var(--primary-light);
color: var(--white);
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
/* Fact List */
.fact-list {
padding-left: 20px;
margin-bottom: 20px;
color: var(--text);
}
.fact-list li {
margin-bottom: 8px;
}
/* Care Tips */
.care-tip-item {
background: var(--gray-100);
border-radius: 8px;
padding: 12px 15px;
margin-bottom: 10px;
border-left: 4px solid var(--primary);
}
.care-tip-item strong {
color: var(--primary-dark);
display: block;
margin-bottom: 2px;
}
/* Not Found State */
.breed-info-not-found {
text-align: center;
padding: 30px 0;
}
.not-found-icon {
font-size: 3rem;
color: var(--gray-300);
position: relative;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
.not-found-icon i.fa-dog {
font-size: 3.5rem;
color: var(--gray-300);
}
.not-found-icon i.fa-question {
position: absolute;
right: 35%;
top: 15%;
background: var(--secondary);
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}
.breed-info-not-found h3 {
color: var(--text);
margin-bottom: 10px;
}
.breed-info-not-found p {
color: var(--text-light);
}
/* Responsive Styles */
@media (max-width: 991.98px) {
.breed-result-row {
margin-top: 30px;
}
.breed-info-column {
margin-top: 30px;
}
.characteristic-list {
grid-template-columns: 1fr;
}
}