* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.logo h1 {
    color: #3498db;
    font-size: 28px;
    font-weight: bold;
}

.logo p {
    color: #bdc3c7;
    font-size: 14px;
    margin-top: 5px;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 2px;
}

.nav-menu a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #3498db;
    border-left-color: #e74c3c;
    transform: translateX(5px);
}

.nav-section {
    margin-top: 30px;
}

.nav-section-title {
    color: #95a5a6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 30px;
    background-color: white;
    min-height: 100vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    flex-wrap: wrap;
}

.flow-step {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    margin: 5px;
    min-width: 150px;
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
}

.flow-step:last-child::after {
    display: none;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tech-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.tech-item h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.endpoint-list {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.endpoint {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.endpoint:last-child {
    border-bottom: none;
}

.method {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

.method.get { background: #28a745; color: white; }
.method.post { background: #007bff; color: white; }
.method.put { background: #ffc107; color: black; }
.method.delete { background: #dc3545; color: white; }

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active { background: #28a745; }
.status-warning { background: #ffc107; }
.status-error { background: #dc3545; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Alternating row colors for better readability */
tbody tr:nth-child(odd) {
    background-color: #ffffff;
    color: #333333;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
    color: #333333;
}

tbody tr:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
}

.alert-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
    color: #f57c00;
}

.alert-success {
    background: #e8f5e8;
    border-left-color: #4caf50;
    color: #388e3c;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid #3498db;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary { background: #3498db; color: white; }
.badge-secondary { background: #6c757d; color: white; }
.badge-success { background: #28a745; color: white; }
.badge-warning { background: #ffc107; color: black; }

/* Log viewer specific styles */
.log-error {
    color: red;
    font-weight: bold;
}

.log-warn {
    color: orange;
}

.log-info {
    color: darkblue;
}

.log-debug {
    color: gray;
}

/* Pagination navigation styles */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination-item {
    margin: 0 5px;
}

.button-margin-left {
    margin-left: 10px;
}

/* Form styling for XHTML pages */
.form-grid {
    width: 100%;
    margin: 20px 0;
}

.form-grid td {
    padding: 10px 15px;
    vertical-align: middle;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.form-input {
    width: 70%;
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.column-header {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.button-group .ui-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-left: 10px;
}

.example-image {
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* PrimeFaces component overrides to match theme */
.ui-inputtext, .ui-selectonemenu {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
}

.ui-inputtext:focus, .ui-selectonemenu:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.ui-fileupload {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.ui-messages {
    margin: 20px 0;
}

.ui-messages .ui-messages-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.ui-messages .ui-messages-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}