
/* Button colors from admin branding settings */
button[type="submit"],
.btn-primary,
.bg-gradient-custom,
.start-timer-btn,
.submit-btn,
.exercise-card button,
.appliance-btn,
.movement-btn {
    background: linear-gradient(135deg, var(--btn-primary, #ec4899) 0%, var(--btn-secondary, #3b82f6) 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-secondary {
    background: var(--btn-secondary, #3b82f6) !important;
    color: #ffffff !important;
}

/* Ensure all dashboard buttons use branding colors */
.dashboard button:not(.text-black) {
    background: linear-gradient(135deg, var(--btn-primary, #ec4899) 0%, var(--btn-secondary, #3b82f6) 100%) !important;
    color: #ffffff !important;
}



/* Use branding button colors from admin settings */
:root {
    --button-primary: var(--color-btn-primary, #ec4899);
    --button-secondary: var(--color-btn-secondary, #3b82f6);
}

/* Apply button colors from branding settings */
.btn-primary,
.submit-btn,
.start-timer-btn,
button[type="submit"] {
    background: var(--button-primary) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: var(--button-secondary) !important;
    color: #ffffff !important;
}

/* Gradient buttons use button colors */
.bg-gradient-custom {
    background: linear-gradient(135deg, var(--button-primary) 0%, var(--button-secondary) 100%) !important;
}

/* Dentist dashboard buttons */
.dentist-buttons button {
    background: linear-gradient(135deg, var(--button-primary) 0%, var(--button-secondary) 100%) !important;
}


/* Dr. Lolli Health System - Styles */

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Mobile-first responsive design */
.container {
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}


.grid-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.grid-button:active {
    transform: translateY(0);
}

/* Emoji faces */
.emoji-face {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Status indicators */
.status-indicator {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.status-indicator.active {
    color: #10b981;
}

.status-indicator.inactive {
    color: #ef4444;
}

/* Timer display */
#timer-display {
    backdrop-filter: blur(8px);
}

#timer-progress {
    transition: stroke-dashoffset 1s linear;
}

/* Celebration animation */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

.celebration {
    animation: bounce 0.6s ease-in-out, pulse 1.5s;
}

/* Exercise items */
.exercise-item {
    transition: all 0.3s ease;
}

.exercise-item:hover {
    transform: translateX(4px);
}

/* Modal styles */
#content-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Points notification */
.points-notification {
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Appliance panel */
#appliance-panel .emoji-face {
    transition: all 0.3s ease;
}

#appliance-panel.active .emoji-face {
    color: #10b981;
}

/* Video thumbnails */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ec4899;
    color: white;
}

.btn-primary:hover {
    background: #db2777;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f3f4f6;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #ec4899;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .grid-button {
        min-height: 120px;
        padding: 1rem;
    }
    
    .emoji-face {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    header,
    #logout-btn,
    .btn,
    button {
        display: none !important;
    }
}


/* Dr. Lolli Fixes - Issues 5, 6, 7, 9, 11, 13, 15, 21, 25 */

/* Fix logo sizes - Issue 5 */
.app-logo {
    height: 80px !important;
    width: auto !important;
    max-width: 200px;
}

.header-logo {
    height: 60px !important;
    width: auto !important;
}

.login-logo {
    height: 100px !important;
    width: auto !important;
    max-width: 250px;
}

/* Fix header to white background with black text - Issues 6, 7 */
.app-header {
    background: #ffffff !important;
    color: #000000 !important;
}

.app-header h1 {
    color: #000000 !important;
}

.app-header button,
.app-header .back-btn,
.app-header .logout-btn {
    color: #000000 !important;
}

/* Fix button visibility - Issues 9, 11, 13, 15, 21 */
button, .btn,
.start-timer-btn,
.submit-btn,
.dentist-buttons button {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Primary buttons should have white text */
.btn-primary,
.bg-gradient-custom {
    color: #ffffff !important;
}

/* Fix text visibility - Issue 25 */
.bg-white * {
    color: inherit;
}

.bg-white {
    color: #1f2937 !important;
}

/* Ensure all form inputs are visible */
input, textarea, select {
    color: #1f2937 !important;
    background: #ffffff !important;
}

/* Dentist dashboard specific fixes - Issue 21 */
.dentist-buttons button {
    background: linear-gradient(135deg, #ec4899 0%, #3b82f6 100%);
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

.action-btn {
    background: #3b82f6;
    color: #ffffff !important;
    opacity: 1 !important;
}
