.cms-toolbar {
    top: 4rem;
}

.authorable {
    padding-left: 15px;
    padding-right: 15px;
}


/* General Reset */
.cms-toolbar *,
.cms-editor * {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* Buttons */
.cms-toolbar button,
.cms-editor button {
    display: inline-block;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    background-color: var(--mg-color-primary);
    color: white;
    border-color: var(--mg-color-primary);
}

.cms-toolbar button {
    padding: 6px 14px;
}

.cms-toolbar button:hover {
    background-color: #0056b3;
    border-color: #004b9a;
}


.cms-editor button.add {
    margin-right:10px;
}

/* Inputs & Selects */
.cms-editor input,
.cms-editor select {
    padding:5px;
    margin:5px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: white;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Focus Effect */
.cms-editor input:focus,
.cms-editor select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Disabled State */
.cms-editor input:disabled,
.cms-editor select:disabled,
.cms-editor button:disabled,
.cms-toolbar button:disabled {
    background-color: #e9ecef;
    color: #808080;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Select Styling */
.cms-editor select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23343a40" d="M2 0L0 2h4zM2 5l2-2H0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

.logo {
    height: 1.6rem;
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* visual indicator for hideable elements in CMS mode */
.authoring .editing [class*="d-"][class*="-none"] {
    display: inline-block !important;
    outline: 1px dashed #F88379;
}
