body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f4f4f4;
}

h1, h2, h3 {
    color: #333;
}

.section {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="file"] {
    margin-bottom: 10px;
}

button {
    padding: 10px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    opacity: 0.7; /* Disabled look */
}

button:enabled {
     opacity: 1.0;
}

button:hover:enabled {
    background-color: #4cae4c;
}

#status {
    font-style: italic;
    color: #666;
    min-height: 1.2em; /* Prevent layout shifts */
}

#processingProgress, #foundNames {
    margin-top: 15px;
}

#namingArea {
    margin-top: 20px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

#unknownFaces .face-entry {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    background-color: #fafafa;
}

#unknownFaces canvas {
    margin-right: 15px;
    border: 1px solid #ccc;
    flex-shrink: 0; /* Prevent canvas from shrinking */
}

#unknownFaces .info-div { /* Style the div containing input/button */
    display: flex;
    flex-direction: column; /* Stack input and button */
    align-items: flex-start;
}

#unknownFaces input[type="text"] {
    margin-bottom: 5px; /* Space between input and button */
    padding: 5px;
}

#searchResults {
     margin-top: 20px;
}

#searchCanvas {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
    display: block; /* Prevent extra space below canvas */
}

#foundNames ul {
    list-style: none;
    padding: 0;
}

#foundNames li {
     margin-bottom: 5px;
     background-color: #e9e9e9;
     padding: 5px 8px;
     border-radius: 3px;
}

#foundNames li span {
    font-weight: bold;
    margin-right: 5px;
}