:root {
    --color-background-dark: #4A5B6C;
    --color-accent: #1E88E5;
    --color-text-dark: #111111;
    --color-text-light: #FFFFFF;
    --color-secondary-grey: #AAAAAA;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brain-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.app-name {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-light);
}

.company-name {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 12px;
    background-color: rgba(30, 136, 229, 0.2);
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 8px 12px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin: 0 0 1px 0;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(30, 136, 229, 0.6);
}

.nav-item.active {
    background-color: rgba(30, 136, 229, 0.15);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

.nav-text {
    font-size: 15px;
    font-weight: inherit;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    margin-bottom: 12px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text-light);
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: var(--color-text-light);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

.main-content-full {
    padding: 30px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Legacy header removal - kept for landing page */
header {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card h3 {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    background-color: #0090e0;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 165, 255, 0.1);
}

/* Cards */
.card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 16px;
    color: var(--color-background-dark);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.badge-posted {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header {
        padding: 16px 10px;
    }
    
    .sidebar-logo {
        flex-direction: column;
        gap: 4px;
    }
    
    .app-name,
    .company-name,
    .nav-text,
    .user-info {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px 10px;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn::before {
        content: "→";
        font-size: 18px;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
}
