:root {
    --bg-color: #F5F5F7;
    --text-primary: #1C1C1E;
    --text-secondary: #6E6E73;
    --point-color: #0064FF;
    --divider: #E5E5EA;
    --white: #FFFFFF;
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Pretendard";
    
    --spacing-margin: 20px;
    --spacing-section: 48px;
    --button-height: 50px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    padding: var(--spacing-margin);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-section);
    margin-top: 60px;
}

header {
    text-align: left;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

/* Upload Section */
.upload-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid var(--divider);
}

.upload-section:active {
    background-color: #FAFAFB;
}

.drop-zone-content p {
    font-size: 17px;
    font-weight: 500;
}

.drop-zone-content .small-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Result Section */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-header {
    font-size: 28px;
    font-weight: 700;
}

.image-preview-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--divider);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analysis-results {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--divider);
    overflow: hidden;
}

.predictions-list {
    display: flex;
    flex-direction: column;
}

.prediction-item {
    padding: 16px;
    border-bottom: 1px solid var(--divider);
}

.prediction-item:last-child {
    border-bottom: none;
}

.label-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.label-name {
    font-size: 17px;
    font-weight: 600;
}

.confidence-value {
    font-size: 17px;
    color: var(--point-color);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #F2F2F7;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--point-color);
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.button-container {
    margin-top: 24px;
}

.btn {
    width: 100%;
    height: var(--button-height);
    border-radius: var(--border-radius);
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-btn {
    background-color: var(--point-color);
    color: var(--white);
}

.primary-btn:active {
    opacity: 0.8;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--divider);
    border-top: 3px solid var(--point-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.loader p {
    font-size: 17px;
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        margin-top: 30px;
    }
    .title {
        font-size: 24px;
    }
}

