/* Original Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-image: url('https://plerion.ai/wp-content/uploads/2024/07/Smart_City_11.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#container {
    width: 90%;
    max-width: 600px;
    max-height: 100%;
    background: rgba(44, 44, 44, 0.9); /* Slight transparency for the background */
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    text-align: center;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#logo-section {
    margin-bottom: 10px;
}

#logo-section img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    animation: logoFadeIn 1.2s ease-out forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

h1, h2 {
    font-family: 'Noto Sans', sans-serif;
    color: #ffffff;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.2;
}

input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #333;
    color: #f0f0f0;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px #007bff;
}

button {
    padding: 10px;
    background: #003e80;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #0274be;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

.file-upload-wrapper {
    margin: 10px 0;
    border-radius: 8px;
    background-color: #333;
    padding: 8px;
    border: 2px dashed #444;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.file-upload-wrapper.dragging {
    transform: scale(1.05);
    background-color: #555;
    border-color: #0274be;
}

.file-upload-wrapper:hover {
    transform: scale(1.02);
    background-color: #444;
}

.instructions {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

input[type="file"] {
    width: 100%;
    padding: 8px;
    color: #f0f0f0;
    background-color: #444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10;
}

.canvas-wrapper {
    position: relative;
    margin-top: 10px;
}

canvas {
    border: 2px solid #444;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.icon-tools {
    position: absolute;
    bottom: -20px;
    left: 0;
    padding-left: 20px;
    display: flex;
    gap: 5px;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    color: #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.icon-button:hover {
    background: none;
    color: #0274be;
    transform: scale(1.2);
}

.annotation-tools {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.processing-options {
    margin-top: 5px;
    text-align: left;
    color: #f0f0f0;
}

.custom-checkbox {
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #0274be;
    border-color: #0274be;
}

.note {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

.analyze-button {
    background-color: #28a745;
    margin-top: 10px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.analyze-button:hover {
    background-color: #218838;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#loading {
    margin-top: 10px;
    font-weight: bold;
    color: #0274be;
    text-align: center;
}

.processing-message {
    margin-top: 10px;
    font-size: 16px;
    color: #28a745;
}
