:root {
    --primary-color: #ffcc33;
    --secondary-color: #ff99cc;
    --bg-color: #fff9e6;
    --text-color: #333;
    --container-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Nanum Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 600px;
    background: var(--container-bg);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #e67e22;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Upload Section */
.image-upload-wrap {
    border: 4px dashed var(--primary-color);
    border-radius: 20px;
    position: relative;
    padding: 40px 10px;
    transition: all 0.3s ease;
}

.image-upload-wrap:hover {
    background-color: #fffdf5;
    border-color: #f1c40f;
}

.file-upload-input {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    outline: none;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.drag-text h3 {
    font-weight: 700;
    color: #e67e22;
}

.upload-icon {
    width: 60px;
    margin-bottom: 15px;
}

.webcam-btn-wrap {
    margin-top: 20px;
}

.webcam-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.webcam-btn:hover {
    background-color: #2980b9;
}

/* Loading */
.loading {
    padding: 40px 0;
}

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

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

/* Result Content */
.file-upload-content {
    margin-top: 20px;
}

.file-upload-image {
    max-width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#webcam-container canvas {
    border-radius: 20px;
    max-width: 100%;
    margin-bottom: 20px;
}

.result-container {
    padding: 20px;
    background: #fdfaf0;
    border-radius: 20px;
}

.result-message {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #d35400;
}

.result-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.label-container {
    margin-bottom: 20px;
}

.bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.label-name {
    width: 80px;
    text-align: left;
    font-weight: bold;
}

.bar-bg {
    flex-grow: 1;
    background-color: #eee;
    height: 20px;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dog-bar { background-color: #f39c12; }
.cat-bar { background-color: #9b59b6; }

.percent-text {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
}

.remove-image {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
}

/* Partnership Section */
.partnership-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.partnership-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partnership-section input, 
.partnership-section textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #bdc3c7;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    header h1 {
        font-size: 2rem;
    }
}