@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #007BFF;
    --secondary-color: #F0F2F5;
    --text-color: #333;
    --light-text-color: #888;
    --border-color: #E0E0E0;
    --white-color: #FFF;
    --error-color: #FF3B30;
    --success-color: #34C759;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    width: 90vw;
    max-width: 1200px;
    min-width: 800px;
    height: 80vh;
    background-color: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.left-panel,
.right-panel {
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.left-panel {
    width: 40%;
    border-right: 1px solid var(--border-color);
}

.right-panel {
    width: 60%;
    background-color: #F7F9FC;
    position: relative;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
}

.header p {
    color: var(--light-text-color);
    margin-top: 5px;
}

.upload-section {
    margin-top: 15px;
}

.info-section {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.info-header i {
    margin-right: 8px;
    font-size: 18px;
}

.info-content {
    font-size: 14px;
    color: var(--text-color);
}

.info-content p {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.info-content i {
    margin-right: 8px;
    margin-top: 3px;
    font-size: 14px;
    color: var(--primary-color);
}

.upload-label {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-label:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.upload-label.highlight {
    background-color: #e7f3ff;
    border-color: var(--primary-color);
}

.upload-label i {
    font-size: 32px;
    color: var(--primary-color);
}

.upload-label span {
    margin-top: 12px;
    color: var(--light-text-color);
}

#file-upload {
    display: none;
}

#image-preview {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

#image-preview img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.labels-section {
    margin-top: 30px;
}

.labels-section label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 5px;
}

#labels-input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 10px;
    font-size: 16px;
    font-family: Poppins, sans-serif;
    outline: none;
}

#classify-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    padding: 12px 20px;

}

#classify-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 0;
}

#classify-btn:hover {
    background-color: #0056b3;
}

#results-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    margin-bottom: 20px;
}


#results-container .result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background-color: var(--white-color);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.result span:first-child {
    font-weight: 500;
    font-size: 15px;
}

.result span:last-child {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-color);
    background-color: #E7F3FF;
    padding: 5px 10px;
    border-radius: 5px;
}

#status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-top: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

#status-text {
    margin-left: 10px;
    color: var(--light-text-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--light-text-color);
}

.placeholder i {
    font-size: 50px;
    color: var(--border-color);
}

.placeholder h2 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.placeholder p {
    margin-top: 10px;
    font-size: 16px;
}

