:root {
    --primary-color: 210 84% 55%; /* #2563EB */
    --primary-light: 210 100% 97%; /* #F0F7FF */
    --secondary-color: 14 100% 57%; /* #FF5722 */
    --success-color: 142 71% 45%; /* #22C55E */
    --warning-color: 38 92% 50%; /* #F59E0B */
    --danger-color: 0 84% 60%; /* #EF4444 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 12% 16%; /* #1F2937 */
    --text-secondary: 210 9% 31%; /* #4B5563 */
    --border: 210 14% 89%; /* #E5E7EB */
    --shadow: 0 0% 0%; /* #000000 */
    --gradient-primary: linear-gradient(135deg, hsl(210 84% 55%) 0%, hsl(210 84% 65%) 100%);
    --gradient-warm: linear-gradient(135deg, hsl(14 100% 57%) 0%, hsl(28 100% 57%) 100%);
}

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

body {
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--text-primary));
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.loading-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container.hidden {
    display: none;
}

/* Header */
.app-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.emergency-btn,
.settings-btn {
    background: hsla(0 0% 100% / 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.emergency-btn:hover,
.settings-btn:hover {
    background: hsla(0 0% 100% / 0.3);
    transform: scale(1.05);
}

.emergency-btn {
    background: var(--gradient-warm);
    box-shadow: 0 4px 12px hsla(var(--danger-color) / 0.3);
}

/* Voice Assistant Section */
.voice-section {
    background: var(--gradient-primary);
    padding: 2rem 1rem;
    color: white;
}

.voice-assistant {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.voice-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    height: 80px;
}

.voice-circle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    animation: wave 1.5s ease-in-out infinite;
}

.voice-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.voice-circle:nth-child(3) {
    animation-delay: 0.6s;
}

.voice-animation.active .voice-circle {
    animation: wave 0.8s ease-in-out infinite;
}

#assistant-greeting {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.voice-btn {
    background: hsla(0 0% 100% / 0.2);
    border: 3px solid white;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    font-family: inherit;
}

.voice-btn:hover {
    background: hsla(0 0% 100% / 0.3);
    transform: scale(1.05);
}

.voice-btn.active {
    background: hsl(var(--danger-color));
    border-color: hsl(var(--danger-color));
    animation: pulse 1s infinite;
}

.voice-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: hsla(0 0% 100% / 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.voice-status.hidden {
    display: none;
}

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

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

.feature-card {
    background: hsl(var(--surface));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.1);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow) / 0.15);
    border-color: hsl(var(--primary-color));
}

.feature-card i {
    font-size: 3rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.feature-card p {
    color: hsl(var(--text-secondary));
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--shadow) / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: hsl(var(--surface));
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px hsla(var(--shadow) / 0.3);
    min-width: 400px;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: hsl(var(--border));
    color: hsl(var(--text-primary));
}

/* Emergency Contacts */
.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.emergency-contact {
    background: var(--gradient-warm);
    border: none;
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.emergency-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px hsla(var(--danger-color) / 0.3);
}

.emergency-contact i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.emergency-contact span {
    font-size: 1rem;
    font-weight: 600;
}

/* Medication List */
.medication-list {
    space-y: 1rem;
    margin-bottom: 1.5rem;
}

.medication-item {
    background: hsl(var(--primary-light));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.medication-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.medication-item p {
    color: hsl(var(--text-secondary));
    margin-bottom: 0.25rem;
}

.add-medication-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
}

.add-medication-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(var(--primary-color) / 0.3);
}

/* Diary Section */
.diary-section {
    text-align: center;
}

.record-btn {
    background: var(--gradient-warm);
    border: none;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px hsla(var(--secondary-color) / 0.3);
}

.diary-entries {
    text-align: right;
}

.diary-entry {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.diary-entry-date {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 0.5rem;
}

.diary-entry-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Prayer Times */
.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.prayer-time {
    background: hsl(var(--primary-light));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.prayer-time h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.prayer-time p {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--primary-color));
}

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

