/* Reset and base styles */
* {
    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: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-image: url('public/images/logo.png');
    background-repeat: no-repeat;
    background-size: 600px auto;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.75;
    z-index: -1;
}

/* App Hub Styles */
.app-hub {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hub-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.hub-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hub-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hub-header h1 i {
    color: #e74c3c;
}

.hub-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

.user-profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.hub-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#hub-avatar-icon {
    font-size: 3rem;
    color: #bdc3c7;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    border-radius: 50%;
    border: 3px solid #bdc3c7;
}

.user-info {
    text-align: center;
}

.user-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.edit-profile-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-profile-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.app-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.app-card[data-app="autism"] .app-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.app-card[data-app="anxiety"] .app-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.app-card[data-app="wellbeing"] .app-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.app-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.launch-app-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.launch-app-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.hub-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.hub-footer p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.change-preference-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.change-preference-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Setup Page Styles */
.setup-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.setup-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.setup-header {
    text-align: center;
    margin-bottom: 3rem;
}

.setup-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.setup-header h1 i {
    color: #3498db;
}

.setup-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Anonymous Option */
.anonymous-option {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(41, 128, 185, 0.9) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.anonymous-option:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 1) 0%, rgba(41, 128, 185, 1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.anonymous-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.anonymous-content i {
    font-size: 1.5rem;
    color: white;
    width: 24px;
    text-align: center;
}

.anonymous-text {
    flex: 1;
    min-width: 200px;
}

.anonymous-text h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.anonymous-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.anonymous-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.anonymous-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.anonymous-btn i {
    font-size: 0.9rem;
}

.setup-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-preference-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.app-preference-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-preference-section h3 i {
    color: #f39c12;
}

.app-preference-section p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.preference-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
    background: white;
}

.preference-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.preference-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.option-content i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.preference-option:nth-child(1) .option-content i {
    color: #e74c3c;
}

.preference-option:nth-child(2) .option-content i {
    color: #27ae60;
}

.preference-option:nth-child(3) .option-content i {
    color: #9b59b6;
}

.option-content span {
    font-weight: 500;
    color: #2c3e50;
}

.setup-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.complete-setup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.complete-setup-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.complete-setup-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.setup-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* App Interface Styles */
.app-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.switch-app-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.switch-app-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* App Preference Modal */
#app-preference-modal .modal-content {
    max-width: 500px;
}

#app-preference-modal .preference-options {
    margin: 1.5rem 0;
}

#app-preference-modal .modal-actions {
    text-align: center;
    margin-top: 2rem;
}

.save-preference-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.save-preference-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hub-container, .setup-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hub-header h1 {
        font-size: 2rem;
    }
    
    .app-selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .user-profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .preference-option {
        padding: 0.8rem;
    }
    
    .option-content {
        gap: 0.5rem;
    }
    
    .option-content i {
        font-size: 1.2rem;
        width: 30px;
    }
    
    /* Anonymous option responsive */
    .anonymous-option {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .anonymous-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .anonymous-text {
        min-width: auto;
    }
    
    .anonymous-text h3 {
        font-size: 1rem;
    }
    
    .anonymous-text p {
        font-size: 0.85rem;
    }
    
    .anonymous-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hub-container, .setup-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .hub-header h1 {
        font-size: 1.8rem;
    }
    
    .app-card {
        padding: 1rem;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .app-content h3 {
        font-size: 1.5rem;
    }
    
    .launch-app-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Main content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e67e22);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:active {
    transform: translateY(-5px);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tool-card p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 0;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2.5rem;
    }
    
    .app-logo {
        height: 2.5rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 2rem 1.5rem;
    }
    
    .modal-content, .modal {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid #000;
    }
    
    .tool-card:hover {
        border-color: #e74c3c;
    }
}

/* Focus styles for keyboard navigation */
.tool-card:focus,
.close-btn:focus {
    outline: 3px solid #e74c3c;
    outline-offset: 2px;
}

/* Modal content styles */
.calming-section,
.communication-section,
.schedule-section,
.contacts-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Calming tools sections */
.calming-tools-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #e1e8ed;
    margin: 0 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title i {
    color: #e74c3c;
    font-size: 1.6rem;
}

.section-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Calming tools grid */
.calming-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.calming-tool-card {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.calming-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.calming-tool-card:active {
    transform: translateY(0);
}

.calming-tool-card .tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calming-tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.calming-tool-card .tool-icon i {
    font-size: 1.2rem;
    color: white;
}

.calming-tool-card .tool-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 0.25rem;
}

