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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #FFE9EF;
    overflow-x: hidden;
    min-height: 100vh;
    /* Hardware acceleration and backface-visibility removed to fix floating save button positioning */
}

/* Respect user preference for reduced motion - handled by page-builder.css */
@media (prefers-reduced-motion: reduce) {
    .page-builder-container {
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
        animation: none !important;
        background-position: 0 0 !important;
    }
}

/* Background animations moved to page-builder.css */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #ff69b4;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #ff69b4;
}

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

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #8a2be2;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #8a2be2;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8), -1px -1px 1px rgba(255, 255, 255, 0.8), 1px -1px 1px rgba(255, 255, 255, 0.8), -1px 1px 1px rgba(255, 255, 255, 0.8);
}

nav a:hover {
    background: #8a2be2;
    color: white;
    transform: translateY(-2px);
}

.login-btn {
    background: linear-gradient(45deg, #7289da, #5865f2);
    color: white !important;
    border-color: #7289da !important;
    text-shadow: none !important;
}

.login-btn:hover {
    background: linear-gradient(45deg, #5865f2, #4752c4);
}

main {
    margin-top: 30px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #ff69b4;
    border-radius: 15px;
}

section h2, section h3 {
    color: #ff1493;
    margin-bottom: 15px;
}

#hero {
    text-align: center;
    background: linear-gradient(45deg, #ff69b4, #8a2be2);
    color: white;
}

#hero h2 {
    color: white;
    font-size: 2em;
}

.message-form, .drawing-section, .scribble-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea, input[type="text"], input[type="email"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8), 1px -1px 2px rgba(0, 0, 0, 0.8), -1px 1px 2px rgba(0, 0, 0, 0.8);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#scribbleCanvas {
    border: 3px solid #ff69b4;
    border-radius: 10px;
    background: white;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scribble-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.messages-container, .scribbles-container {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.message-item, .scribble-item {
    background: white;
    padding: 15px;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.drawing-controls, .scribble-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.drawing-controls button, .scribble-controls button {
    padding: 8px 16px;
    font-size: 14px;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-group label {
    font-weight: bold;
    color: #8a2be2;
}

.tool-btn {
    padding: 8px 12px;
    font-size: 14px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8), 1px -1px 2px rgba(0, 0, 0, 0.8), -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tool-btn.active {
    background: linear-gradient(45deg, #8a2be2, #9370db);
}

.color-presets {
    display: flex;
    gap: 5px;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: #ff69b4;
}

.scribble-status, .drawing-status {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autosave-status {
    font-size: 14px;
    color: #666;
}

.scribble-progress, .drawing-progress {
    color: #ff6600;
    font-weight: bold;
}

.pressure-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid #8a2be2;
    border-radius: 8px;
    font-size: 14px;
    color: #8a2be2;
}

.status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #ff69b4;
    color: #8a2be2;
}

/* Tablet styles */
@media (max-width: 768px) {
    body {
        /* Background animations handled by page-builder.css */
    }
    
    .container {
        margin: 20px; /* Keep desktop margin */
        padding: 20px; /* Keep desktop padding */
    }
    
    header h1 {
        font-size: 2.5em; /* Keep desktop font size */
    }
    
    nav {
        flex-direction: column;
        gap: 15px; /* Keep desktop gap */
    }
    
    nav a {
        text-align: center;
    }
    
    .scribble-toolbar, .drawing-toolbar {
        flex-direction: column;
        align-items: center;
    }
    
    .tool-group {
        justify-content: center;
    }
    
    #scribbleCanvas {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        margin: 15px; /* Keep closer to desktop */
        padding: 18px; /* Keep closer to desktop */
    }
    
    header h1 {
        font-size: 2.3em; /* Keep closer to desktop size */
    }
    
    section {
        padding: 20px; /* Keep desktop padding */
    }
    
    button {
        padding: 12px 24px; /* Keep closer to desktop size */
        font-size: 16px; /* Keep desktop font size */
    }
    
    .scribble-controls, .drawing-controls {
        gap: 5px;
    }
    
    .scribble-controls button, .drawing-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tool-group {
        gap: 5px;
    }
    
    .color-preset {
        width: 25px;
        height: 25px;
    }
}

/* GLOBAL OVERRIDE: Remove all box shadows site-wide - per design philosophy */
* {
    box-shadow: none !important;
}

/* Ensure no element can have box-shadow */
*::before,
*::after {
    box-shadow: none !important;
}

/* Override any inline styles that might have box-shadow */
[style*="box-shadow"] {
    box-shadow: none !important;
}

/* Override shadow CSS variables used in SharedQuizStyle */
:root {
    --shadow-soft: none !important;
    --shadow-strong: none !important;
}

/* Hide notification bell system on dashboard and page builder pages */
body:has(.dashboard-container) #notificationBell,
body:has(.dashboard-container) .notification-bell,
body:has(.dashboard-container) #notificationPanel,
body:has(.dashboard-container) .notification-panel,
body:has(.page-builder-container) #notificationBell,
body:has(.page-builder-container) .notification-bell,
body:has(.page-builder-container) #notificationPanel,
body:has(.page-builder-container) .notification-panel {
    display: none !important;
}