:root {
    --primary-color: #198754;
    --primary-color-dark: #0a5a35;
    --secondary-color: #ff5c35;
    --secondary-color-dark: #b83312;
}

.navbar {
    background-color: var(--primary-color);
}

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

.button-primary:hover {
    background-color: var(--primary-color-dark);
}

.button-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.button-secondary:hover {
    background-color: var(--secondary-color-dark);
}

.company-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.form-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .company-navigation {
        flex-direction: column;
    }
    
    .company-navigation > * {
        width: 100%;
        margin-bottom: 10px;
    }
}

.template-info:hover {
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 8px;
    margin: -8px;
}

.card-body h5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Preview box and offcanvas styles */
.preview-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.subject-preview {
    min-height: 40px;
    font-weight: 500;
}

.body-preview {
    min-height: 200px;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.5;
}

/* Make offcanvas 33% of screen width */
.offcanvas.offcanvas-end {
    width: 33% !important;
}

/* Reduce text size in offcanvas */
.offcanvas {
    font-size: 13px; /* 3px smaller than default 16px */
}

.offcanvas .form-label {
    font-size: 13px;
}

.offcanvas .preview-box {
    font-size: 13px;
}

.offcanvas select.form-select {
    font-size: 13px;
}

.offcanvas .btn {
    font-size: 13px;
}

.offcanvas .offcanvas-title {
    font-size: 16px; /* 3px smaller than default 19px */
}

/* Style for empty preview */
.preview-box:empty::before {
    content: 'Select a template to preview content';
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}