/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 0 100px;
    background-color: white;
    color: black;

}

.page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    color: rgba(34, 37, 41, 0.964);
    margin-bottom: 1.01rem;
    font-weight: 600;
}

/* Navigation and links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Forms */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
    margin-bottom: 3rem;
}

form>div {
    display: flex !important;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    margin: 0;
}

input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

form.status-form input[type="text"],
form.status-form input[type="date"],
form.status-form input[type="checkbox"] {
    width: 100%;
}


form.status-form button {
    width: 100%;
    margin-top: 1rem;
}


form.user {
    padding: 1.5rem 2rem;
    border-radius: 16px;
}

form.user input[type="text"],
form.user input[type="email"] {
    width: 100%;
}

form.user button {
    margin-top: 0.75rem;
    width: 100%;
}

/* Buttons */
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

button:hover {
    background: #007bff;
    transform: translateY(-1px);
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}


/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: none;
    border-radius: 20px;
    margin-bottom: 3rem;
}

th {
    background: white;
    font-weight: 800;
    color: #252525;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #d1d5db;
    text-align: left;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.verify-table th:nth-child(1),
.verify-table td:nth-child(1) {
    width: 45%;
}

.verify-table th:nth-child(2),
.verify-table td:nth-child(2) {
    width: 45%;
}

.verify-table th:nth-child(3),
.verify-table td:nth-child(3) {
    width: 10%;
    white-space: nowrap;
}

.verify-table tr:nth-child(even) td {
    background-color: rgb(242, 242, 242);
}

.verify-table tr:nth-child(odd) td {
    background-color: white;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f9fa;
}

div.movement {
    border: 2px solid #c2c2c4;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

div.movement:hover {
    border-color: #007bff;
    /*background: white;*/
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

div.movement:hover button.movement {
    opacity: 1;
}

div.movement span {
    flex: 1;
    margin-right: 80px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}



button.movement {
    opacity: 0;
    position: absolute;
    right: 8px;
    background: #007bff;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.movement:first-child {
    top: 4px;
}

button.movement:last-child {
    bottom: 4px;
}

button.movement:hover {
    background: #007bff;
    transform: scale(1.1);
}

button.movement:disabled {
    background: #bdc3c7;
    transform: none;
}

/* Confidence indicators */
td.high-confidence {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
}

td.medium-confidence {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
}

td.low-confidence {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
}

/* Add confidence labels */
td.high-confidence::after {
    content: "High";
}

td.medium-confidence::after {
    content: "Medium";
}

td.low-confidence::after {
    content: "Low";
}

/* Header actions */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    background: white;
}

.header-actions a {
    padding: 0.5rem 1rem;
    background: #95a5a6;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-actions a:hover {
    background: #7f8c8d;
    text-decoration: none;
}

.status-header h1 {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.status-header {
    display: block;
    text-align: center;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 1.25rem;
}

/* Error messages */
.error {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }

    div.movement span {
        margin-right: 60px;
    }

    button.movement {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

textarea {
    width: 100%;
    min-height: 260px;
    padding: 0.75rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
}

.site-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgb(34, 37, 41);
    padding-left: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    width: 100%;
    margin: 0;
}


.site-nav a {
    color: rgb(155, 157, 159);
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
}

.site-nav a.active {
    background: #007bff;
    color: white;
}