/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #343a40;
    font-weight: 500;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    text-align: center;
}

.login-box {
    background: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box img {
    max-width: 250px;
    margin-bottom: 1.5rem;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #495057;
}

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-box button:hover {
    background-color: #0056b3;
}

#login-output {
    color: #dc3545;
    margin-top: 1rem;
    min-height: 1.2em;
}

/* Main App Styles */
#app-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    position: relative;
}

#screen-dropdown {
    width: 100%;
}

#screen-dropdown .Select-control, #screen-dropdown .rc-select-selector {
    min-height: 48px;
    font-size: 1.1rem;
}

/* Style Dash Components */
.Select, .rc-select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.Select-control, .rc-select-selector {
    border-radius: 4px !important;
    border-color: #ced4da !important;
}

.Select-control:hover, .rc-select-selector:hover {
    border-color: #80bdff !important;
}

button, .button {
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

button:hover, .button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#logout-button {
    background-color: #6c757d;
    border-color: #6c757d;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#logout-button:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: monospace;
}

.tab {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.tab--selected {
    border-color: #007bff;
    border-bottom: 2px solid #007bff;
    color: #007bff;
    font-weight: 500;
}

/* Navbar Styles */
.navbar {
    display: flex;
    background-color: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #dee2e6;
}

.nav-link.active {
    color: #fff;
    background-color: #007bff;
}

#screen-title-container {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 2rem;
    margin-right: 8rem;
}
