/**
 * School Clock - Main Styles
 * Responsive, themeable clock display
 */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables with fallbacks */
:root {
    --bg-color: #ffffff;
    --primary-color: #99CCFF;
    --dial-color: #000000;
    --second-hand: #F3A829;
    --text-color: #333333;
    --mute-btn-size: 40px;
}

/* Base Styles */
html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Only hide overflow on clock display pages */
body:has(.clock-container) {
    overflow: hidden;
}

/* Allow scroll on admin/other pages */
body:has(.admin-container) {
    overflow: auto;
    height: auto;
}

/* Clock Container */
.clock-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Logo - positioned at top */
.logo-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.school-logo {
    max-height: 90px;
    max-width: 300px;
    height: auto;
    width: auto;
    cursor: pointer;
}

.school-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--dial-color);
}

/* Clock Wrapper */
.clock-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-wrapper canvas {
    max-width: 100%;
    height: auto;
}

/* Countdown Wrapper */
.countdown-wrapper {
    position: absolute;
    bottom: 10%;
    right: 10%;
}

#countdown {
    width: clamp(150px, 25vmin, 250px);
    height: clamp(150px, 25vmin, 250px);
}

/* Lesson Display */
.lesson-display {
    margin-top: 20px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--dial-color);
    text-align: center;
}

.next-period-display {
    margin-top: 8px;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--dial-color);
    opacity: 0.7;
    text-align: center;
}

/* Clock Messages */
.clock-message {
    max-width: 800px;
    padding: 15px 20px;
    text-align: center;
    color: var(--dial-color);
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.4;
}

.clock-message h1, .clock-message h2, .clock-message h3 {
    margin: 0 0 10px 0;
}

.clock-message p {
    margin: 0;
}

.message-above {
    margin-bottom: 10px;
}

.message-below {
    margin-top: 20px;
}

/* Mute Button */
.mute-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: var(--mute-btn-size);
    height: var(--mute-btn-size);
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 8px;
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.mute-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--dial-color);
    opacity: 0.7;
}

.mute-btn.muted {
    background: rgba(255, 0, 0, 0.1);
}

.mute-btn.muted svg {
    fill: #cc0000;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .countdown-wrapper {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }

    #countdown {
        width: 150px;
        height: 150px;
    }

    .clock-container {
        padding: 10px;
    }

    .mute-btn {
        --mute-btn-size: 36px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-height: 600px) {
    .logo-wrapper {
        margin-bottom: 10px;
    }

    .school-logo {
        max-height: 60px;
    }

    .countdown-wrapper {
        position: absolute;
        bottom: 5%;
        right: 5%;
    }

    #countdown {
        width: 120px;
        height: 120px;
    }
}

/* Digital Clock Styles */
.digital-clock-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-clock {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--dial-color);
    letter-spacing: 0.05em;
}

/* Small Digital Clock (under analogue) */
.digital-clock-small-wrapper {
    margin-top: 15px;
    text-align: center;
}

.digital-clock-small {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--dial-color);
    letter-spacing: 0.05em;
}

/* Exam Mode Styles */
.exam-mode {
    background-color: var(--bg-color);
}

.exam-mode .clock-container {
    justify-content: center;
}

.exam-clock-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.exam-clock {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 900;
    color: var(--dial-color);
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1;
}

/* Fullscreen styles */
:fullscreen {
    background-color: var(--bg-color);
}

:fullscreen .clock-container {
    height: 100vh;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #333;
}

.admin-header .back-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-header .back-link:hover {
    color: #000;
}

/* Form Sections */
.form-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h2 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #99CCFF);
    box-shadow: 0 0 0 3px rgba(153, 204, 255, 0.2);
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.form-group input[type="range"] {
    width: 100%;
}

/* Inline Form Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .slider {
    background-color: #4CAF50;
}

.toggle input:checked + .slider::before {
    transform: translateX(24px);
}

/* Lesson Editor */
.lessons-list {
    margin-top: 10px;
}

.lesson-item {
    display: grid;
    grid-template-columns: 1fr 100px 100px 40px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
}

.lesson-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lesson-item .remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.lesson-item .remove-btn:hover {
    background: #cc0000;
}

