/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f5dc 0%, #e6ddd4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 800px;
    position: relative;
}

/* Mobile Container */
.mobile-container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
}

/* Card Styles */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-container i {
    font-size: 2.5rem;
    color: #8B4513;
}

h2 {
    color: #654321;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

p.secondary {
    color: #999;
    font-size: 0.9rem;
}

p.info {
    color: #8B4513;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F50 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.form-input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-input:focus {
    outline: none;
    border-color: #FF8C00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF8C00;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
}

/* Date Inputs */
.date-inputs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.date-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.date-group label {
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 500;
}

.date-input {
    width: 60px;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.date-input:focus {
    outline: none;
    border-color: #FF8C00;
}

/* Profile Photo */
.profile-photo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 25px auto;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo i {
    font-size: 2rem;
    color: #999;
}

.photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: #FF8C00;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    margin: -20px -20px 20px -20px;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.greeting h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-name {
    color: #FFD700;
}

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

.profile-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
}

.status-indicator.online {
    background: #4CAF50;
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #654321;
}

.premium-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.premium-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.premium-btn {
    background: #654321;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Section */
.section {
    margin: 25px 0;
}

.section h3 {
    color: #654321;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Session Card */
.session-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.session-info h4 {
    color: #654321;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.session-info p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.progress-bar {
    width: 150px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.3s ease;
}

.continue-btn {
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 1.5rem;
    color: #8B4513;
}

.action-btn span {
    color: #654321;
    font-weight: 500;
}

/* Navigation */
.navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #999;
}

.nav-btn.active {
    color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
}

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

.nav-btn span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Jornadas */
.jornadas-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px;
}

.jornada-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.jornada-item.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.jornada-item.locked {
    opacity: 0.6;
    background: #f5f5f5;
}

.jornada-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
}

.jornada-content {
    flex: 1;
}

.jornada-content h3 {
    color: #654321;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.jornada-content p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Chat */
.chat-container {
    height: calc(100% - 160px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.message-avatar {
    width: 35px;
    height: 35px;
    background: #FF8C00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.message-content {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 12px 15px;
    max-width: 70%;
}

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

.user-message .message-content {
    background: #FF8C00;
    color: white;
}

.user-message .message-avatar {
    background: #654321;
}

.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.suggestion-btn {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid #FF8C00;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #FF8C00;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #FF8C00;
    color: white;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.chat-input:focus {
    border-color: #FF8C00;
}

.send-btn {
    width: 45px;
    height: 45px;
    background: #FF8C00;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #e67e00;
    transform: scale(1.05);
}

/* Practices */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
}

.filter-tab {
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab.active {
    background: #FF8C00;
    color: white;
}

.practices-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 100px;
}

.practice-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.practice-card:hover {
    border-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.practice-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.practice-card h3 {
    color: #654321;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.practice-card p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.practice-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.duration, .difficulty {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.practice-btn {
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.practice-btn:hover {
    background: #e67e00;
}

/* Community */
.community-section {
    margin: 25px 0;
    padding-bottom: 20px;
}

.community-section h3 {
    color: #654321;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e0e0e0;
}

.member-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    color: #654321;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.member-info p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.member-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.member-status.online {
    background: #4CAF50;
}

.member-status.offline {
    background: #ccc;
}

.insights-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px;
}

.insight-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

.insight-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
}

.author-info h4 {
    color: #654321;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

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

.insight-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.insight-actions {
    display: flex;
    gap: 20px;
}

.like-btn, .comment-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.like-btn:hover {
    color: #e74c3c;
}

.comment-btn:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .mobile-container {
        border-radius: 15px;
    }
    
    .screen {
        padding: 15px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .header {
        padding: 15px 20px;
        margin: -15px -15px 15px -15px;
    }
}

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

.card, .session-card, .practice-card, .member-item, .insight-card {
    animation: fadeIn 0.5s ease-out;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 15px;
    margin: 10px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

