/* Melocotón 3D Dashboard - Hyper Professional Style */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

body {
    background: #eef5fa;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.8) 0%, transparent 20%);
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #1a365d;
}

/* Background floating decorations */
.bg-decoration i {
    position: absolute;
    color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.05));
    z-index: -1;
}
.shape-1 { font-size: 80px; top: 10%; left: 8%; transform: rotate(-15deg); }
.shape-2 { font-size: 60px; bottom: 15%; right: 10%; transform: rotate(20deg); }
.shape-3 { font-size: 40px; top: 70%; left: 15%; }
.shape-4 { font-size: 50px; top: 15%; right: 15%; }

/* The 3D Tablet Shell */
.dashboard-tablet {
    width: 1100px;
    height: 720px;
    background: #e1edf7;
    border-radius: 40px;
    box-shadow: 
        -15px 15px 0px #1f4c87, /* Base 3D Extrusion */
        -20px 30px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    border: 4px solid #ffffff;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Integrated Sidebar */
.sidebar {
    width: 110px;
    background: #1e56a0;
    border-radius: 35px 0 0 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.avatar-holder {
    width: 65px;
    height: 65px;
    background: #ffffff;
    border-radius: 50%;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid #82b1ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e56a0;
    font-size: 1.8rem;
    position: relative;
}

.avatar-holder::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #48bb78;
    border: 2px solid white;
    border-radius: 50%;
    bottom: 2px;
    right: 2px;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.nav-btn {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #82b1ff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn.active {
    background: #e1edf7;
    color: #1e56a0;
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.1), 
        0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-left: 10px; /* Slight offset for 3D effect */
}

.nav-btn:hover:not(.active) {
    color: #ffffff;
    transform: scale(1.1);
}

/* Main Screen View */
.screen {
    flex: 1;
    padding: 30px 40px;
    border-radius: 0 35px 35px 0;
    background: #e1edf7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* App Views Toggling */
.view-section {
    display: none;
    flex-direction: column;
    height: 100%;
}
.view-section.active {
    display: flex;
}

/* Media Grid for new sections */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


/* Top Header */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.top-bar h1 {
    font-size: 2.2rem;
    color: #1a365d;
    font-weight: 900;
    margin: 0;
}

.search-area {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 6px 6px 20px;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.05), 
        0 4px 10px rgba(0, 0, 0, 0.03);
    width: 350px;
}

.search-area input {
    border: none;
    outline: none;
    flex: 1;
    color: #4a5568;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
}

.search-area button {
    background: #3182ce;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
    font-size: 1rem;
    transition: 0.2s;
}
.search-area button:hover { transform: scale(1.05); }

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    background: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
}

.notification .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #3182ce;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1.2fr 1fr;
    gap: 25px;
    flex: 1;
}

/* Authentic 3D Skouemorphic Cards */
.card-3d {
    background: #ffffff;
    border-radius: 28px;
    padding: 25px 30px;
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.05),
        -5px -5px 15px rgba(255, 255, 255, 0.8),
        inset 0 0 0 2px rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

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

.card-header h2 {
    font-size: 1.2rem;
    color: #1a365d;
    margin: 0;
    font-weight: 800;
}

.btn-arrow {
    background: #1e56a0;
    color: white;
    border: none;
    border-radius: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(30, 86, 160, 0.3);
    cursor: pointer;
    transition: 0.2s;
}
.btn-arrow:hover { background: #153e75; transform: scale(1.05); }

/* --- Panel 1: Mis Actividades (Spheres) --- */
.activities-row {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    flex: 1;
    align-items: center;
}

.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Advanced 3D Sphere */
.sphere-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}
.sphere-icon:hover { transform: translateY(-5px); }