.quran-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quran-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(var(--primary-color) / 0.3);
}

/* Camera Section */
.camera-section {
    text-align: center;
}

.camera-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.camera-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px hsla(var(--primary-color) / 0.3);
}

.photo-preview {
    margin-bottom: 2rem;
}

.photo-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.2);
}

.nutrition-analysis {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: right;
}

.nutrition-analysis h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

/* Settings */
.settings-section {
    space-y: 1.5rem;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.setting-item select,
.setting-item input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: hsl(var(--surface));
}

.emergency-numbers {
    space-y: 0.5rem;
}

.emergency-numbers input {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .modal-content {
        min-width: 300px;
        margin: 1rem;
    }
    
    .emergency-contacts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prayer-times {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-contacts {
        grid-template-columns: 1fr;
    }
    
    .prayer-times {
        grid-template-columns: 1fr;
    }
    
    .quran-section {
        grid-template-columns: 1fr;
    }
}

/* Health Profile Styles */
.modal-content.large {
    min-width: 900px;
    max-width: 95%;
}

.health-tabs {
    display: flex;
    border-bottom: 2px solid hsl(var(--border));
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
    color: hsl(var(--primary-color));
    border-bottom-color: hsl(var(--primary-color));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-item label {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.profile-item input,
.profile-item select,
.profile-item textarea {
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: hsl(var(--surface));
}

.profile-item input:focus,
.profile-item select:focus,
.profile-item textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color) / 0.1);
}

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

.vital-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.vital-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.1);
    border-color: hsl(var(--primary-color));
}

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

.delete-vital-btn {
    background: hsl(var(--danger-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.delete-vital-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px hsla(var(--danger-color) / 0.3);
}

.vital-notes {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    font-style: italic;
    background: hsl(var(--surface));
    padding: 0.5rem;
    border-radius: 6px;
}

.no-vitals,
.no-conditions,
.no-allergies {
    text-align: center;
    color: hsl(var(--text-secondary));
    font-style: italic;
    padding: 2rem;
    background: hsl(var(--background));
    border-radius: 12px;
    border: 2px dashed hsl(var(--border));
}

.vital-name {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.vital-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    margin-bottom: 0.25rem;
}

.vital-time {
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

.conditions-list,
.allergies-list,
.history-list {
    space-y: 1rem;
    margin-bottom: 2rem;
}

.condition-item,
.allergy-item,
.history-item {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.item-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.item-date {
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

.item-description {
    color: hsl(var(--text-secondary));
}

.add-vital-btn,
.add-condition-btn,
.add-allergy-btn,
.add-history-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.add-vital-btn:hover,
.add-condition-btn:hover,
.add-allergy-btn:hover,
.add-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary-color) / 0.3);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.save-profile-btn {
    background: var(--gradient-success);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--success-color) / 0.3);
}

/* Medication Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: hsl(var(--surface));
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.save-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.save-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    color: #6b7280;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.cancel-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

/* Enhanced Medications Management */
.medications-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.medications-actions button {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.medications-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary-color) / 0.3);
}

.add-multiple-medications-btn {
    background: var(--gradient-success) !important;
}

.import-medications-btn {
    background: var(--gradient-warning) !important;
}

.medications-section {
    margin: 2rem 0;
}

.medications-section h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.save-all-medications-btn {
    background: var(--gradient-success) !important;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem !important;
}

/* Enhanced Medication Item */
.medication-item {
    position: relative;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.medication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.1);
    border-color: hsl(var(--primary-color));
}

.medication-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.edit-medication-btn,
.delete-medication-btn {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-secondary));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-medication-btn:hover {
    color: hsl(var(--primary-color));
    background: hsl(var(--primary-light));
    border-color: hsl(var(--primary-color));
    transform: scale(1.1);
}

