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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #232F3E 0%, #FF9900 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.1em;
}

.policy-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: white;
    border-bottom: 3px solid #FF9900;
    font-weight: 600;
}

.content {
    padding: 30px;
}

.policy-info {
    margin-bottom: 30px;
}

.policy-info h2 {
    color: #232F3E;
    margin-bottom: 10px;
}

.policy-info p {
    color: #666;
    line-height: 1.6;
}

.policy-viewer {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.viewer-header h3 {
    color: #232F3E;
}

.viewer-controls {
    display: flex;
    gap: 10px;
}

#example-selector, #category-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.policy-example-desc {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
    display: none;
}

.policy-example-desc.visible {
    display: block;
}

#policy-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
}

.policy-simulator {
    background: #fff;
    border: 2px solid #FF9900;
    border-radius: 8px;
    padding: 20px;
}

.policy-simulator h3 {
    color: #232F3E;
    margin-bottom: 15px;
}

.simulator-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.simulator-controls input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

#evaluate-btn {
    padding: 10px 30px;
    background: #FF9900;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#evaluate-btn:hover {
    background: #ec7211;
}

.result-box {
    min-height: 60px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 4px solid #ccc;
}

.result-box.allowed {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.result-box.denied {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.result-box.empty {
    color: #999;
    font-style: italic;
}

.load-status {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px 20px;
    margin: 0;
    font-size: 0.9em;
    color: #2e7d32;
    display: none;
}

.load-status.visible {
    display: block;
}

.load-status.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}
