:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #1f2937;
    --border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --card-bg: rgba(31, 41, 55, 0.95);
    --text: #f9fafb;
    --border: rgba(75, 85, 99, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'SF Pro Display', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    transition: all 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform;
}

.card-enter {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: cardEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Success Animations */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.6s ease-out;
}

/* Motivational Gradients */
.goal-lose-weight { --primary: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.goal-gain-muscle { --primary: linear-gradient(135deg, #4834d4, #686de0); }
.goal-get-stronger { --primary: linear-gradient(135deg, #ff9ff3, #f368e0); }
.goal-endurance { --primary: linear-gradient(135deg, #00d2d3, #54a0ff); }

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transform: translateZ(0);
    will-change: transform;
}

.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }

.btn-secondary { background: var(--secondary); }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #333; }

.btn-link {
    background: none;
    color: #667eea;
    text-decoration: underline;
    font-size: 14px;
    padding: 8px;
    margin: 8px 0;
}

/* Forms */
.form-group {
    margin: 16px 0;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control:valid {
    border-color: #10b981;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.form-label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 4px;
    height: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 80px;
    min-height: 70px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-item:active {
    transform: scale(0.95);
    background: rgba(102, 126, 234, 0.2);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.p-0 { padding: 0; }

/* Theme Toggle */


/* Quick Actions */
.quick-actions {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.section {
    margin: 24px 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.input-group {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.measurement-inputs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

/* Measurements Grid */
.measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.measurement-box {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.measurement-box:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.measurement-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.measurement-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.measurement-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.measurement-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #10b981;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.measurement-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.measurement-history {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.measurement-history.changed {
    color: #10b981;
    font-weight: 600;
}

.measurement-history.increased::before {
    content: '↗ ';
    color: #10b981;
}

.measurement-history.decreased::before {
    content: '↘ ';
    color: #ef4444;
}

/* Enhanced Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    animation: pulse-scale 1.5s ease-in-out infinite;
    position: relative;
}

.pulse-loader::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    animation: pulse-ring 1.5s ease-in-out infinite;
}

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

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.loading-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    max-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

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

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

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid #667eea;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast-show {
    transform: translateX(0);
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: #3b82f6; }

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Onboarding */
.onboarding-tooltip {
    position: fixed;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 280px;
    border: 2px solid #667eea;
}

.tooltip-content h3 {
    margin: 0 0 8px;
    color: #667eea;
}

.tooltip-content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.4;
}

.tooltip-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-skip, .btn-next {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-skip {
    background: var(--border);
    color: var(--text);
}

.btn-next {
    background: #667eea;
    color: white;
}

.tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #667eea;
}

.tooltip-above .tooltip-arrow {
    top: -8px;
    bottom: auto;
    border-top: none;
    border-bottom: 8px solid #667eea;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

/* Exercise Completion */
.exercise-completed {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    transform: scale(1.02);
    animation: completionPulse 0.6s ease;
}

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

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(720deg);
        opacity: 0;
    }
}

/* Workout Celebration */
.workout-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.celebration-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

.celebration-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.celebration-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

/* Chat Messages */
.message {
    margin: 16px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.message-show {
    opacity: 1;
    transform: translateY(0);
}

.message-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-ai .message-content {
    flex-direction: row;
}

.message-user .message-content {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.message-user .message-avatar {
    background: var(--secondary);
}

.message-bubble {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 12px 16px;
    max-width: 70%;
    border: 1px solid var(--border);
}

.message-user .message-bubble {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.quick-response-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 4px;
    background: var(--border);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-response-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Weekly Plan */
.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-progress {
    margin: 12px 0;
}

.plan-days {
    display: grid;
    gap: 16px;
}

.plan-day {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.plan-day.today {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.plan-day.completed {
    background: linear-gradient(135deg, #10b98120, #05966920);
    border-color: #10b981;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.day-type {
    font-size: 12px;
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
}

.rest-day {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

.rest-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.workout-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.workout-info span {
    padding: 4px 8px;
    background: var(--border);
    border-radius: 8px;
}

.completed-badge {
    background: #10b981;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.plan-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Rest Timer */
.rest-timer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 10000;
    border: 3px solid #667eea;
    min-width: 200px;
}

.rest-timer.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.rest-timer.warning {
    border-color: #f59e0b;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) rotate(2deg); }
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 16px;
}

.timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.timer-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
    .container { 
        padding: 12px 12px 100px 12px; 
        max-width: 100vw;
    }
    .card { 
        padding: 18px; 
        margin: 12px 0; 
        border-radius: 16px;
    }
    .stats-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
    }
    .input-group, .measurement-inputs { 
        flex-direction: column; 
        gap: 12px;
    }
    .toast { 
        right: 8px; 
        left: 8px; 
        max-width: none;
        border-radius: 8px;
    }
    .btn {
        padding: 16px;
        font-size: 16px;
        min-height: 48px;
        touch-action: manipulation;
    }
    .nav-item {
        min-width: 60px;
        min-height: 60px;
        padding: 12px 8px;
    }
    .nav-icon {
        font-size: 20px;
    }
    .nav-label {
        font-size: 10px;
    }
    .measurements-grid { 
        grid-template-columns: 1fr; 
        gap: 12px;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .action-card {
        padding: 20px;
        min-height: 80px;
    }
}

@media (max-width: 320px) {
    .container { padding: 8px 8px 90px 8px; }
    .card { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
        --text: #000;
        --card-bg: #fff;
    }
    .btn {
        border: 2px solid #000;
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-item:focus,
.action-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Better touch targets */
.nav-item,
.action-card,
.btn,
.measurement-btn {
    min-height: 44px;
    min-width: 44px;
}

/* Performance optimizations */
.card,
.btn,
.action-card,
.stat-card {
    contain: layout style;
    will-change: transform;
}

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

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Dashboard Styles */
.welcome-card {
    background: var(--primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.welcome-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.welcome-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.next-workout {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next-workout-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.next-workout-info p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.action-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:active {
    transform: scale(0.95);
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.action-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.action-desc {
    font-size: 12px;
    opacity: 0.7;
    color: var(--text);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-date {
    font-size: 12px;
    opacity: 0.6;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, #10b98120, #05966920);
    border: 1px solid #10b981;
}

.achievement-item.locked {
    background: var(--border);
    opacity: 0.5;
}

.achievement-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.achievement-description {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .next-workout {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}