/* Container styling */
.face-shape-container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* File upload input */
#imageUpload {
    margin: 20px 0;
    padding: 10px;
    border: 2px dashed #ddd;
    cursor: pointer;
}

/* Scan button */
#scanButton {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

#scanButton:hover {
    background: #45a049;
}

/* Results container */
#resultsContainer {
    margin-top: 40px;
}

/* Result chart layout (responsive grid) */
.result-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.chart-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Unique colors for each face shape */
.round {
    background: linear-gradient(135deg, #4CAF50 50%, transparent);
}
.oblong {
    background: linear-gradient(135deg, #FFC107 50%, transparent);
}
.diamond {
    background: linear-gradient(135deg, #E91E63 50%, transparent);
}
.oval {
    background: linear-gradient(135deg, #2196F3 50%, transparent);
}
.square {
    background: linear-gradient(135deg, #9C27B0 50%, transparent);
}
.heart {
    background: linear-gradient(135deg, #F44336 50%, transparent);
}
.progress-bar {
    position: relative;
    height: 20px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 5px;
}

.progress-bar::after {
    content: '';
    background: inherit; /* Inherits parent's gradient */
    height: 100%;
    width: 0;
    transition: width 0.5s ease;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}