body {
	margin: 0;
	padding: 0;
	font-family: ;
    font-family: 'Montserrat', Tahoma, Verdana, sans-serif;
	font-size: 0.8em;
	background: #f2ebe2;
    background: #ffffff;
	color: #000000;
}

#container {
	background: #ffffff;
}

header, footer {
    height: 50px;
    background: #51247a;
	color: white;
	/* text-align: center;
    vertical-align: middle; */
}

header {
	border-bottom: 1px solid #7d39bb;
    line-height: 0.5;
	overflow: auto;
}

/* footer {
    border-top: 1px solid #7d39bb;
    line-height: 1.6;
    overflow: auto;
} */

h1 {
    float: left;
    color: white;
    text-align: left;
    padding: 2px 0px 0px 15px;
}

h1 a {
    text-decoration: none;
}

#header-icons {
    float: right;
    margin-right: 5px;
}

#header-icons a {
    display: inline;
    float: right;
    width: 30px;
    height: 30px;
    margin-top: 10px;
    padding-right: 10px;
}

#home {
    background: url('/img/home.svg') no-repeat;
}

#help {
    background: url('/img/help.svg') no-repeat;
}

#logout {
    background: url('/img/logout.svg') no-repeat;
}

#app-content {
	margin: 20px 20px;
    background: #fffdfb;
}

#training-set-collect {
    width: 100%;
}

#annotate-panel {
    display: none;
}

#canvas-container {
    float: left;
    max-width: 70vw;  /* Limit width to 70% of viewport */
    max-height: 70vh; /* Limit height to 70% of viewport */
    overflow: auto;   /* Add scrollbars when content overflows */
    border: 1px solid #dbdcdd !important;
    position: relative;
}

#photo-canvas {
    cursor: crosshair;
    transform-origin: top left; /* Important for zoom */
}

#photo-sidebar {
    float: left;
    width: 350px;
    margin-left: 30px;
}

#photo-stats {
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 15px;
}

#person-count {
    font-size: 48px;
    font-weight: bold;
    color: #51247a;
    line-height: 1;
}

.stats-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#photo-info {
    margin-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.info-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #51247a;
}

/* Old styles removed - using new control panel design */

#set-training-set {
    display: block;
    margin-top: 15px;
}

#set-training-set {
    background: url('/img/arrow_right.svg') no-repeat;
    background-size: 10px;
    background-position: 10px 50%;
}

#set-training-set:hover {
    background: #dbdcdd url('/img/arrow_right.svg') no-repeat;
    background-size: 10px;
    background-position: 10px 50%;
}

/* Old button styles removed - using new button classes */

/* Special button states */
.swap-with-previous-active {
    background: #fcffcc !important;
    border-color: #ffc107 !important;
}

a, a:link, a:visited {
    color: #ebebeb;
}

a:hover {
    color: #e1cef3;
}

#confidence-slider {
    float: left;
    margin: 15px 0;
    width: 320px;
}

#confidence-label {
    top: 50%;
    width: 2em;
    height: 1.6em;
    margin-top: -.8em;
    text-align: center;
    line-height: 1.6em;
}

/* Dot size slider */
#dot-size-control {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#dot-size-slider {
    float: left;
    margin: 15px 0;
    width: 320px;
}

#dot-size-label {
    top: 50%;
    width: 3em;
    height: 1.6em;
    margin-top: -.8em;
    text-align: center;
    line-height: 1.6em;
}

/* Control Panel Redesign */
#photo-controls {
    float: left;
    width: 350px;
    margin-left: 30px;
    padding: 0;
}

.control-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.control-section h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #51247a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.nav-btn {
    flex: 1;
    padding: 10px 15px;
    background: white;
    color: #51247a;
    border: 2px solid #51247a;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #51247a;
    color: white;
}

.nav-btn.primary {
    background: #51247a;
    color: white;
}

.nav-btn.primary:hover {
    background: #7d39bb;
    border-color: #7d39bb;
}

.small-btn {
    flex: 1;
    padding: 6px 8px;
    background: white;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.small-btn:hover {
    background: #e9ecef;
}

.small-btn.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.small-btn.danger:hover {
    background: #dc3545;
    color: white;
}

.full-width-btn {
    width: 100%;
    padding: 8px;
    background: white;
    color: #51247a;
    border: 1px solid #51247a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.full-width-btn:hover {
    background: #f0e6ff;
}

/* Zoom Buttons */
.zoom-buttons {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.zoom-btn {
    flex: 1;
    padding: 5px;
    background: #51247a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #7d39bb;
}

#zoom-level {
    float: right;
    font-weight: bold;
    color: #51247a;
}

#confidence-detail {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #6c757d;
}

/* Slider Groups */
.slider-group {
    margin-bottom: 20px;
}

.slider-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.slider-group .value-label {
    float: right;
    background: #51247a;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Keyboard Shortcuts */
.shortcuts {
    font-size: 12px;
}

.shortcuts div {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shortcuts kbd {
    background: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: monospace;
    min-width: 70px;
    text-align: center;
}

/* Remove old button styles */
#photo-controls input[type="button"] {
    display: none;
}

/* Ensure sliders work properly */
#confidence-slider, #dot-size-slider {
    margin: 10px 0;
}

/* Fix the handle labels */
#confidence-label.ui-slider-handle,
#dot-size-label.ui-slider-handle {
    position: absolute;
    background: transparent;
    border: none;
    top: -25px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 6px;
    background: #51247a;
    color: white;
    border-radius: 3px;
    font-size: 11px;
    line-height: normal;
    text-align: center;
}   