/* Enhanced Mobile Dashboard Styles */
:root {
    --bottom-nav-height: 60px;
    --header-height: 60px;
    --primary-color: #6c63ff;
    --primary-light: #a594ff;
    --primary-dark: #4a00e0;
    --secondary-color: #ff6b6b;
    --success-color: #38ef7d;
    --warning-color: #f5af19;
    --danger-color: #f12711;
    --info-color: #00c9ff;
    --bg-gradient-primary: linear-gradient(135deg, #4a00e0, #8e2de2);
    --bg-gradient-secondary: linear-gradient(135deg, #FF512F, #DD2476);
    --bg-gradient-success: linear-gradient(135deg, #11998e, #38ef7d);
    --bg-gradient-warning: linear-gradient(135deg, #f5af19, #f12711);
    --bg-gradient-info: linear-gradient(135deg, #00c9ff, #36d1dc);
    --card-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Header */
.mobile-header {
    height: var(--header-height);
    background: var(--bg-gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: relative;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.header-title {
    display: flex;
    align-items: center;
}

.header-title h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.mobile-logo {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mobile-logo span {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main content area */
.mobile-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    -webkit-overflow-scrolling: touch;
    background-color: #f5f7fa;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.quick-stats::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.quick-stat-item {
    flex: 0 0 auto;
    width: 130px;
    min-width: 130px;
    background: white;
    border-radius: var(--card-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.quick-stat-icon i {
    color: white;
    font-size: 1.25rem;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.25rem 0;
    color: #333;
}

.quick-stat-title {
    font-size: 0.75rem;
    color: #7a7a7a;
    margin: 0;
}

/* User Welcome Card */
.user-welcome-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.user-welcome-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    opacity: 0.1;
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.user-avatar-large span {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.welcome-text h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.welcome-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #7a7a7a;
}

/* Birthday Card */
.birthday-card {
    background: white;
    border-radius: var(--card-radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.birthday-header {
    padding: 1rem;
    background: var(--bg-gradient-info);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.birthday-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.birthday-title i {
    font-size: 1.25rem;
}

.birthday-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.birthday-item {
    display: flex;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-avatar {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #7a7a7a;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.birthday-info {
    flex: 1;
}

.birthday-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.birthday-role {
    margin: 0;
    font-size: 0.75rem;
    color: #7a7a7a;
}

.birthday-cake {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Cards */
.data-snapshot {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

.mobile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-stat-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mobile-stat-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    bottom: -100px;
    right: -70px;
    opacity: 0.05;
    background: #333;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stat-icon i {
    color: white;
    font-size: 1.25rem;
}

.stat-info {
    width: 100%;
    position: relative;
    z-index: 1;
}

.stat-value {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-subtitle {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.stat-title {
    margin: 0;
    font-size: 0.875rem;
    color: #7a7a7a;
    font-weight: 400;
}

.attendance .stat-icon {
    background: var(--bg-gradient-primary);
}

.finance .stat-icon {
    background: var(--bg-gradient-success);
}

.exam .stat-icon {
    background: var(--bg-gradient-warning);
}

.library .stat-icon {
    background: var(--bg-gradient-secondary);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease;
}

.finance .progress-fill {
    background: var(--success-color);
}

.exam .progress-fill {
    background: var(--warning-color);
}

.library .progress-fill {
    background: var(--secondary-color);
}

/* Section Styles */
.mobile-section {
    background: white;
    border-radius: var(--card-radius);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.section-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header-title i {
    color: var(--primary-color);
}

.section-action {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

/* Chart Section */
.chart-container {
    padding: 1rem;
    height: 250px;
    position: relative;
}

/* Tabs */
.tab-navigation {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0.25rem;
    margin: 1rem;
    margin-bottom: 0;
}

.tab-item {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #7a7a7a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-item.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    padding: 0;
    height: 185px;
}

.tab-content.active {
    display: block;
}

/* Activity List */
.mobile-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-activity-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.mobile-activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.activity-icon i {
    color: white;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.activity-detail {
    margin: 0;
    font-size: 0.75rem;
    color: #7a7a7a;
}

.activity-time {
    font-size: 0.6875rem;
    color: #7a7a7a;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Financial summary card */
.financial-summary {
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    gap: 1rem;
}

.financial-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    background: #f5f7fa;
}

.financial-value {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.financial-label {
    font-size: 0.75rem;
    color: #7a7a7a;
    margin: 0;
}

.income .financial-value {
    color: var(--success-color);
}

.expense .financial-value {
    color: var(--danger-color);
}

.balance .financial-value {
    color: var(--primary-color);
}

/* Upcoming Events */
.event-badge {
    display: flex;
    flex-direction: column;
    width: 45px;
    min-width: 45px;
    height: 45px;
    background: #f5f7fa;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.event-badge-month {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: #7a7a7a;
    margin: 0;
}

.event-badge-day {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}