.delete-medication-btn:hover {
    color: hsl(var(--danger-color));
    background: hsla(var(--danger-color) / 0.1);
    border-color: hsl(var(--danger-color));
    transform: scale(1.1);
}

/* Multiple Medications Form */
.multiple-medications-container {
    max-height: 500px;
    overflow-y: auto;
    margin: 2rem 0;
    padding: 1rem;
    border: 2px dashed hsl(var(--border));
    border-radius: 12px;
    background: hsl(var(--background));
}

.medication-form-item {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.medication-form-item h4 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-medication-form-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: hsl(var(--danger-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-medication-form-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px hsla(var(--danger-color) / 0.3);
}

.multiple-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.add-another-medication-btn,
.remove-last-medication-btn {
    background: hsl(var(--primary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-last-medication-btn {
    background: hsl(var(--text-secondary));
}

.add-another-medication-btn:hover,
.remove-last-medication-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.save-multiple-btn {
    background: var(--gradient-success) !important;
    font-size: 1.1rem;
    padding: 1rem 2rem !important;
}

/* No medications message */
.no-medications {
    text-align: center;
    color: hsl(var(--text-secondary));
    font-style: italic;
    padding: 2rem;
    background: hsl(var(--background));
    border-radius: 12px;
    border: 2px dashed hsl(var(--border));
}

/* Medication status indicators */
.medication-status {
    margin-top: 1rem;
}

.status-active {
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-inactive {
    background: hsl(var(--text-secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Daily Schedule Styles */
.schedule-tabs {
    display: flex;
    border-bottom: 2px solid hsl(var(--border));
    margin-bottom: 2rem;
    overflow-x: auto;
    gap: 0.5rem;
}

.current-time-display {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.current-time {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.next-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.schedule-timeline {
    background: hsl(var(--background));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid hsl(var(--border));
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: hsl(var(--surface));
    border-radius: 12px;
    border-left: 4px solid hsl(var(--primary-color));
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px hsla(var(--shadow) / 0.1);
}

.timeline-item.completed {
    opacity: 0.6;
    border-left-color: hsl(var(--success-color));
}

.timeline-item.overdue {
    border-left-color: hsl(var(--danger-color));
    background: hsla(var(--danger-color) / 0.05);
}

.timeline-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    min-width: 80px;
    margin-left: 1rem;
}

.timeline-icon {
    font-size: 1.5rem;
    margin: 0 1rem;
    color: hsl(var(--primary-color));
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.timeline-actions {
    display: flex;
    gap: 0.5rem;
}

.mark-done-btn,
.snooze-btn {
    background: none;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-secondary));
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-done-btn:hover {
    background: hsl(var(--success-color));
    color: white;
    border-color: hsl(var(--success-color));
}

.snooze-btn:hover {
    background: hsl(var(--warning-color));
    color: white;
    border-color: hsl(var(--warning-color));
}

/* Reminders Categories */
.reminders-categories {
    margin-top: 2rem;
}

.category-section {
    background: hsl(var(--surface));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid hsl(var(--border));
}

.category-section h4 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.reminder-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px hsla(var(--shadow) / 0.1);
}

.reminder-info {
    flex: 1;
}

.reminder-title {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.25rem;
}

.reminder-time {
    color: hsl(var(--primary-color));
    font-weight: 600;
}

.reminder-frequency {
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

.reminder-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-reminder-btn,
.delete-reminder-btn,
.toggle-reminder-btn {
    background: none;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-secondary));
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-reminder-btn:hover {
    background: hsl(var(--primary-color));
    color: white;
    border-color: hsl(var(--primary-color));
}

.delete-reminder-btn:hover {
    background: hsl(var(--danger-color));
    color: white;
    border-color: hsl(var(--danger-color));
}

.toggle-reminder-btn:hover {
    background: hsl(var(--success-color));
    color: white;
    border-color: hsl(var(--success-color));
}

.add-reminder-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.add-reminder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary-color) / 0.3);
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.setting-item {
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: hsl(var(--primary-color));
}

.setting-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--surface));
    font-family: inherit;
    margin-top: 0.5rem;
}

.days-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.days-selection label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.save-settings-btn {
    background: var(--gradient-success);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--success-color) / 0.3);
}

/* Active reminder notification */
.active-reminder-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-warning);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px hsla(var(--warning-color) / 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out, pulse 2s ease-in-out infinite;
}

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

.notification-icon {
    font-size: 2rem;
}

.notification-text h4 {
    margin: 0 0 0.5rem 0;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Memory Exercises Styles */
.memory-tabs {
    display: flex;
    border-bottom: 2px solid hsl(var(--border));
    margin-bottom: 2rem;
    overflow-x: auto;
    gap: 0.5rem;
}

.memory-tabs .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}

.memory-tabs .tab-btn.active,
.memory-tabs .tab-btn:hover {
    color: hsl(var(--primary-color));
    border-bottom-color: hsl(var(--primary-color));
    background: hsl(var(--primary-light));
}

.exercise-section {
    text-align: center;
    padding: 2rem;
}

.exercise-area {
    background: hsl(var(--background));
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid hsl(var(--border));
}

.memory-display {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--surface));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
}

