/* Custom styles for Google Cloud Skill Boost Badge Tracker */

body {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.badge-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: none;
    position: relative;
    backdrop-filter: blur(4px);
    background-color: #ffffff;
}

.badge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(66, 133, 244, 0.15);
    border-bottom: 3px solid #4285F4;
}

.badge-img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 0;
    position: relative;
    padding: 1rem;
}

.badge-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #4285F4, #34A853, #FBBC05, #EA4335);
}

.badge-img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge-card:hover .badge-img {
    transform: scale(1.08);
}

.badge-title {
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    font-size: 1.05rem;
    color: #202124;
    margin-top: 0.5rem;
}

.earned-badge {
    border: none;
    position: relative;
}

.earned-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #34A853;
    z-index: 1;
}

.earned-badge-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #34A853;
    font-size: 1.5rem;
    background-color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.lab-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4285F4;
    color: white;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(66, 133, 244, 0.3);
    z-index: 2;
}

#user-profile-section {
    background-color: #f8f9fa;
    border: none;
    border-left: 4px solid #4285F4;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.progress {
    height: 10px;
    background-color: #f1f3f4;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(to right, #4285F4, #34A853);
    border-radius: 10px;
}

.badge-not-found {
    text-align: center;
    padding: 100px 0;
    color: #6c757d;
}
