/**
 * Common CSS for all pages in the application
 */

/* Color variables */
:root {
    --neutral-white: #ffffff;
    --neutral-black: #000000;
    --neutral-light-black: #636262;
    --border-grey: #cccccc;
    --neutral-lighter-grey: #f0f2f5;
    --primary-blue: #1890ff;
    --primary-dark-blue: #0a3d6d;
    --error-red: #ff4d4f;
    --error-dark-red: #741212;
    --secondary-teal: #53eccb;
    --alert-orange: #d48806;
    --code-bg: #f8f9fa;
    --code-border: #e9ecef;
}

/* Apply the color scheme */
body {
    background-color: var(--neutral-lighter-grey);
    color: var(--neutral-black);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-dark-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
}

/* Card headers */
.card-header.bg-primary {
    background-color: var(--primary-dark-blue) !important;
    color: var(--neutral-white);
}

/* Toast container */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1070;
}

/* Common margins and padding */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
}

.table th, .table td {
    vertical-align: middle;
}

/* Button spacing in action columns */
.btn-group .btn {
    margin-right: 0.25rem;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

/* Modal styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Pattern display styles */
.patterns-cell code {
    background-color: var(--code-bg);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--code-border);
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    white-space: pre-wrap;
    font-size: 0.875rem;
}

.patterns-cell {
    position: relative;
    padding-right: 90px; /* Make space for the toggle button */
}

.patterns-cell ul {
    list-style-type: none;
    margin-bottom: 0;
    padding-left: 0.5rem;
}

.patterns-cell li {
    margin-bottom: 8px;
}

.patterns-cell li:last-child {
    margin-bottom: 0;
}

.pattern-item-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pattern-code-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.pattern-toggle-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
} 