@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #8e44ad;
    --primary-hover-color: #9b59b6;
    --primary-active-bg: #367BF5;
    --primary-active-color: #ffffff;
    --background-color: #f4f6f9;
    --sidebar-bg-color: #ffffff;
    --text-color: #333;
    --muted-text-color: #777;
    --border-color: #e0e0e0;
    --table-header-bg: #f9fafb;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app-container {
    padding: 30px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 24px 0 rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}
.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.logout-button {
    background: rgba(229, 57, 53, 0.6);
}
.logout-button:hover {
    background: rgba(229, 57, 53, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.column {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

.list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.list-header h2 {
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.search-box {
    margin-top: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 14px;
}
.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.search-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

#factory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    will-change: transform;
}
#factory-list li {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    color: #f0f0f0;
    border: 1px solid transparent;
}
#factory-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}
#factory-list li.selected {
    background: rgba(142, 68, 173, 0.6);
    color: #fff;
    font-weight: 500;
}

#model-details {
    flex-grow: 1;
    overflow-y: auto;
    color: #f0f0f0;
    will-change: transform;
}

#model-list {
    list-style-type: none;
    padding: 0;
}
#model-list li {
    padding: 12px 5px 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
}
#model-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
#model-list li:last-child {
    border-bottom: none;
}
#model-list .model-name {
    font-weight: 500;
}

.placeholder, .loader, .message {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
}

.view-details-btn {
    padding: 10px 18px;
    background-color: rgba(142, 68, 173, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.view-details-btn:hover {
    background-color: #8e44ad;
}
.view-details-btn:disabled {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Shared header for details/history pages */
.details-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.details-header h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.back-button {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.glass-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
} 