.calming-tool-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.calming-tool-card p {
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

/* Breathing exercise page */
.breathing-exercise-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

/* Grounding techniques page */
.grounding-techniques-page {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.technique-selection {
    text-align: center;
    margin-bottom: 2rem;
}

.technique-selection h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.technique-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.technique-select-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.technique-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.technique-select-btn.active {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.technique-select-btn i {
    font-size: 1.2rem;
}

.grounding-exercise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #e1e8ed;
}

.exercise-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.exercise-circle {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.exercise-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.exercise-circle:hover::before {
    opacity: 1;
}

.exercise-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
    padding: 1rem;
    line-height: 1.4;
}

.exercise-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.exercise-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exercise-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.exercise-btn i {
    font-size: 0.9rem;
}

.exercise-progress {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.exercise-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.exercise-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Emotion response modal */
.emotion-response-modal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.response-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 4px solid #e74c3c;
}

.response-message h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.response-suggestions {
    text-align: center;
}

.response-suggestions h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.suggestion-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.suggestion-btn {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.suggestion-btn i {
    font-size: 0.9rem;
}

.response-actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.close-response-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-response-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(127, 140, 141, 0.3);
}

/* My Plan styles */
.my-plan-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 1rem;
}

.plan-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-intro h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.plan-intro p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.plan-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.plan-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.plan-step.completed {
    background: linear-gradient(135deg, #d5f4e6 0%, #c8f7d4 100%);
    border-color: #2ecc71;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.plan-step.completed .step-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.step-icon i {
    font-size: 1.2rem;
    color: white;
}

.step-content {
    flex: 1;
    min-width: 0;
    gap: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    line-height: 1.2;
}

.step-content p {
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-size: 0.9rem;
}

.step-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-btn {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.step-btn.completed {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.step-btn.completed:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.plan-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.plan-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Plan modal styles */
.plan-breathing-container,
.compassion-container,
.calming-activities-container,
.reflection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.compassion-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fdf2f2 0%, #fce7e7 100%);
    border-radius: 15px;
    border-left: 4px solid #e74c3c;
}

.compassion-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.compassion-message h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.compassion-btn {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compassion-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.activity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.activity-option {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.activity-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.activity-option i {
    font-size: 2rem;
    color: #e74c3c;
}

.activity-option span {
    font-weight: 600;
    color: #2c3e50;
}

.reflection-prompts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.reflection-prompt h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.reflection-textarea {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.reflection-textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.reflection-btn {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reflection-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.plan-back-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-back-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(127, 140, 141, 0.3);
}

.plan-complete-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-complete-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Plan Grounding Exercise Styles */
.plan-grounding-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.plan-grounding-intro {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e1e8ed;
}

.plan-grounding-intro h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.plan-grounding-intro h3 i {
    color: #e74c3c;
}

.plan-grounding-intro p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

.plan-technique-selection {
    text-align: center;
}

.plan-technique-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.plan-technique-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    text-align: center;
}

.plan-technique-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.plan-technique-btn.active {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.plan-technique-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-technique-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.plan-technique-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.plan-exercise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #e1e8ed;
}

.plan-exercise-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.plan-exercise-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.plan-exercise-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-exercise-circle:hover::before {
    opacity: 1;
}

.plan-exercise-text {
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
    max-width: 300px;
    line-height: 1.4;
}

.plan-exercise-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.plan-exercise-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-exercise-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.plan-exercise-btn i {
    font-size: 0.9rem;
}

.plan-exercise-progress {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.plan-progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.plan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    width: 0%;
    transition: width 0.3s ease;
}

.plan-progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

.plan-grounding-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.progress-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.progress-number {
    font-size: 2rem;
    font-weight: 700;
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.progress-details {
    text-align: center;
}

.progress-details p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.progress-step {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    border: 2px solid #e1e8ed;
}

.progress-step.completed {
    background: #d5f4e6;
    border-color: #2ecc71;
    color: #27ae60;
    font-weight: 600;
}

.completion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
}

.completion-message {
    padding: 2rem;
    background: linear-gradient(135deg, #d5f4e6 0%, #c8f7d4 100%);
    border-radius: 15px;
    border-left: 4px solid #2ecc71;
}

.completion-message i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.completion-message h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.completion-message p {
    color: #7f8c8d;
    line-height: 1.5;
}

.completion-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.completion-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Breathing exercise styles */
.breathing-exercise {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    transition: all 0.8s ease-in-out;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.breathing-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.breathing-circle:hover::before {
    opacity: 1;
}

.breathing-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.breathing-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.breathing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.breathing-instructions {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 1rem;
}

/* Grounding techniques styles */
.grounding-techniques h3,
.sensory-activities h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.technique-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.technique-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.technique-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.technique-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.technique-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Sensory activities styles */
.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.activity-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.activity-item i {
    color: #e74c3c;
    font-size: 1.2rem;
}

/* Sensory activity styles */
.sensory-activity-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    /* Prevent text selection on touch devices */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
.sensory-activity-container canvas {
    width: 100vw !important;
    height: 80vh !important;
    max-width: 100vw;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    /* Prevent text selection and touch callouts on canvas */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: rgba(255,255,255,0.97);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.2rem 1.2rem 1.2rem;
    box-sizing: border-box;
    transition: opacity 0.3s, visibility 0.3s;
}
.activity-overlay-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.show-options-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 20;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.home-btn {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 20;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.home-btn:hover {
    background: #34495e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44,62,80,0.15);
}
.show-options-btn:hover {
    background: #c0392b;
}
@media (max-width: 768px) {
    .sensory-activity-container canvas {
        height: 60vh !important;
        max-height: 60vh;
    }
    .activity-overlay {
        padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    }
    .show-options-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
    
    .home-btn {
        top: 0.5rem;
        left: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
}

/* Mobile optimization for sensory activities - full screen experience */
@media (max-width: 480px) {
    .sensory-activity-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        z-index: 1000;
        border-radius: 0 !important;
        background: #000 !important;
    }
    
    .sensory-activity-container canvas {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .activity-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(255,255,255,0.95) !important;
        padding: 1rem !important;
        border-radius: 0 !important;
    }
    
    .show-options-btn {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1001 !important;
        background: #e74c3c !important;
        color: #fff !important;
        border: none !important;
        border-radius: 50% !important;
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s !important;
    }
    
    .home-btn {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        z-index: 1001 !important;
        background: #2c3e50 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 50% !important;
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s !important;
    }
    
    .show-options-btn:hover {
        background: #c0392b !important;
    }
}

.activity-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.speed-control {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.speed-control label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.speed-control input[type="range"] {
    width: 100%;
    max-width: 300px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.speed-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.speed-control input[type="range"]:hover::-webkit-slider-thumb {
    background: #c0392b;
    transform: scale(1.1);
}

.speed-control input[type="range"]:hover::-moz-range-thumb {
    background: #c0392b;
    transform: scale(1.1);
}

/* Music Player Styles - Apple Music inspired */
.music-player-container {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.player-artwork {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-artwork:hover img {
    transform: scale(1.05);
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-artwork:hover .artwork-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.play-button i {
    font-size: 2rem;
    color: #1a1a1a;
    margin-left: 4px;
}

.player-info {
    text-align: center;
    margin-bottom: 2rem;
}

.player-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.player-info p {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0;
}

.player-controls {
    margin-bottom: 2rem;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-buttons .control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-buttons .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-pause-btn {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #e74c3c, #f39c12) !important;
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e67e22) !important;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.volume-control i {
    color: #b0b0b0;
    font-size: 1.2rem;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.track-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
}

.track-item.playing {
    background: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
}

.track-item.active.playing {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.2) 0%, rgba(46, 204, 113, 0.2) 100%);
    border-left: 4px solid #e74c3c;
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.track-play-button,
.track-mute-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.track-play-button:hover,
.track-mute-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.track-play-button i,
.track-mute-button i {
    font-size: 0.8rem;
}

.track-volume {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.track-volume::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.track-volume:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.track-volume:hover::-moz-range-thumb {
    transform: scale(1.2);
}

.global-controls {
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.stop-all-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stop-all-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.track-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.track-info {
    flex: 1;
}

.track-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
}

.track-info p {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin: 0;
}

.track-duration {
    font-size: 0.8rem;
    color: #b0b0b0;
    font-weight: 600;
}

/* Scrollbar styling for track list */
.track-list::-webkit-scrollbar {
    width: 6px;
}

.track-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ball-pit-container,
.lava-lamp-container,
.bubbles-container,
.waves-container,
.particles-container {
    display: flex;
    justify-content: center;
    background: #2c3e50;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Prevent text selection on touch devices */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.ball-pit-container canvas,
.lava-lamp-container canvas,
.bubbles-container canvas,
.waves-container canvas,
.particles-container canvas {
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Prevent text selection and touch callouts on all activity canvases */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.ball-pit-container canvas:hover,
.lava-lamp-container canvas:hover,
.bubbles-container canvas:hover,
.waves-container canvas:hover,
.particles-container canvas:hover {
    transform: scale(1.02);
}

.waves-audio-control {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(231, 76, 60, 0.08);
}

.waves-audio-control:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.18);
}

.waves-audio-control i {
    color: #e74c3c;
    font-size: 1rem;
}

.activity-instructions {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.activity-instructions p {
    color: #2c3e50;
    font-style: italic;
    margin: 0;
}

/* Communication tools styles */
.communication-cards h3,
.emotion-wheel h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 0 1rem 2rem 1rem;
}

.comm-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.comm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.comm-card i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    display: block;
}

.comm-card span {
    font-weight: 600;
    color: #2c3e50;
}

.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 0 1rem;
}

.emotion-btn {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.emotion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

/* Schedule styles */
.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.schedule-controls h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.schedule-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.schedule-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

.schedule-item:hover {
    background-color: #f8f9fa;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .time {
    font-weight: 600;
    color: #e74c3c;
}

.schedule-item .activity {
    color: #2c3e50;
}

.schedule-item .status {
    text-align: center;
    font-size: 1.2rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.template-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.template-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* Contact styles */
.emergency-info h3,
.emergency-services h3,
.personal-contacts h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #fdcb6e;
}

.emergency-notice {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #e74c3c;
}

.emergency-notice p {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.emergency-notice ul {
    color: #2c3e50;
    padding-left: 1.5rem;
}

.emergency-notice li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 0 1rem 2rem 1rem;
}

.service-card {
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-icon i {
    font-size: 1.2rem;
    color: white;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 0.25rem;
}

.service-content h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.service-content p {
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.contact-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 1rem 1rem 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
    cursor: grab;
    gap: 0.75rem;
}

.contact-item:active {
    cursor: grabbing;
}

.contact-drag-handle {
    color: #bdc3c7;
    cursor: grab;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1rem;
    color: white;
}

.contact-drag-handle:hover {
    color: #7f8c8d;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-btn,
.delete-btn,
.call-btn {
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: white;
}

.edit-btn {
    background: #3498db;
}

.edit-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.delete-btn {
    background: #e74c3c;
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.edit-btn i,
.delete-btn i,
.call-btn i {
    font-size: 0.8rem !important;
    color: white !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.editable-name,
.editable-number {
    outline: none;
    border-radius: 4px;
    padding: 2px 4px;
    transition: background-color 0.3s ease;
}

.editable-name:focus,
.editable-number:focus {
    background-color: #fff3cd;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-priority {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fdf2f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.call-btn {
    background: #27ae60;
}

.call-btn i {
    font-size: 0.8rem;
    color: white !important;
}

.call-btn:hover {
    background: #229954;
    transform: scale(1.1);
}

.add-contact-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-contact-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Support Messages Page */
.support-messages-page {
    max-width: 100%;
}

.support-intro {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #28a745;
    text-align: center;
}

.support-intro h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-description {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.support-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid #fdcb6e;
}

.support-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-notice {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #17a2b8;
}

.support-notice p {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-notice ul {
    color: #2c3e50;
    padding-left: 1.5rem;
}

.support-notice li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Support Messages Section */
.support-messages-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
    border: 2px solid #28a745;
}

.support-messages-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.8;
}

.support-messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0 1rem 1.5rem 1rem;
}

.support-message-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.support-message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.support-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.support-message-header i {
    color: #28a745;
    font-size: 1.2rem;
}

.support-message-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.support-message-content {
    margin-bottom: 1rem;
}

.support-message-content p {
    color: #2c3e50;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.support-message-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.support-message-actions button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.display-btn {
    color: #28a745;
}

.display-btn:hover {
    background: #d4edda;
    transform: scale(1.1);
}

.edit-btn {
    color: #ffc107;
}

.edit-btn:hover {
    background: #fff3cd;
    transform: scale(1.1);
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background: #f8d7da;
    transform: scale(1.1);
}

/* Urgency Styles */
.urgent-message {
    border: 3px solid #e74c3c !important;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2) !important;
    animation: urgentPulse 2s infinite;
}

.urgent-message:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3) !important;
    transform: translateY(-2px);
}

.urgent-badge {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    animation: urgentBlink 1.5s infinite;
}

.urgent-popup-badge {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 1rem;
    animation: urgentBlink 1.5s infinite;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.urgency-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.urgency-checkbox-label:hover {
    background: #fff5f5;
}

.urgency-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
    cursor: pointer;
}

.urgency-text {
    font-weight: 600;
    color: #e74c3c;
    font-size: 1rem;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    }
}

@keyframes urgentBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.support-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 1rem;
}

.add-support-btn,
.quick-support-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-support-btn:hover,
.quick-support-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.quick-support-btn {
    background: #17a2b8;
}

.quick-support-btn:hover {
    background: #138496;
}

/* Support Message Overlay */
.support-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-message-overlay.show {
    opacity: 1;
}

.support-message-display {
    background: white;
    border-radius: 0;
    padding: 2rem;
    width: 100vw;
    height: 100vh;
    text-align: center;
    box-shadow: none;
    transform: scale(1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.support-message-overlay.show .support-message-display {
    transform: scale(1);
}

.support-message-header-display {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    gap: 1rem;
}

.support-message-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.support-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.phoenix-logo {
    height: 80px;
    width: auto;
}

.support-message-header-display i {
    font-size: 2.5rem;
    color: #28a745;
    display: block;
}

.support-message-header-display h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 2.2rem;
}

.support-message-body {
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.support-message-body p {
    color: #2c3e50;
    font-size: 1.8rem;
    line-height: 1.6;
    margin: 0;
}

.user-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-shrink: 0;
}

.user-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e74c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-name-intro {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.support-message-content {
    color: #2c3e50;
    font-size: 1.8rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-message-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-top: auto;
}

.support-accreditation {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.accreditation-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.accreditation-logo:hover {
    opacity: 1;
}

.close-support-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-support-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Quick Templates Modal */
.quick-templates-container {
    max-height: 70vh;
    overflow-y: auto;
}

.template-description {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.quick-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-template-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.template-icon {
    margin-bottom: 0.8rem;
}

.template-icon i {
    font-size: 2rem;
    color: #17a2b8;
}

.quick-template-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.quick-template-card p {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.close-modal-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.close-modal-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Print styles */
@media print {
    .header,
    .footer,
    .modal {
        display: none;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.breathing-countdown {
    display: block;
    color: white;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: 0.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    z-index: 1;
    position: relative;
}

/* --- Enhanced Mobile Optimisation --- */
@media (max-width: 480px) {
    html, body {
        font-size: 15px;
        overflow-x: hidden;
    }
    .header {
        padding: 1.2rem 0;
    }
    .header-content {
        padding: 0 0.5rem;
    }
    .app-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    .app-logo {
        height: 2rem;
    }
    .app-subtitle {
        font-size: 1rem;
    }
    .main-content {
        padding: 1.2rem 0.5rem;
    }
    .welcome-section h2 {
        font-size: 1.3rem;
    }
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    .tool-card {
        padding: 1.2rem 0.7rem;
        border-radius: 14px;
    }
    .tool-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .tool-card h3 {
        font-size: 1.1rem;
    }
    .tool-card p {
        font-size: 0.95rem;
    }
    .modal-content, .modal {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
    .modal-header, .modal-body {
        padding: 1rem !important;
    }
    
    /* Ensure modal body takes full height for sensory activities */
    .modal-body {
        height: calc(100vh - 60px) !important; /* Subtract header height */
        padding: 0 !important;
        overflow-y: auto !important; /* Allow scrolling for menus */
    }
    
    /* When sensory activities are present, make modal body full height and prevent scrolling */
    .modal-body.sensory-activity-modal {
        height: 100vh !important;
        margin-top: -60px !important; /* Compensate for header */
        overflow: hidden !important; /* Prevent scrolling for full-screen activities */
    }
    .footer {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }
    /* Responsive canvas for activities - excluding sensory activities which have their own full-screen rules */
    /* Note: Sensory activities (.sensory-activity-container canvas) have their own full-screen rules above */
    /* Card and grid adjustments for comms, emotions, etc. */
    .card-grid, .emotion-grid, .calming-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .calming-tool-card {
        padding: 0.6rem;
        min-height: 90px;
        gap: 0.6rem;
    }
    
    .calming-tool-card .tool-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .calming-tool-card .tool-icon i {
        font-size: 1.1rem;
    }
    
    .calming-tool-card h3 {
        font-size: 1.2rem;
    }
    
    .calming-tool-card p {
        font-size: 0.85rem;
    }
    
    .calming-tool-card {
        padding: 0.5rem;
        min-height: 80px;
        gap: 0.5rem;
    }
    
    .calming-tool-card .tool-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .calming-tool-card .tool-icon i {
        font-size: 1rem;
    }
    
    .calming-tool-card h3 {
        font-size: 1.1rem;
    }
    
    .calming-tool-card p {
        font-size: 0.8rem;
    }
    
    .plan-step {
        padding: 0.5rem;
        min-height: 80px;
        gap: 0.5rem;
    }
    
    .plan-step .step-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .plan-step .step-icon i {
        font-size: 1rem;
    }
    
    .plan-step .step-content h4 {
        font-size: 1.1rem;
    }
    
    .plan-step .step-content p {
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 0.5rem;
        min-height: 80px;
        gap: 0.5rem;
    }
    
    .service-card .service-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .service-card .service-icon i {
        font-size: 1rem;
    }
    
    .service-card .service-content h4 {
        font-size: 1.1rem;
    }
    
    .service-card .service-content p {
        font-size: 0.8rem;
    }
    
    .contact-item {
        padding: 0.5rem 0.7rem;
        gap: 0.5rem;
    }
    
    .contact-item .contact-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    
    .contact-item .contact-icon i {
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 0.6rem;
        min-height: 90px;
        gap: 0.6rem;
    }
    
    .service-card .service-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .service-card .service-icon i {
        font-size: 1.1rem;
    }
    
    .service-card .service-content h4 {
        font-size: 1.2rem;
    }
    
    .service-card .service-content p {
        font-size: 0.85rem;
    }
    
    .contact-item {
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
    }
    
    .contact-item .contact-icon {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .contact-item .contact-icon i {
        font-size: 0.9rem;
    }
    
    .plan-step {
        padding: 0.6rem;
        min-height: 90px;
        gap: 0.6rem;
    }
    
    .plan-step .step-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .plan-step .step-icon i {
        font-size: 1.1rem;
    }
    
    .plan-step .step-content h4 {
        font-size: 1.2rem;
    }
    
    .plan-step .step-content p {
        font-size: 0.85rem;
    }
    .comm-card, .technique-card, .service-card, .activity-option {
        padding: 1rem 0.5rem;
        border-radius: 10px;
    }
    .activity-controls, .exercise-controls, .plan-controls, .schedule-controls {
        flex-direction: column;
        gap: 0.7rem;
    }
    .control-btn, .exercise-btn, .plan-btn, .schedule-btn, .step-btn, .compassion-btn, .reflection-btn, .add-contact-btn, .edit-btn, .delete-btn, .call-btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 0.7rem 1rem;
        border-radius: 8px;
    }
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    /* Prevent horizontal scroll on all sections */
    .app-container, .main-content, .modal-content, .footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    /* Ensure all text areas and inputs fit */
    textarea, input[type="text"], input[type="number"], input[type="tel"] {
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    /* Make progress bars and sliders touch-friendly */
    .progress-bar, .volume-control input[type="range"], .speed-control input[type="range"] {
        height: 2.2rem;
    }
    /* Modal close button easier to tap */
    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* General: Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
}

.time-display-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}
.loading-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
}
.loading-spinner {
    border: 6px solid #e9ecef;
    border-top: 6px solid #e74c3c;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Install instructions overlay styles */
.install-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.instructions-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    max-width: 95vw;
    width: 370px;
    position: relative;
    text-align: left;
    font-size: 1.1rem;
}
.close-instructions {
    position: absolute;
    top: 0.7rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #e74c3c;
    cursor: pointer;
    line-height: 1;
}
.dismiss-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}
.dismiss-btn:hover {
    background: #c0392b;
}
@media (max-width: 480px) {
    .instructions-content {
        width: 98vw;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        font-size: 1rem;
    }
}

.install-app-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.2em;
    box-shadow: 0 2px 8px rgba(231,76,60,0.08);
    transition: background 0.2s;
    display: block;
    width: 100%;
}
.install-app-btn:hover {
    background: #c0392b;
}

.font-size-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    justify-content: center;
}
.font-size-controls button {
    background: #e9ecef;
    color: #2c3e50;
    border: none;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}
.font-size-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.font-size-controls button:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
}

.font-size-controls-floating {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 11000;
    background: rgba(248,249,250,0.85);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    padding: 0.3rem 0.5rem;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.font-size-controls-floating button {
    background: none;
    color: #2c3e50;
    border: none;
    border-radius: 6px;
    padding: 0.2em 0.7em;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.font-size-controls-floating button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.font-size-controls-floating button:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
}
@media (max-width: 480px) {
    .font-size-controls-floating {
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.2rem 0.3rem;
    }
    .font-size-controls-floating button {
        font-size: 1rem;
        padding: 0.15em 0.5em;
    }
    
    /* Support Messages Mobile Optimisation */
    .support-messages-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .support-message-card {
        padding: 1rem;
    }
    
    .support-message-header h4 {
        font-size: 1rem;
    }
    
    .support-message-content p {
        font-size: 0.9rem;
    }
    
    .support-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .add-support-btn,
    .quick-support-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .support-message-display {
        width: 100vw;
        height: 100vh;
        padding: 1.5rem;
        border-radius: 0;
    }
    
    .support-logo {
        margin-right: 0.5rem;
    }
    
    .phoenix-logo {
        height: 60px;
    }
    
    .support-accreditation {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .accreditation-logo {
        height: 45px;
    }
    
    .support-message-header-display h2 {
        font-size: 1.8rem;
    }
    
    .support-message-body p {
        font-size: 1.5rem;
    }
    
    .user-introduction {
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }
    
    .user-photo {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .user-name-intro {
        font-size: 1.6rem;
    }
    
    .support-message-content {
        font-size: 1.5rem;
    }
    
    .quick-templates-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .quick-template-card {
        padding: 1rem;
    }
    
    .quick-template-card h4 {
        font-size: 1rem;
    }
    
    .quick-template-card p {
        font-size: 0.85rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* ICE Contacts Mobile Optimisation */
    .contact-item {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    .contact-drag-handle {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    
    .contact-info h4 {
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
    
    .contact-priority {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Support Messages Page Mobile Optimisation */
    .support-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .support-intro h3 {
        font-size: 1.2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .support-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .support-info h3 {
        font-size: 1.2rem;
    }
    
    .support-notice {
        padding: 1rem;
    }
    
    .support-notice p {
        font-size: 0.95rem;
    }
    
    .support-notice li {
        font-size: 0.9rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.02em;
}

.activity-header-instructions {
    margin: 0.5rem 0 0 0;
    font-size: 1.08rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.92;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Landing Page Styles */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 1rem;
}

.landing-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.landing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.landing-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.setup-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.avatar-section, .name-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.avatar-section h3, .name-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-section p, .name-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #adb5bd;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.avatar-preview i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #28a745;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* iOS minimum touch target */
    min-width: 44px;
}

.camera-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.camera-btn.skip-btn {
    background: #6c757d;
}

.camera-btn.skip-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-frame {
    width: 250px;
    height: 250px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.capture-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.capture-btn i {
    font-size: 2rem;
    color: #007bff;
}

.capture-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.close-camera-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.close-camera-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.name-input-container {
    display: flex;
    gap: 0.5rem;
}

.name-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.save-name-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* iOS minimum touch target */
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.save-name-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.landing-actions {
    margin-top: 2rem;
    text-align: center;
}

.continue-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.continue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    font-weight: 600;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* iOS minimum touch target */
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.continue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-btn:not(:disabled):hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Welcome Header Styles */
.welcome-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    position: relative;
}

.header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

#header-avatar-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-details h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.user-details p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
    color: white;
}

.edit-profile-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Main App Styles */
.main-app {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-container {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.app-introduction {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.app-introduction .app-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.app-introduction .app-title i {
    color: #e74c3c;
    font-size: 2.2rem;
}

.app-introduction .app-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* iOS minimum touch target */
    min-width: 44px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 0.25rem;
}

.tool-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.tool-card p {
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .landing-header h1 {
        font-size: 1.5rem;
    }
    
    .avatar-preview, .avatar-image {
        width: 100px;
        height: 100px;
    }
    
    .camera-frame {
        width: 200px;
        height: 200px;
    }
    
    .capture-btn {
        width: 70px;
        height: 70px;
        bottom: 1.5rem;
    }
    
    .capture-btn i {
        font-size: 1.5rem;
    }
    
    .close-camera-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .welcome-header {
        padding: 0.75rem;
        flex-shrink: 0;
    }
    
    .header-avatar {
        width: 40px;
        height: 40px;
    }
    
    #header-avatar-icon {
        font-size: 2rem;
    }
    
    .user-details h2 {
        font-size: 1.6rem;
    }
    
    .user-details p {
        font-size: 0.8rem;
    }
    
    .app-container {
        padding: 0.75rem;
        flex: 1;
        min-height: 0;
    }
    
    .app-introduction {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }
    
    .app-introduction .app-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .app-introduction .app-title i {
        font-size: 1.8rem;
    }
    
    .app-introduction .app-description {
        font-size: 1rem;
        max-width: 500px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0.25rem;
        flex: 1;
        min-height: 0;
        align-content: start;
    }
    
    .tool-card {
        padding: 0.6rem;
        min-height: 90px;
        gap: 0.6rem;
    }
    
    .tool-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .tool-icon i {
        font-size: 1.2rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        flex-shrink: 0;
    }
    
    .tool-card p {
        font-size: 0.85rem;
        line-height: 1.3;
        flex: 1;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 1rem;
    }
    
    .avatar-section, .name-section {
        padding: 1rem;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .name-input-container {
        flex-direction: column;
    }
    
    .save-name-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Main app optimisations for very small screens */
    .welcome-header {
        padding: 0.5rem;
        flex-shrink: 0;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
    
    #header-avatar-icon {
        font-size: 1.8rem;
    }
    
    .user-details h2 {
        font-size: 1.4rem;
    }
    
    .user-details p {
        font-size: 0.75rem;
    }
    
    .edit-profile-btn {
        width: 30px;
        height: 30px;
    }
    
    .app-container {
        padding: 0.5rem;
        flex: 1;
        min-height: 0;
    }
    
    .app-introduction {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .app-introduction .app-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .app-introduction .app-title i {
        font-size: 1.6rem;
    }
    
    .app-introduction .app-description {
        font-size: 0.9rem;
        max-width: 400px;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 0.25rem;
        flex: 1;
        min-height: 0;
        align-content: start;
    }
    
    .tool-card {
        padding: 0.5rem;
        border-radius: 8px;
        min-height: 80px;
        gap: 0.5rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .tool-icon i {
        font-size: 1rem;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        flex-shrink: 0;
    }
    
    .tool-card p {
        font-size: 0.8rem;
        line-height: 1.2;
        flex: 1;
        margin: 0;
    }
}

/* Base styles and existing content */

/* Support Message Form Styles */
.support-message-form {
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Delete Confirmation Styles */
.delete-confirmation {
    text-align: center;
    padding: 2rem 0;
}

.warning-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.delete-confirmation h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.delete-confirmation p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Mobile Responsive Form */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .support-message-form {
        padding: 0.5rem 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
}

/* Viewport height responsive adjustments */
@media (max-height: 600px) {
    .welcome-header {
        padding: 0.5rem;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
    
    #header-avatar-icon {
        font-size: 1.8rem;
    }
    
    .user-details h2 {
        font-size: 1.6rem;
    }
    
    .user-details p {
        font-size: 0.9rem;
    }
    
    .app-container {
        padding: 0.5rem;
    }
    
    .app-introduction {
        margin-bottom: 0.5rem;
        padding: 0.4rem 0;
    }
    
    .app-introduction .app-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .app-introduction .app-title i {
        font-size: 1.5rem;
    }
    
    .app-introduction .app-description {
        font-size: 0.85rem;
        max-width: 350px;
    }
    
    .tool-grid {
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .tool-card {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .tool-icon {
        width: 35px;
        height: 35px;
    }
    
    .tool-icon i {
        font-size: 1rem;
    }
    
    .tool-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .tool-card p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-height: 500px) {
    .welcome-header {
        padding: 0.4rem;
    }
    
    .header-avatar {
        width: 30px;
        height: 30px;
    }
    
    #header-avatar-icon {
        font-size: 1.5rem;
    }
    
    .user-details h2 {
        font-size: 1.4rem;
    }
    
    .user-details p {
        font-size: 0.8rem;
    }
    
    .app-container {
        padding: 0.4rem;
    }
    
    .app-introduction {
        margin-bottom: 0.4rem;
        padding: 0.3rem 0;
    }
    
    .app-introduction .app-title {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .app-introduction .app-title i {
        font-size: 1.4rem;
    }
    
    .app-introduction .app-description {
        font-size: 0.8rem;
        max-width: 300px;
    }
    
    .tool-grid {
        gap: 0.4rem;
        margin-top: 0.2rem;
    }
    
    .tool-card {
        padding: 0.4rem;
        min-height: 60px;
    }
    
    .tool-icon {
        width: 30px;
        height: 30px;
    }
    
    .tool-icon i {
        font-size: 0.9rem;
    }
    
    .tool-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }
    
    .tool-card p {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

/* Combined responsive adjustments for small screens with low height */
@media (max-width: 480px) and (max-height: 600px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .tool-card {
        min-height: 65px;
        padding: 0.4rem;
    }
    
    .tool-icon {
        width: 30px;
        height: 30px;
    }
    
    .tool-card h3 {
        font-size: 1rem;
    }
    
    .tool-card p {
        font-size: 0.75rem;
    }
}

/* Hide descriptions when space is very limited */
@media (max-height: 500px) {
    .tool-card p {
        display: none;
    }
    
    .tool-card {
        min-height: 50px;
        padding: 0.3rem;
    }
    
    .tool-icon {
        width: 25px;
        height: 25px;
    }
}

/* Hide descriptions on very small screens */
@media (max-width: 360px) {
    .tool-card p {
        display: none;
    }
    
    .tool-card {
        min-height: 55px;
        padding: 0.4rem;
    }
    
    .tool-icon {
        width: 28px;
        height: 28px;
    }
}

/* Hide descriptions when both width and height are very limited */
@media (max-width: 360px) and (max-height: 500px) {
    .tool-card p {
        display: none;
    }
    
    .tool-card {
        min-height: 40px;
        padding: 0.25rem;
    }
    
    .tool-icon {
        width: 22px;
        height: 22px;
    }
    
    .tool-card h3 {
        font-size: 0.7rem;
    }
}

/* Anxiety App Styles */
.anxiety-breathing-container,
.anxiety-grounding-container,
.anxiety-focus-container,
.anxiety-tracker-container,
.anxiety-calm-activities-container,
.anxiety-emergency-calm-container {
    padding: 1rem;
}

.breathing-intro,
.grounding-intro,
.focus-intro,
.tracker-intro,
.activities-intro,
.emergency-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.breathing-intro h3,
.grounding-intro h3,
.focus-intro h3,
.tracker-intro h3,
.activities-intro h3,
.emergency-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breathing-techniques-grid,
.grounding-techniques-grid,
.focus-tools-grid,
.calm-activities-grid,
.emergency-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.breathing-technique-card,
.grounding-technique-card,
.focus-tool-card,
.calm-activity-card,
.emergency-tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.breathing-technique-card:hover,
.grounding-technique-card:hover,
.focus-tool-card:hover,
.calm-activity-card:hover,
.emergency-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #27ae60;
}

.technique-icon,
.tool-icon,
.activity-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.breathing-technique-card .technique-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.grounding-technique-card .technique-icon {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.focus-tool-card .tool-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.calm-activity-card .activity-icon {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.emergency-tool-card .tool-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.breathing-technique-card h4,
.grounding-technique-card h4,
.focus-tool-card h4,
.calm-activity-card h4,
.emergency-tool-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.breathing-technique-card p,
.grounding-technique-card p,
.focus-tool-card p,
.calm-activity-card p,
.emergency-tool-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.technique-duration,
.tool-duration,
.activity-duration {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Anxiety Tracker Styles */
.tracker-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.tracker-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.anxiety-level-selector {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.anxiety-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.anxiety-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.anxiety-level.selected {
    background: #e8f5e8;
    border: 2px solid #27ae60;
}

.level-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.level-1 { background: #27ae60; }
.level-2 { background: #f39c12; }
.level-3 { background: #e67e22; }
.level-4 { background: #e74c3c; }
.level-5 { background: #8e44ad; }

.anxiety-level span {
    font-size: 0.8rem;
    color: #2c3e50;
    text-align: center;
}

.trigger-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trigger-tag {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.trigger-tag:hover,
.trigger-tag.selected {
    background: #2980b9;
    transform: translateY(-2px);
}

.trigger-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.9rem;
}

.trigger-input:focus {
    outline: none;
    border-color: #3498db;
}

.anxiety-history {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tracker-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.save-entry-btn,
.view-history-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.save-entry-btn:hover,
.view-history-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

/* Emergency Calm Styles */
.emergency-reminder {
    margin-top: 2rem;
}

.reminder-box {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.reminder-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reminder-box p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design for Anxiety Tools */
@media (max-width: 768px) {
    .breathing-techniques-grid,
    .grounding-techniques-grid,
    .focus-tools-grid,
    .calm-activities-grid,
    .emergency-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .anxiety-level-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .anxiety-level {
        min-width: 80px;
    }
    
    .tracker-actions {
        flex-direction: column;
    }
    
    .save-entry-btn,
    .view-history-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .breathing-technique-card,
    .grounding-technique-card,
    .focus-tool-card,
    .calm-activity-card,
    .emergency-tool-card {
        padding: 1rem;
    }
    
    .technique-icon,
    .tool-icon,
    .activity-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .anxiety-level-selector {
        gap: 0.3rem;
    }
    
    .anxiety-level {
        padding: 0.8rem;
    }
    
    .level-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Exercise Circle Styles */
.breathing-circle,
.grounding-circle,
.focus-circle,
.activity-circle,
.emergency-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.5s ease;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.breathing-text,
.grounding-text,
.focus-text,
.activity-text,
.emergency-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.breathing-instructions,
.grounding-instructions,
.focus-instructions,
.activity-instructions,
.emergency-instructions {
    text-align: center;
    margin-bottom: 2rem;
}

.breathing-instructions h3,
.grounding-instructions h3,
.focus-instructions h3,
.activity-instructions h3,
.emergency-instructions h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.breathing-instructions p,
.grounding-instructions p,
.focus-instructions p,
.activity-instructions p,
.emergency-instructions p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
}

.breathing-controls,
.grounding-controls,
.focus-controls,
.activity-controls,
.emergency-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.breathing-btn,
.grounding-btn,
.focus-btn,
.activity-btn,
.emergency-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breathing-btn:hover,
.grounding-btn:hover,
.focus-btn:hover,
.activity-btn:hover,
.emergency-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.breathing-progress,
.grounding-progress,
.focus-progress,
.activity-progress,
.emergency-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* History Entry Styles */
.history-entry {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    min-width: 80px;
}

.entry-level {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    min-width: 60px;
    text-align: center;
}

.entry-triggers {
    color: #2c3e50;
    font-size: 0.9rem;
    flex: 1;
    margin: 0 1rem;
}

/* Responsive Design for Exercise Circles */
@media (max-width: 768px) {
    .breathing-circle,
    .grounding-circle,
    .focus-circle,
    .activity-circle,
    .emergency-circle {
        width: 150px;
        height: 150px;
    }
    
    .breathing-text,
    .grounding-text,
    .focus-text,
    .activity-text,
    .emergency-text {
        font-size: 1.2rem;
    }
    
    .breathing-controls,
    .grounding-controls,
    .focus-controls,
    .activity-controls,
    .emergency-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .breathing-btn,
    .grounding-btn,
    .focus-btn,
    .activity-btn,
    .emergency-btn {
        width: 200px;
        justify-content: center;
    }
    
    .history-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .entry-date,
    .entry-level,
    .entry-triggers {
        min-width: auto;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .breathing-circle,
    .grounding-circle,
    .focus-circle,
    .activity-circle,
    .emergency-circle {
        width: 120px;
        height: 120px;
    }
    
    .breathing-text,
    .grounding-text,
    .focus-text,
    .activity-text,
    .emergency-text {
        font-size: 1rem;
    }
    
    .breathing-btn,
    .grounding-btn,
    .focus-btn,
    .activity-btn,
    .emergency-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Guided Imagery Styles */
.guided-imagery-exercise {
    text-align: center;
}

.imagery-display {
    margin-bottom: 2rem;
}

.imagery-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.imagery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.imagery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.imagery-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.imagery-scenes {
    margin-bottom: 2rem;
}

.imagery-scenes h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.scene-option {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.scene-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scene-option.selected {
    border-color: #27ae60;
    background: #e8f5e8;
}

.scene-option img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.scene-option span {
    display: block;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.imagery-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.imagery-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.imagery-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.imagery-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.imagery-progress {
    text-align: center;
}

/* Audio Activity Styles */
.audio-activity-exercise {
    text-align: center;
}

.audio-display {
    margin-bottom: 2rem;
}

.audio-visualizer {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.audio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: wavePulse 2s infinite;
}

.wave-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.wave-2 {
    width: 80px;
    height: 80px;
    animation-delay: 0.5s;
}

.wave-3 {
    width: 100px;
    height: 100px;
    animation-delay: 1s;
}

@keyframes wavePulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.audio-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

.audio-options {
    margin-bottom: 2rem;
}

.audio-options h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.audio-option {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.audio-option.selected {
    border-color: #27ae60;
    background: #e8f5e8;
}

.audio-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.audio-option span {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.audio-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.audio-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.audio-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.audio-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.audio-progress {
    text-align: center;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .scene-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audio-grid {
        grid-template-columns: 1fr;
    }
    
    .imagery-controls,
    .audio-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .imagery-btn,
    .audio-btn {
        width: 200px;
        justify-content: center;
    }
    
    .audio-visualizer {
        width: 150px;
        height: 150px;
    }
    
    .wave-1 { width: 45px; height: 45px; }
    .wave-2 { width: 60px; height: 60px; }
    .wave-3 { width: 75px; height: 75px; }
}

@media (max-width: 480px) {
    .scene-grid {
        grid-template-columns: 1fr;
    }
    
    .imagery-btn,
    .audio-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .audio-visualizer {
        width: 120px;
        height: 120px;
    }
    
    .wave-1 { width: 35px; height: 35px; }
    .wave-2 { width: 45px; height: 45px; }
    .wave-3 { width: 55px; height: 55px; }
    
    .audio-option {
        padding: 0.8rem;
    }
    
    .audio-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ===== WELLBEING APP STYLES ===== */

/* Wellbeing Exercises */
.wellbeing-exercises-container {
    padding: 1rem;
}

.exercises-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.exercises-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.exercises-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.exercise-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #27ae60;
}

.exercise-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.exercise-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.exercise-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exercise-duration {
    background: #e8f5e8;
    color: #27ae60;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Mood Tracker */
.wellbeing-mood-tracker-container {
    padding: 1rem;
}

.mood-tracker-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.mood-tracker-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mood-tracker-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.mood-section {
    margin-bottom: 2rem;
}

.mood-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.mood-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
}

.mood-option {
    background: white;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mood-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mood-option.selected {
    border-color: #27ae60;
    background: #e8f5e8;
}

.mood-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.mood-icon i {
    font-size: 2rem;
}

/* Mood-specific colors */
.mood-option[onclick*="excellent"] .mood-icon i {
    color: #f1c40f; /* Yellow */
}

.mood-option[onclick*="good"] .mood-icon i {
    color: #f39c12; /* Deep Yellow */
}

.mood-option[onclick*="okay"] .mood-icon i {
    color: #e67e22; /* Orange */
}

.mood-option[onclick*="low"] .mood-icon i {
    color: #d35400; /* Deep Orange */
}

.mood-option[onclick*="struggling"] .mood-icon i {
    color: #e74c3c; /* Red */
}

/* Selected state colors */
.mood-option.selected[onclick*="excellent"] .mood-icon i {
    color: #f1c40f;
}

.mood-option.selected[onclick*="good"] .mood-icon i {
    color: #f39c12;
}

.mood-option.selected[onclick*="okay"] .mood-icon i {
    color: #e67e22;
}

.mood-option.selected[onclick*="low"] .mood-icon i {
    color: #d35400;
}

.mood-option.selected[onclick*="struggling"] .mood-icon i {
    color: #e74c3c;
}

.mood-option span {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.mood-notes {
    margin-bottom: 2rem;
}

.mood-notes h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.mood-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
}

.mood-notes textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.mood-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.mood-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.mood-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.mood-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.mood-summary h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.mood-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* Gratitude Journal */
.wellbeing-gratitude-container {
    padding: 1rem;
}

.gratitude-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.gratitude-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.gratitude-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.gratitude-entry {
    margin-bottom: 2rem;
}

.gratitude-entry h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.gratitude-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.prompt-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.prompt-item:hover {
    background: #e8f5e8;
    border-color: #27ae60;
}

.prompt-item i {
    color: #27ae60;
    font-size: 1rem;
}

.prompt-item span {
    color: #2c3e50;
    font-size: 0.9rem;
}

#gratitude-text {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#gratitude-text:focus {
    outline: none;
    border-color: #27ae60;
}

.gratitude-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gratitude-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.gratitude-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
}

.gratitude-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.gratitude-summary h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.gratitude-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Self-Care Activities */
.wellbeing-selfcare-container {
    padding: 1rem;
}

.selfcare-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.selfcare-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.selfcare-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.selfcare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.selfcare-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.selfcare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.selfcare-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.selfcare-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.selfcare-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.selfcare-duration {
    background: #fdf2f2;
    color: #e74c3c;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.selfcare-streak {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.selfcare-streak h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.streak-display {
    margin-bottom: 1rem;
}

.streak-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.streak-label {
    color: #7f8c8d;
    font-size: 1rem;
}

.selfcare-streak p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Mindfulness Practices */
.wellbeing-mindfulness-container {
    padding: 1rem;
}

.mindfulness-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.mindfulness-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mindfulness-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.mindfulness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mindfulness-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mindfulness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #9b59b6;
}

.mindfulness-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.mindfulness-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mindfulness-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mindfulness-duration {
    background: #f4f1f8;
    color: #9b59b6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Goal Setting */
.wellbeing-goals-container {
    padding: 1rem;
}

.goals-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.goals-intro h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.goals-intro p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.goals-section {
    margin-bottom: 2rem;
}

.goals-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.goal-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.goal-form input,
.goal-form select,
.goal-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.goal-form input:focus,
.goal-form select:focus,
.goal-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.goal-form textarea {
    min-height: 100px;
    resize: vertical;
}

.goal-timeline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.goal-timeline label {
    color: #2c3e50;
    font-weight: 500;
    min-width: 80px;
}

.goal-timeline select {
    flex: 1;
}

.goal-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

.goal-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

.goals-list {
    margin-bottom: 2rem;
}

.goals-list h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.goals-empty {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.goals-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.goal-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.goal-item.completed {
    border-left-color: #27ae60;
    opacity: 0.8;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.goal-category {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.goal-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.goal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.goal-timeline {
    color: #3498db;
    font-weight: 500;
}

.goal-progress {
    color: #27ae60;
    font-weight: 500;
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goal-action-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.goal-action-btn:hover {
    background: #3498db;
    color: white;
}

.goal-action-btn.delete:hover {
    background: #e74c3c;
}

.goal-completed {
    color: #27ae60;
    font-weight: 500;
    font-size: 0.9rem;
}

.goals-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.goals-summary h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.goals-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Exercise Session Styles */
.wellbeing-exercise-session,
.wellbeing-selfcare-session,
.wellbeing-mindfulness-session {
    text-align: center;
}

.exercise-display,
.selfcare-display,
.mindfulness-display {
    margin-bottom: 2rem;
}

.exercise-circle,
.selfcare-circle,
.mindfulness-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.selfcare-circle {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.mindfulness-circle {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

.exercise-text,
.selfcare-text,
.mindfulness-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.exercise-instructions,
.selfcare-instructions,
.mindfulness-instructions {
    margin-bottom: 2rem;
}

.exercise-instructions h3,
.selfcare-instructions h3,
.mindfulness-instructions h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.exercise-instructions p,
.selfcare-instructions p,
.mindfulness-instructions p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.exercise-controls,
.selfcare-controls,
.mindfulness-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.exercise-btn,
.selfcare-btn,
.mindfulness-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.selfcare-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.mindfulness-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.exercise-btn:hover,
.selfcare-btn:hover,
.mindfulness-btn:hover {
    transform: translateY(-2px);
}

.exercise-progress,
.selfcare-progress,
.mindfulness-progress {
    text-align: center;
}

/* History Styles */
.mood-history-container,
.gratitude-history-container {
    padding: 1rem;
}

.mood-history-container h3,
.gratitude-history-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mood-history-list,
.gratitude-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.mood-history-entry,
.gratitude-history-entry {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #27ae60;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.entry-mood {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mood-icon {
    font-size: 1.2rem;
}

.mood-icon i {
    font-size: 1.2rem;
}

/* Mood history colors */
.mood-history-entry .entry-mood[data-mood="excellent"] .mood-icon i {
    color: #f1c40f; /* Yellow */
}

.mood-history-entry .entry-mood[data-mood="good"] .mood-icon i {
    color: #f39c12; /* Deep Yellow */
}

.mood-history-entry .entry-mood[data-mood="okay"] .mood-icon i {
    color: #e67e22; /* Orange */
}

.mood-history-entry .entry-mood[data-mood="low"] .mood-icon i {
    color: #d35400; /* Deep Orange */
}

.mood-history-entry .entry-mood[data-mood="struggling"] .mood-icon i {
    color: #e74c3c; /* Red */
}

.mood-label {
    color: #2c3e50;
    font-weight: 500;
}

.entry-date {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.entry-notes,
.entry-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.entry-word-count {
    color: #27ae60;
    font-size: 0.8rem;
    font-weight: 500;
}

.mood-history-empty,
.gratitude-history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.mood-history-empty i,
.gratitude-history-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.mood-history-empty h3,
.gratitude-history-empty h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Responsive Design for Wellbeing App */
@media (max-width: 768px) {
    .exercises-grid,
    .selfcare-grid,
    .mindfulness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-selector {
        grid-template-columns: repeat(3, 1fr);
        max-width: 400px;
    }
    
    .mood-option {
        min-height: 70px;
        padding: 0.6rem;
    }
    
    .gratitude-prompts {
        grid-template-columns: 1fr;
    }
    
    .mood-stats,
    .gratitude-stats,
    .goals-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .exercise-controls,
    .selfcare-controls,
    .mindfulness-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .exercise-btn,
    .selfcare-btn,
    .mindfulness-btn {
        width: 200px;
        justify-content: center;
    }
    
    .exercise-circle,
    .selfcare-circle,
    .mindfulness-circle {
        width: 150px;
        height: 150px;
    }
    
    .goal-actions {
        flex-direction: column;
    }
    
    .goal-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .exercises-grid,
    .selfcare-grid,
    .mindfulness-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-selector {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        gap: 0.6rem;
    }
    
    .mood-option {
        min-height: 60px;
        padding: 0.5rem;
    }
    
    .mood-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .mood-icon i {
        font-size: 1.5rem;
    }
    
    .mood-option span {
        font-size: 0.8rem;
    }
    
    .exercise-btn,
    .selfcare-btn,
    .mindfulness-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .exercise-circle,
    .selfcare-circle,
    .mindfulness-circle {
        width: 120px;
        height: 120px;
    }
    
    .exercise-text,
    .selfcare-text,
    .mindfulness-text {
        font-size: 1rem;
    }
    
    .goal-form {
        padding: 1rem;
    }
    
    .goal-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .goal-timeline label {
        min-width: auto;
    }
}

/* Mobile Navigation Fixes for Anxiety and Wellbeing Apps */

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
    /* Tool Cards - Better Touch Targets */
    .tool-card,
    .breathing-technique-card,
    .grounding-technique-card,
    .focus-tool-card,
    .calm-activity-card,
    .emergency-tool-card,
    .exercise-card,
    .selfcare-card,
    .mindfulness-card {
        min-height: 80px;
        padding: 1rem;
        margin-bottom: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Buttons - Larger Touch Targets */
    .tool-card button,
    .breathing-btn,
    .grounding-btn,
    .focus-btn,
    .calm-btn,
    .emergency-btn,
    .exercise-btn,
    .selfcare-btn,
    .mindfulness-btn,
    .mood-btn,
    .gratitude-btn,
    .goal-btn,
    .close-btn,
    .modal-close-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Navigation Buttons */
    .back-btn,
    .home-btn,
    .switch-app-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        margin: 0.5rem;
        touch-action: manipulation;
    }
    
    /* Form Elements */
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        min-height: 44px;
        padding: 0.8rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    /* Sliders and Range Inputs */
    input[type="range"] {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Anxiety Level Selector */
    .anxiety-level {
        min-width: 60px;
        min-height: 60px;
        padding: 0.8rem;
        margin: 0.3rem;
        touch-action: manipulation;
    }
    
    .level-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Mood Selector */
    .mood-option {
        min-height: 80px;
        padding: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Exercise Controls */
    .exercise-controls,
    .breathing-controls,
    .grounding-controls,
    .focus-controls,
    .calm-controls,
    .emergency-controls {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .exercise-controls button,
    .breathing-controls button,
    .grounding-controls button,
    .focus-controls button,
    .calm-controls button,
    .emergency-controls button {
        min-width: 120px;
        min-height: 44px;
        margin: 0.5rem;
    }
    
    /* Progress Bars */
    .progress-bar {
        height: 8px;
        min-height: 8px;
    }
    
    /* Audio Controls */
    .audio-controls,
    .track-controls {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .track-play-button,
    .track-mute-button {
        min-width: 44px;
        min-height: 44px;
        padding: 0.8rem;
    }
    
    /* Support Message Cards */
    .support-message-card {
        min-height: 80px;
        padding: 1rem;
        margin-bottom: 1rem;
        touch-action: manipulation;
    }
    
    .support-message-actions button {
        min-height: 44px;
        min-width: 80px;
        padding: 0.8rem 1rem;
        margin: 0.3rem;
    }
    
    /* Contact Items */
    .contact-item {
        min-height: 80px;
        padding: 1rem;
        margin-bottom: 1rem;
        touch-action: manipulation;
    }
    
    .contact-actions button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem;
        margin: 0.3rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Even Larger Touch Targets */
    .tool-card,
    .breathing-technique-card,
    .grounding-technique-card,
    .focus-tool-card,
    .calm-activity-card,
    .emergency-tool-card,
    .exercise-card,
    .selfcare-card,
    .mindfulness-card {
        min-height: 90px;
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    /* Larger Buttons */
    .tool-card button,
    .breathing-btn,
    .grounding-btn,
    .focus-btn,
    .calm-btn,
    .emergency-btn,
    .exercise-btn,
    .selfcare-btn,
    .mindfulness-btn,
    .mood-btn,
    .gratitude-btn,
    .goal-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Modal Adjustments */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.2rem;
    }
    
    .close-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    /* Anxiety Levels */
    .anxiety-level {
        min-width: 70px;
        min-height: 70px;
        padding: 1rem;
    }
    
    .level-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Mood Options */
    .mood-option {
        min-height: 90px;
        padding: 1.2rem;
    }
    
    /* Form Elements */
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        min-height: 48px;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Exercise Controls */
    .exercise-controls button,
    .breathing-controls button,
    .grounding-controls button,
    .focus-controls button,
    .calm-controls button,
    .emergency-controls button {
        min-width: 140px;
        min-height: 48px;
        margin: 0.8rem;
    }
    
    /* Support Message Actions */
    .support-message-actions button {
        min-height: 48px;
        min-width: 90px;
        padding: 1rem 1.2rem;
        margin: 0.5rem;
    }
    
    /* Contact Actions */
    .contact-actions button {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem;
        margin: 0.5rem;
    }
}

/* Prevent Zoom on Input Focus */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Enhanced Touch Feedback */
@media (max-width: 768px) {
    .tool-card:active,
    .breathing-technique-card:active,
    .grounding-technique-card:active,
    .focus-tool-card:active,
    .calm-activity-card:active,
    .emergency-tool-card:active,
    .exercise-card:active,
    .selfcare-card:active,
    .mindfulness-card:active,
    .mood-option:active,
    .anxiety-level:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .tool-card button:active,
    .breathing-btn:active,
    .grounding-btn:active,
    .focus-btn:active,
    .calm-btn:active,
    .emergency-btn:active,
    .exercise-btn:active,
    .selfcare-btn:active,
    .mindfulness-btn:active,
    .mood-btn:active,
    .gratitude-btn:active,
    .goal-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Fix for iOS Safari Issues */
@supports (-webkit-touch-callout: none) {
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    .tool-card,
    .breathing-technique-card,
    .grounding-technique-card,
    .focus-tool-card,
    .calm-activity-card,
    .emergency-tool-card,
    .exercise-card,
    .selfcare-card,
    .mindfulness-card {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
}

/* Prevent Double-tap Zoom */
@media (max-width: 768px) {
    * {
        touch-action: manipulation;
    }
    
    /* Allow scrolling where needed */
    .modal-content,
    .mood-history-list,
    .gratitude-history-list,
    .goals-list {
        touch-action: pan-y;
    }
}

/* Reminder System Styles */

/* Reminder Container */
.reminder-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Reminder Bar (Compact) */
.reminder-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    overflow: hidden;
    pointer-events: auto;
    animation: slideInUp 0.5s ease-out, pulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 50px;
}

.reminder-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.reminder-bar.missed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    animation: slideInUp 0.5s ease-out, pulse 1.5s infinite;
}

.reminder-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.reminder-bar-content i {
    font-size: 1.5rem;
    color: white;
    width: 24px;
    text-align: center;
}

.reminder-bar-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.reminder-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminder-bar-action {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reminder-bar-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reminder-bar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reminder-bar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Reminder Notification (Expanded) */
.reminder-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    overflow: hidden;
    pointer-events: auto;
    animation: slideInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Reminder Items */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.reminder-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.reminder-item.missed {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.reminder-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reminder-item-header i {
    color: white;
    font-size: 1.2rem;
}

.reminder-item-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.reminder-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.reminder-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Reminder Settings */
.reminder-settings {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reminder-settings-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Pause Reminders */
.pause-reminders-container {
    padding: 1rem;
}

.pause-reminders-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pause-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pause-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pause-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.pause-option i {
    font-size: 1.5rem;
    color: #667eea;
}

.pause-option span {
    color: #2c3e50;
    font-weight: 500;
}

.pause-actions {
    text-align: center;
}

/* Reminder Settings */
.reminder-settings-container {
    padding: 1rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

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

.setting-item span {
    color: #2c3e50;
    font-size: 0.95rem;
}

.reminder-setting {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.reminder-setting-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.reminder-setting-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.reminder-setting-header span {
    color: #2c3e50;
    font-weight: 500;
}

.reminder-setting-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reminder-setting-controls input[type="time"] {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

.settings-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Reminder Opt-in */
.reminder-opt-in {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.reminder-opt-in:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.reminder-opt-in-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reminder-opt-in-content i {
    font-size: 1.5rem;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.reminder-opt-in-text {
    flex: 1;
    min-width: 200px;
}

.reminder-opt-in-text h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.reminder-opt-in-text p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.reminder-opt-in-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.reminder-opt-in-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reminder-opt-in-btn i {
    font-size: 0.9rem;
}

/* Responsive Design for Reminder Opt-in */
@media (max-width: 768px) {
    .reminder-opt-in {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .reminder-opt-in-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reminder-opt-in-text {
        min-width: auto;
    }
    
    .reminder-opt-in-text h4 {
        font-size: 1rem;
    }
    
    .reminder-opt-in-text p {
        font-size: 0.85rem;
    }
    
    .reminder-opt-in-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

.reminder-notification.missed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Reminder Header */
.reminder-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reminder-header i {
    font-size: 1.5rem;
    color: white;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.reminder-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.reminder-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reminder-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Reminder Content */
.reminder-content {
    padding: 20px;
}

.reminder-content p {
    color: white;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Reminder Actions */
.reminder-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reminder-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.reminder-action-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.reminder-action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reminder-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reminder-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.reminder-action-btn i {
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.reminder-notification.fade-out {
    animation: slideOutRight 0.5s ease-in forwards;
}

/* Pulse animation for missed reminders */
.reminder-notification.missed {
    animation: slideInRight 0.5s ease-out, pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reminder-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .reminder-bar {
        margin-bottom: 8px;
        border-radius: 8px;
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .reminder-bar-content {
        gap: 12px;
    }
    
    .reminder-bar-content i {
        font-size: 1.3rem;
        width: 20px;
    }
    
    .reminder-bar-text {
        font-size: 1rem;
    }
    
    .reminder-bar-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .reminder-notification {
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .reminder-header {
        padding: 12px 15px;
    }
    
    .reminder-header h3 {
        font-size: 1rem;
    }
    
    .reminder-content {
        padding: 15px;
    }
    
    .reminder-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .reminder-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .reminder-action-btn {
        min-width: auto;
        width: 100%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .reminder-container {
        bottom: 5px;
        right: 5px;
        left: 5px;
    }
    
    .reminder-bar {
        margin-bottom: 6px;
        border-radius: 6px;
        padding: 8px 12px;
        min-height: 45px;
    }
    
    .reminder-bar-content {
        gap: 10px;
    }
    
    .reminder-bar-content i {
        font-size: 1.2rem;
        width: 18px;
    }
    
    .reminder-bar-text {
        font-size: 0.95rem;
    }
    
    .reminder-bar-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .reminder-notification {
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .reminder-header {
        padding: 10px 12px;
    }
    
    .reminder-header i {
        font-size: 1.3rem;
        margin-right: 10px;
    }
    
    .reminder-header h3 {
        font-size: 0.95rem;
    }
    
    .reminder-content {
        padding: 12px;
    }
    
    .reminder-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .reminder-action-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .reminder-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .reminder-notification {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .reminder-notification.missed {
        background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .reminder-notification {
        border: 2px solid white;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .reminder-action-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reminder-notification {
        animation: fadeIn 0.3s ease-out;
    }
    
    .reminder-notification.fade-out {
        animation: fadeOut 0.3s ease-in forwards;
    }
    
    .reminder-notification.missed {
        animation: fadeIn 0.3s ease-out;
    }
    
    .reminder-action-btn:hover {
        transform: none;
    }
}

/* Reminder Settings Panel (for future use) */
.reminder-settings-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.reminder-settings-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.reminder-settings-header i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 12px;
}

.reminder-settings-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.reminder-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

.reminder-setting-item:last-child {
    border-bottom: none;
}

.reminder-setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminder-setting-label i {
    color: #667eea;
    width: 20px;
}

.reminder-setting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminder-time-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.reminder-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reminder-toggle.active {
    background: #667eea;
}

.reminder-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.reminder-toggle.active::after {
    transform: translateX(26px);
}
  