/* Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Arial', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    margin-left: 50px;
    margin-right: 50px;
    min-height: 100vh;
    flex-direction: column;
}

/* Navigation tabs */
.nav-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}

.nav-tab {
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    position: relative;
}

.nav-tab.active {
    color: #0066ff;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0066ff;
}

/* Search input styling */
.search-container {
    margin-bottom: 24px;
}

input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    width: 240px;
}

.search-btn {
    padding: 8px 12px;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 8px;
}

/* Device info section */
.device-info {
    margin-bottom: 32px;
}

.device-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.device-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.device-info-expand {
    color: #666;
    cursor: pointer;
}

.device-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    gap: 8px;
}

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
}

/* Test results section */
.test-results {
    margin-top: 32px;
}

.results-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.results-tab {
    color: #666;
    cursor: pointer;
    padding: 8px 0;
}

.results-tab.active {
    color: #0066ff;
    border-bottom: 2px solid #0066ff;
}

/* Test details grid */
.test-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.test-detail-item {
    color: #666;
}

.test-detail-value {
    color: #333;
    margin-top: 4px;
}

/* Logo */
.logo {
    max-height: 40px;
    margin-bottom: 32px;
}

/* Common headings */
h1 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 20px;
    text-align: center;
}

/* Top bar styling */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Common button styles */
button {
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn {
    background-color: #4CAF50;
    color: white;
    margin-right: 2rem;
}

.search-btn:hover {
    background-color: #45a049;
}

.list-btn {
    background-color: lightskyblue;
    color: white;
    margin-right: 2rem;
}

.list-btn:hover {
    background-color: #87ceeb;
}

.logout-btn {
    padding: 5px 10px;
    font-size: 1rem;
    background-color: #B0002A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.logout-btn:hover {
    background-color: #B0002A;
}

/* Form elements */
input {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

/* Error messages */
.error-messages, #error-message {
    color: red;
    font-size: 1rem;
    text-align: center;
    margin: 10px 0;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 25px;
}

.grades-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.grade-item {
    background-color: white;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.grade-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.images-comparison {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.image-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.image-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-side h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.image-side img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.side-grades {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.side-grades h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
} 