.add-lesson-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.add-lesson-btn:hover {
    background: #45a049;
}

/* Preview Button */
.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.preview-btn:hover {
    background: #1976D2;
}

/* Save Button */
.save-section {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px;
    margin: 0 -20px -20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-btn {
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.save-btn:hover {
    background: #45a049;
}

.save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.save-status {
    color: #666;
    font-size: 0.9rem;
}

.save-status.success {
    color: #4CAF50;
}

.save-status.error {
    color: #f44336;
}

/* Chime Preview */
.chime-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chime-preview button {
    padding: 8px 15px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chime-preview button:hover {
    background: #555;
}

/* Logo Upload */
.logo-upload-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo-upload-wrapper input[type="text"] {
    flex: 1;
}

.btn-upload {
    padding: 10px 15px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-upload:hover {
    background: #1976D2;
}

/* Save Dialog */
.save-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.save-dialog {
    background: white;
    border-radius: 8px;
    padding: 25px;
    min-width: 320px;
    max-width: 90%;
}

.save-dialog h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
}

.save-options {
    margin-bottom: 20px;
}

.save-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}

.save-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.preset-name-group {
    margin-top: 10px;
    padding-left: 28px;
}

.preset-name-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.save-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-dialog-actions .btn-cancel {
    padding: 10px 20px;
    background: #ccc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-dialog-actions .btn-save {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-dialog-actions .btn-save:hover {
    background: #45a049;
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

.home-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.home-container h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.school-list {
    list-style: none;
}

.school-list li {
    margin-bottom: 15px;
}

.school-list a {
    display: block;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.school-list a:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.school-list .admin-link {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Exam Mode Toggle Section */
.exam-mode-toggle-section {
    background: #fff3e0 !important;
    border: 2px solid #FF9800;
}

.exam-toggle span strong {
    color: #e65100;
}

/* ============================================
   EXAM MODE EXTENDED STYLES
   ============================================ */

.exam-mode .clock-container {
    flex-direction: column;
    gap: 20px;
}

.exam-header {
    text-align: center;
    margin-bottom: 10px;
}

.exam-logo {
    max-height: 100px;
    max-width: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.exam-school-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0;
}

.exam-centre-number {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* .exam-message styles moved to "Exam Message Edit Button" section below */

/* Exam Message Prompt Dialog */
.exam-message-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.exam-message-dialog {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.exam-message-dialog h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #333;
}

.exam-message-dialog p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1rem;
}

.exam-message-dialog input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

.exam-message-dialog input:focus {
    outline: none;
    border-color: #2196F3;
}

/* Quill editor in exam message dialog */
.exam-message-dialog .ql-toolbar {
    border-radius: 8px 8px 0 0;
    background: #f8f8f8;
    border-color: #ddd;
}

.exam-message-dialog .ql-container {
    border-radius: 0 0 8px 8px;
    border-color: #ddd;
    font-size: 1.1rem;
}

.exam-message-dialog .ql-editor {
    min-height: 60px;
}

.exam-message-dialog .ql-editor.ql-blank::before {
    font-style: normal;
    color: #999;
}

.exam-message-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.exam-message-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#examMessageSkip {
    background: #e0e0e0;
    color: #333;
}

#examMessageSkip:hover {
    background: #d0d0d0;
}

#examMessageSet {
    background: #4CAF50;
    color: white;
}

#examMessageSet:hover {
    background: #45a049;
}

/* Exam Message Display & Edit Button */
.exam-message {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    flex-wrap: nowrap;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
}

.exam-message-text {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Add Message button positioning */
.exam-message:has(.exam-message-add) {
    bottom: 30px;
}

.exam-message-edit {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.exam-message-edit:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.exam-message-edit svg {
    fill: currentColor;
}

.exam-message-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.5;
    border-radius: 50%;
    transition: opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.exam-message-link:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.exam-message-link svg {
    fill: currentColor;
}

/* Link Copied Toast */
.exam-link-copied-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.exam-link-copied-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Exam Message Inline Edit */
.exam-message:has(.exam-message-input) {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    gap: 8px;
}

.exam-message-input {
    padding: 10px 15px;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    border: 2px solid #ddd;
    border-radius: 6px;
    min-width: 250px;
    text-align: center;
}

.exam-message-input:focus {
    outline: none;
    border-color: #2196F3;
}

.exam-message-save,
.exam-message-cancel,
.exam-message-clear {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.exam-message-save {
    background: #4CAF50;
    color: white;
}

.exam-message-save:hover {
    background: #45a049;
}

.exam-message-cancel {
    background: #e0e0e0;
    color: #333;
}

.exam-message-cancel:hover {
    background: #d0d0d0;
}

.exam-message-clear {
    background: #ff5722;
    color: white;
}

.exam-message-clear:hover {
    background: #e64a19;
}

/* Add Message Button (when skipped) */
.exam-message-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.1);
    border: 2px dashed rgba(0,0,0,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.exam-message-add:hover {
    opacity: 1;
    background: rgba(0,0,0,0.15);
}

.exam-message-add svg {
    fill: currentColor;
}

/* =====================================
   Custom Message (non-exam presets)
   Matches exam-message styling exactly
   ===================================== */
.custom-message {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    flex-wrap: nowrap;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    color: var(--dial-color);
}

.custom-message-text {
    flex: 0 1 auto;
    line-height: 1.3;
}

/* Allow HTML content in message text - inherit parent font but allow overrides */
.custom-message-text p {
    margin: 0;
}

.custom-message-text span {
    /* Allow Quill's inline styles and classes to work */
}

/* Add Message button positioning */
.custom-message:has(.custom-message-add) {
    bottom: 30px;
}

.custom-message-edit,
.custom-message-link {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-message-edit:hover,
.custom-message-link:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.custom-message-edit svg,
.custom-message-link svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* Custom Message Inline Edit with Quill */
.custom-message:has(.custom-message-editor) {
    flex-direction: column;
    max-width: 90%;
    width: 600px;
    gap: 12px;
    padding: 16px 20px;
}

.custom-message-editor {
    width: 100%;
    background: white;
    border-radius: 6px;
    min-height: 80px;
}

.custom-message-editor .ql-toolbar {
    border-radius: 6px 6px 0 0;
    background: #f8f8f8;
}

.custom-message-editor .ql-container {
    border-radius: 0 0 6px 6px;
    font-size: 1rem;
}

.custom-message-editor .ql-editor {
    min-height: 60px;
}

.custom-message-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.custom-message-save,
.custom-message-cancel,
.custom-message-clear {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.custom-message-save {
    background: #4CAF50;
    color: white;
}

.custom-message-save:hover {
    background: #45a049;
}

.custom-message-cancel {
    background: #e0e0e0;
    color: #333;
}

.custom-message-cancel:hover {
    background: #d0d0d0;
}

.custom-message-clear {
    background: #ff5722;
    color: white;
}

.custom-message-clear:hover {
    background: #e64a19;
}

/* Add Message Button (when skipped) */
.custom-message-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.1);
    border: 2px dashed rgba(0,0,0,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.custom-message-add:hover {
    opacity: 1;
    background: rgba(0,0,0,0.15);
}

.custom-message-add svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* Custom Message Prompt Dialog Buttons */
#customMessageSkip {
    background: #e0e0e0;
    color: #333;
}

#customMessageSkip:hover {
    background: #d0d0d0;
}

#customMessageSet {
    background: #4CAF50;
    color: white;
}

#customMessageSet:hover {
    background: #45a049;
}

/* Quill size classes for display in custom message */
.custom-message-text .ql-size-small,
.custom-message .ql-size-small {
    font-size: 0.75em !important;
}

.custom-message-text .ql-size-large,
.custom-message .ql-size-large {
    font-size: 1.5em !important;
}

.custom-message-text .ql-size-huge,
.custom-message .ql-size-huge {
    font-size: 2.5em !important;
}

/* Quill alignment classes for display */
.custom-message-text .ql-align-center,
.custom-message-text p.ql-align-center {
    text-align: center;
}

.custom-message-text .ql-align-right,
.custom-message-text p.ql-align-right {
    text-align: right;
}

.custom-message-text .ql-align-justify,
.custom-message-text p.ql-align-justify {
    text-align: justify;
}

/* Quill color styling preserved from editor */
.custom-message-text [style*="color"] {
    /* Let inline color styles work */
}