/* Sphere Light Reflection */
.sphere-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 12px;
    width: 25px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.sphere-red {
    background: radial-gradient(circle at 35% 35%, #f6ad55, #c53030);
    box-shadow: inset -6px -6px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(197, 48, 48, 0.25);
}
.sphere-blue {
    background: radial-gradient(circle at 35% 35%, #63b3ed, #2b6cb0);
    box-shadow: inset -6px -6px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(43, 108, 176, 0.25);
}
.sphere-green {
    background: radial-gradient(circle at 35% 35%, #68d391, #276749);
    box-shadow: inset -6px -6px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(39, 103, 73, 0.25);
}
.sphere-yellow {
    background: radial-gradient(circle at 35% 35%, #fefcbf, #d69e2e);
    box-shadow: inset -6px -6px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(214, 158, 46, 0.25);
}

/* Progress Rings */
.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.progress-ring svg {
    position: absolute;
    top: 0; left: 0;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.progress-ring span {
    font-size: 0.9rem;
    font-weight: 900;
    color: #2d3748;
}

/* --- Panel 2: Últimos Logros (Linear Progress) --- */
.logros-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.logro-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-micro {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.bg-gradient-blue { background: linear-gradient(135deg, #63b3ed, #2b6cb0); }
.bg-gradient-purple { background: linear-gradient(135deg, #b794f4, #6b46c1); }
.bg-gradient-orange { background: linear-gradient(135deg, #fbd38d, #c05621); }

.logro-info { flex: 1; }
.logro-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logro-title i { color: #3182ce; font-size: 1rem; }

.progress-linear {
    height: 10px;
    background: #edf2f7;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.fill { 
    height: 100%; 
    border-radius: 5px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.percent-text {
    font-size: 0.85rem;
    font-weight: 900;
    color: #a0aec0;
    width: 35px;
    text-align: right;
}

/* --- Panel 3: Mi Progreso (Stats 3D) --- */
.arrows-group { display: flex; gap: 8px; }
.btn-arrow-small {
    background: #edf2f7;
    border: none;
    width: 28px; height: 28px;
    border-radius: 8px;
    color: #a0aec0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}
.btn-arrow-small.active {
    background: #1e56a0;
    color: white;
    box-shadow: 0 2px 5px rgba(30, 86, 160, 0.3);
}

.stats-area {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 40px;
    padding-top: 10px;
}

/* 3D Bar Chart */
.bars-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 140px;
    flex: 1;
    padding-bottom: 5px;
    border-bottom: 2px solid #cbd5e0;
    position: relative;
}

.bar-3d {
    flex: 1;
    border-radius: 8px 8px 0 0;
    position: relative;
    box-shadow: 
        inset 4px 0 8px rgba(255, 255, 255, 0.4),
        -4px 0 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    transition: 0.5s;
    cursor: pointer;
}
.bar-3d:hover { opacity: 0.9; }

.floating-icon {
    position: absolute;
    top: -25px;
    font-size: 1.4rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* Custom Line Chart */
.lines-wrapper {
    flex: 1;
    height: 140px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
    position: relative;
}
.lines-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

/* --- Panel 4: Calendario Mágico --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    flex: 1;
    align-content: center;
}

.cal-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #a0aec0;
    margin-bottom: 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4a5568;
    background: #f7fafc;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #edf2f7;
    cursor: pointer;
    position: relative;
}

.day:hover { background: #edf2f7; }

.day.active {
    background: #1e56a0;
    color: white;
    box-shadow: 0 4px 10px rgba(30, 86, 160, 0.3);
}
.day.active::after {
    content: 'Clase';
    position: absolute;
    bottom: -15px;
    font-size: 0.5rem;
    color: #e53e3e;
    font-weight: 900;
}

.day.event-yellow {
    background: #ecc94b;
    color: white;
    box-shadow: 0 4px 10px rgba(236, 201, 75, 0.3);
}

.day.event-green {
    background: #48bb78;
    color: white;
    box-shadow: 0 4px 10px rgba(72, 187, 120, 0.3);
}

.day-icon {
    font-size: 0.9rem;
}