.exercise-instructions {
    text-align: center;
    color: hsl(var(--text-secondary));
}

.exercise-instructions i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary-color));
}

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

.start-exercise-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-exercise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary-color) / 0.3);
}

.exercise-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    min-width: 100px;
}

.exercise-info {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
}

/* Color Grid for Sequence Exercise */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.color-btn {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-btn[data-color="red"] { background: #ff4757; }
.color-btn[data-color="blue"] { background: #3742fa; }
.color-btn[data-color="green"] { background: #2ed573; }
.color-btn[data-color="yellow"] { background: #ffa502; }
.color-btn[data-color="purple"] { background: #a55eea; }
.color-btn[data-color="orange"] { background: #ff6348; }

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-btn.active,
.color-btn.lit {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.8), inset 0 0 20px rgba(255,255,255,0.3);
}

/* Quiz Sections */
.quiz-section {
    background: hsl(var(--background));
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid hsl(var(--border));
}

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

.quiz-option {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quiz-option:hover {
    border-color: hsl(var(--primary-color));
    transform: translateY(-2px);
}

.quiz-option.selected {
    background: hsl(var(--primary-light));
    border-color: hsl(var(--primary-color));
    color: hsl(var(--primary-color));
}

.quiz-option.correct {
    background: var(--gradient-success);
    color: white;
    border-color: hsl(var(--success-color));
}

.quiz-option.incorrect {
    background: var(--gradient-danger);
    color: white;
    border-color: hsl(var(--danger-color));
}

/* Audio Exercise */
.audio-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.audio-btn {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: hsl(var(--text-primary));
}

.audio-btn:hover {
    background: hsl(var(--primary-light));
    border-color: hsl(var(--primary-color));
}

.audio-btn.playing {
    background: var(--gradient-primary);
    color: white;
    animation: pulse 0.5s ease-in-out;
}

.user-sequence {
    margin: 1rem 0;
    min-height: 50px;
    background: hsl(var(--surface));
    border-radius: 8px;
    padding: 1rem;
    border: 2px dashed hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sequence-item {
    background: hsl(var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Visual Exercise */
.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.image-item {
    font-size: 4rem;
    text-align: center;
    padding: 1rem;
    background: hsl(var(--surface));
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
    animation: fadeInScale 0.5s ease-out;
}

.sound-playing {
    font-size: 3rem;
    font-weight: bold;
    color: hsl(var(--primary-color));
    animation: pulse 1s ease-in-out infinite;
}

/* Words Exercise */
.words-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.word-item {
    background: hsl(var(--primary-light));
    color: hsl(var(--primary-color));
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    animation: fadeInScale 0.5s ease-out;
}

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

/* Faces Exercise */
.faces-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.face-item {
    text-align: center;
    background: hsl(var(--surface));
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid hsl(var(--border));
}

.face-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
}

.face-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
}

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

.face-quiz-item {
    text-align: center;
    background: hsl(var(--surface));
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid hsl(var(--border));
}

.face-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.face-option {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.face-option:hover {
    background: hsl(var(--primary-light));
    border-color: hsl(var(--primary-color));
}

.face-option.selected {
    background: hsl(var(--primary-color));
    color: white;
}

/* Action Buttons */
.check-answer-btn,
.reset-sequence-btn {
    background: var(--gradient-success);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0.5rem;
}

.reset-sequence-btn {
    background: var(--gradient-warning);
}

.check-answer-btn:hover,
.reset-sequence-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Result Section */
.result-section {
    background: hsl(var(--background));
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px solid hsl(var(--border));
}

.result-success {
    border-color: hsl(var(--success-color));
    background: hsla(var(--success-color) / 0.1);
}

.result-error {
    border-color: hsl(var(--danger-color));
    background: hsla(var(--danger-color) / 0.1);
}

.result-score {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Memory Progress */
.memory-progress {
    background: hsl(var(--background));
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid hsl(var(--border));
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: hsl(var(--surface));
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
}

.stat-item i {
    font-size: 1.5rem;
    color: hsl(var(--primary-color));
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .memory-tabs {
        flex-direction: column;
    }
    
    .exercise-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }
    
    .color-btn {
        width: 60px;
        height: 60px;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.space-y-1 > * + * { margin-top: 0.5rem; }
.space-y-2 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 1.5rem; }

/* Exercise Styles */
.exercise-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.exercise-tabs .tab-btn {
    background: hsl(var(--background));
    color: hsl(var(--text-secondary));
    border: 2px solid hsl(var(--border));
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.exercise-tabs .tab-btn.active {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

.exercise-intro {
    text-align: center;
    padding: 1rem;
    background: hsl(var(--success) / 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.exercise-intro p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
    margin: 0;
}

.exercise-section {
    padding: 1rem;
}

.exercise-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.exercise-card {
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.exercise-card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--shadow));
}

.exercise-icon {
    width: 60px;
    height: 60px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.exercise-icon i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
}

.exercise-card h4 {
    margin: 0 0 0.5rem 0;
    color: hsl(var(--text-primary));
    font-size: 1.1rem;
}

.exercise-card p {
    margin: 0 0 1rem 0;
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.exercise-tips {
    text-align: right;
    border-top: 1px solid hsl(var(--border));
    padding-top: 0.75rem;
}

.exercise-tips small {
    display: block;
    margin-bottom: 0.25rem;
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

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

.routine-day {
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
}

.routine-day h4 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.routine-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: hsl(var(--card-bg));
    border-radius: 8px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: hsl(var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: hsl(var(--text-primary));
    font-size: 0.9rem;
    line-height: 1.4;
}

.safety-warnings {
    background: hsl(var(--warning) / 0.1);
    border: 2px solid hsl(var(--warning) / 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.safety-warnings h4 {
    color: hsl(var(--warning));
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--text-primary));
    font-size: 0.9rem;
    position: relative;
    padding-right: 1.5rem;
}

.safety-list li:last-child {
    border-bottom: none;
}

.safety-list li::before {
    content: "⚠️";
    position: absolute;
    right: 0;
    color: hsl(var(--warning));
}

.start-exercise-btn {
    background: hsl(var(--success));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-exercise-btn:hover {
    background: hsl(var(--success) / 0.9);
    transform: translateY(-1px);
}

.start-exercise-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .exercise-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .exercise-tabs .tab-btn {
        padding: 0.75rem;
    }
    
    .exercise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .daily-routine {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
