* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: #008080;
    color: #000;
    min-height: 100vh;
}

.window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 1px 1px 0 0 #000;
    margin: 10px;
}

.window-title {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.window-title .title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 14px;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
}

.window-controls button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.window-body {
    padding: 8px;
}

button, .btn {
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px 12px;
    cursor: pointer;
    outline: none;
    min-width: 60px;
    box-shadow: none;
}

button:active, .btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

button:focus, .btn:focus {
    outline: 1px dotted #000;
}

input, select, textarea {
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 4px;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

th {
    background: #000080;
    color: #fff;
    font-weight: bold;
    padding: 3px 6px;
    text-align: left;
    font-size: 11px;
}

td {
    padding: 3px 6px;
    border: 1px solid #808080;
    font-size: 11px;
}

tr:nth-child(even) {
    background: #e0e0e0;
}

tr:hover {
    background: #000080;
    color: #fff;
}

.statusbar {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    font-size: 11px;
    margin-top: 10px;
}

.toolbar {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 8px;
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar button {
    font-size: 11px;
    padding: 2px 8px;
}

.toolbar-separator {
    width: 2px;
    height: 18px;
    background: #808080;
    border-left: 1px solid #fff;
    margin: 0 4px;
}

.form-group {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label {
    min-width: 80px;
    font-size: 11px;
}

.form-group input, .form-group select {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #808080;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#login-screen .window {
    width: 320px;
}

#app-main {
    display: none;
}

#app-main.active {
    display: block;
}

.menu-bar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px 0;
    display: flex;
}

.menu-bar .menu-item {
    padding: 2px 8px;
    cursor: pointer;
    font-size: 11px;
}

.menu-bar .menu-item:hover {
    background: #000080;
    color: #fff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.photo-item {
    background: #fff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px;
    text-align: center;
}

.photo-item img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

.photo-status {
    display: inline-block;
    padding: 1px 4px;
    font-size: 10px;
    margin-top: 2px;
}

.status-accepted { background: #00ff00; color: #000; }
.status-discarded { background: #ff0000; color: #fff; }
.status-to_review { background: #ffff00; color: #000; }

#login-error {
    color: #ff0000;
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

@media (max-width: 600px) {
    .window { margin: 4px; }
    .form-group { flex-direction: column; align-items: stretch; }
    .form-group label { min-width: auto; }
}
