/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Image Indicator */
.image-indicator {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.image-count {
    font-size: 1.2em;
    color: #666;
}

/* Annotation Stats */
.annotation-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.9em;
    color: #666;
}

.annotation-stats span {
    margin-left: 15px;
}

.annotation-stats span:first-child {
    margin-left: 0;
}

.annotation-stats span span {
    font-weight: bold;
    color: #333;
    margin-left: 5px;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image and Canvas styles */
.image-container {
    position: relative;
    flex: 2;
}

.canvas-container {
    position: relative;
    width: 800px;
    height: 450px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 auto;
    background-color: transparent;
}

#landmarkCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    cursor: crosshair;
    background-color: transparent;
}

/* Image Controls */
.image-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-controls select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.image-controls select optgroup {
    font-weight: bold;
    color: #666;
    background-color: #f5f5f5;
    padding: 8px;
}

.image-controls select option {
    font-weight: normal;
    padding: 8px;
    background-color: white;
    margin-left: 8px;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.zoom-controls button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.zoom-controls button:hover {
    background-color: #f0f0f0;
}

#zoomLevel {
    min-width: 60px;
    text-align: center;
}

/* Navigation Buttons */
.canvas-navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.canvas-navigation button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.canvas-navigation button:hover {
    background-color: #45a049;
}

.canvas-navigation button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Controls Section */
.controls {
    flex: 1;
    background-color: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 500px;
    overflow-y: auto;
}

/* Selected Point */
.selected-point {
    margin-top: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Attribute Form */
.attribute-form {
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85em;
    margin-bottom: 1px;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85em;
}

#saveAttributes {
    padding: 4px 10px;
    font-size: 0.85em;
    margin-top: 6px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#saveAttributes:hover {
    background-color: #45a049;
}

/* Annotations Section */
.annotations-section {
    margin-top: 8px;
}

.annotations-section h3 {
    font-size: 1em;
    margin-bottom: 5px;
}

.annotation-count {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 3px;
    text-align: right;
    padding-right: 10px;
}

#annotationsList {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#annotationsList::-webkit-scrollbar {
    width: 8px;
}

#annotationsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#annotationsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#annotationsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.annotation-item {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
}

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

.annotation-item span {
    flex-grow: 1;
    margin-right: 10px;
    word-break: break-word;
}

.annotation-item .edit-btn,
.annotation-item .delete-btn {
    padding: 4px 8px;
    margin-left: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    font-size: 1.1em;
}

.annotation-item .edit-btn:hover {
    background-color: #e3f2fd;
}

.annotation-item .delete-btn:hover {
    background-color: #ffebee;
}

/* Download/Upload Buttons */
.annotations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.annotation-buttons {
    display: flex;
    gap: 10px;
}

.download-btn, .upload-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn {
    background-color: #2196F3;
}

.download-btn:hover {
    background-color: #45a049;
}

.upload-btn:hover {
    background-color: #1976D2;
}

.navigation-buttons {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.navigation-buttons button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.navigation-buttons button:hover {
    background-color: #45a049;
}

.navigation-buttons button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.global-navigation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.global-navigation button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-navigation button:hover {
    background-color: #45a049;
}

.global-navigation button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.profile-canvas-container {
    position: relative;
    width: 800px;
    height: 400px;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: transparent;
    margin: 10px auto 0;
    border-radius: 4px;
}

.profile-section {
    margin-top: 20px;
    text-align: center;
}

.profile-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

#profileCanvas {
    width: 100%;
    height: 100%;
    cursor: move;
    background-color: transparent;
    display: block;
}

.profile-canvas-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#profileZoomIn,
#profileZoomOut,
#profileResetZoom {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#profileZoomIn:hover,
#profileZoomOut:hover,
#profileResetZoom:hover {
    background-color: #f0f0f0;
}

#profileZoomLevel {
    padding: 5px 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.canvas-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#togglePoints,
#togglePointIds {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
    z-index: 1001;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#togglePoints {
    font-size: 20px;
    line-height: 1;
    background-color: #e3f2fd;
    border-color: #2196F3;
}

#togglePoints:not(.active) {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #ddd;
    opacity: 0.7;
}

#togglePoints:hover,
#togglePointIds:hover {
    background-color: #f0f0f0;
}

#togglePoints.active,
#togglePointIds.active {
    background-color: #e3f2fd;
    border-color: #2196F3;
} 