/* ================================
   GLOBAL LAYOUT STYLES
   ================================ */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

header {
    background: #222;
    color: #fff;
    padding: 10px 20px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-right: 15px;
    padding: 4px 8px;
}

nav a.active {
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

nav a:hover {
    color: #fff;
}

.container {
    display: flex;
    padding: 20px;
}

.sidebar {
    width: 30%;
    max-width: 320px;
    margin-right: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.content {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table th, table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f0f0f0;
}

.small {
    font-size: 0.8rem;
    color: #666;
}

/* Generic button */
.btn {
    display: inline-block;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    background: #0056b3;
}

/* Reusable button variations */
.btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

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

/* Align form buttons row */
.btn-row {
    margin-top: 15px;
}

.inline-form {
    display: inline;
}

/* Messages */
.messages {
    margin-bottom: 10px;
}

.messages .error {
    color: #dc3545;
}

.messages .success {
    color: #28a745;
}
.obj-menu-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    font-size: 16px;
    line-height: 1;
}

.obj-menu-btn:hover {
    color: #333;
}
