:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #10b981;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global App Layout Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Full-Width Header Navbar */
header.navbar {
    background: var(--card-bg);
    padding: 15px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 200;
}

header.navbar h3, header.navbar h2 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.lang-switch button {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.lang-switch button:hover {
    background: var(--primary);
}

/* Middle Section holding Sidebar and Main Content */
.content-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
    min-height: calc(100vh - 73px);
}

.sidebar-header {
    padding: 24px 20px;
    font-size: 1.15rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-menu li a {
    display: block;
    padding: 14px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--accent);
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
}

/* Container */
.container {
    padding: 35px;
    width: 100%;
    flex: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04), 0 2px 4px -1px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

/* Full-Width Bottom Footer */
footer.app-footer {
    background: var(--card-bg);
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

/* Forms & Tables */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-light);
}

.btn {
    background-color: var(--primary-light);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
}