:root {
    /* Frame.io Palette */
    --primary-color: #5B53FF; /* Dodger Blue */
    --secondary-color: #FC856D; /* Salmon */
    --background-color: #1F2937; /* Cinder */
    --sidebar-bg: #1A1A24; /* Darker sidebar */
    --text-color: #F3F4F6; /* Alabaster */
    --text-color-secondary: #81859F; /* Waterloo */
    --border-color: #2a2a3a; /* Darker border */

    --sidebar-width: 250px;
    --header-height: 60px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.main-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-header .logo a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions .profile-picture img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: block;
}

.button-secondary {
    background-color: transparent !important;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

#sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    height: calc(100vh - var(--header-height));
    position: fixed;
    top: var(--header-height);
    left: 0;
    border-right: 1px solid var(--border-color);
}

#main-content {
    padding: 20px;
    padding-top: calc(var(--header-height) + 20px);
    margin-left: var(--sidebar-width);
}

.container {
    padding: 20px;
    padding-top: calc(var(--header-height) + 20px);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color-secondary);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
    margin: 2px 10px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-info a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 15px;
}

h1, h2, h3 {
    color: var(--text-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
}

form {
    background: var(--sidebar-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button, .button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover, .button:hover {
    opacity: 0.9;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--sidebar-bg);
}

/* List Styles */
ul, ol {
    line-height: 1.6;
}

/* Card Styles */
.card {
    background: var(--sidebar-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.card-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}
