/* Mobile Menu Toggle Button */ .mobile-menu-toggle { position: fixed; top: 20px; left: 20px; z-index: 1002; background: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; display: none; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; width: 48px; height: 48px; justify-content: center; align-items: center; } .mobile-menu-toggle:hover { background: #45a049; transform: scale(1.05); } .mobile-menu-toggle:active { transform: scale(0.95); } /* Loading Indicator */ .loading-indicator { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(42, 52, 65, 0.95); padding: 20px 30px; border-radius: 10px; color: white; z-index: 9999; display: flex; align-items: center; gap: 15px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } .loading-spinner { width: 30px; height: 30px; border: 3px solid rgba(76, 175, 80, 0.3); border-top: 3px solid #4CAF50; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @media (max-width: 768px) { .mobile-menu-toggle { display: flex; } } :root { --primary-color: #4CAF50; --secondary-color: #2196F3; --warning-color: #FF9800; --danger-color: #F44336; --success-color: #4CAF50; --dark-bg: #1e2832; --card-bg: #2a3441; --text-primary: #ffffff; --text-secondary: #b8c5d1; --sidebar-width: 280px; --mobile-sidebar-width: 280px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1e2832 0%, #2a3441 100%); color: var(--text-primary); overflow-x: hidden; } .dashboard-container { display: flex; min-height: 100vh; } /* Sidebar Styles */ .sidebar { width: var(--sidebar-width); background: linear-gradient(180deg, #2a3441 0%, #1e2832 100%); padding: 20px 0; position: fixed; height: 100vh; overflow: hidden; /* Kaydırma kaldırıldı */ z-index: 1000; transform: translateX(0); transition: all 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1); } .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .logo { display: flex; align-items: center; gap: 12px; padding: 0 20px; margin-bottom: 20px; } .logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .logo-text { font-size: 24px; font-weight: 700; color: var(--text-primary); } .user-info { padding: 20px; border-bottom: 1px solid rgba(184, 197, 209, 0.1); margin-bottom: 20px; } .user-avatar img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary-color); margin-bottom: 8px; } .greeting { color: var(--text-secondary); font-size: 14px; display: block; margin-bottom: 4px; } .username { color: var(--text-primary); font-weight: 600; font-size: 16px; } .nav-list { list-style: none; padding: 0; } .nav-item { margin-bottom: 4px; } .nav-link { display: flex; align-items: center; gap: 12px; padding: 15px 20px; color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; font-size: 15px; } .nav-link::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--primary-color); transform: scaleY(0); transition: transform 0.3s ease; } .nav-link .icon { font-size: 18px; width: 20px; text-align: center; } .nav-link:hover, .nav-link.active { background: rgba(76, 175, 80, 0.1); color: var(--text-primary); transform: translateX(5px); } .nav-link:hover::before, .nav-link.active::before { transform: scaleY(1); } .logout-link:hover { background: rgba(244, 67, 54, 0.1) !important; color: var(--danger-color) !important; } .logout-link:hover::before { background: var(--danger-color) !important; } /* Main Content */ .main-content { flex: 1; margin-left: var(--sidebar-width); padding: 20px; background: linear-gradient(135deg, #1e2832 0%, #2a3441 100%); min-height: 100vh; } .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 20px; background: rgba(42, 52, 65, 0.5); border-radius: 15px; backdrop-filter: blur(10px); flex-wrap: wrap; gap: 15px; } .page-title { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Stats Cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: linear-gradient(135deg, rgba(42, 52, 65, 0.8), rgba(30, 40, 50, 0.8)); border-radius: 20px; padding: 25px; position: relative; overflow: hidden; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; animation: slideInUp 0.6s ease forwards; opacity: 0; transform: translateY(30px); } .stat-card:nth-child(1) { animation-delay: 0.1s; } .stat-card:nth-child(2) { animation-delay: 0.2s; } .stat-card:nth-child(3) { animation-delay: 0.3s; } .stat-card:nth-child(4) { animation-delay: 0.4s; } @keyframes slideInUp { to { opacity: 1; transform: translateY(0); } } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); } .stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .stat-icon { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; animation: rotate 3s ease-in-out infinite; } @keyframes rotate { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(10deg); } } .stat-icon.users { background: linear-gradient(135deg, #4CAF50, #45a049); } .stat-icon.purchases { background: linear-gradient(135deg, #2196F3, #1976D2); } .stat-icon.checkins { background: linear-gradient(135deg, #FF9800, #F57C00); } .stat-icon.bonus { background: linear-gradient(135deg, #9C27B0, #7B1FA2); } .stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; } .stat-change { font-size: 12px; padding: 4px 8px; border-radius: 20px; font-weight: 600; } .stat-change.positive { background: rgba(76, 175, 80, 0.2); color: var(--success-color); } .stat-change.negative { background: rgba(244, 67, 54, 0.2); color: var(--danger-color); } .progress-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; margin: 10px 0; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 4px; animation: progressFill 2s ease-out forwards; width: 0; } @keyframes progressFill { to { width: var(--progress-width); } } /* Charts Section */ .charts-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; } .chart-card { background: linear-gradient(135deg, rgba(42, 52, 65, 0.8), rgba(30, 40, 50, 0.8)); border-radius: 20px; padding: 25px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } .chart-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); } /* Activity Section */ .activity-section { background: linear-gradient(135deg, rgba(42, 52, 65, 0.8), rgba(30, 40, 50, 0.8)); border-radius: 20px; padding: 25px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } .activity-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); animation: slideInLeft 0.6s ease forwards; opacity: 0; transform: translateX(-30px); } @keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } } .activity-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; animation: bounce 2s infinite; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 60% { transform: translateY(-3px); } } /* Time Stats */ .time-filter-mobile { display: none; flex-direction: column; gap: 10px; margin-bottom: 20px; } .time-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; } .time-stat-card { background: rgba(42, 52, 65, 0.8); padding: 15px; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; } .time-stat-card.active { border-color: var(--primary-color); background: rgba(76, 175, 80, 0.1); } .time-stat-card:hover { transform: translateY(-2px); } .time-stat-value { font-size: 18px; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; } .time-stat-label { font-size: 12px; color: var(--text-secondary); } .real-time-indicator { display: inline-block; width: 8px; height: 8px; background: var(--success-color); border-radius: 50%; animation: blink 1s infinite; margin-right: 5px; } @keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } } /* Debug Info */ .debug-info { background: rgba(255, 255, 255, 0.1); padding: 10px; border-radius: 8px; margin-bottom: 20px; font-size: 12px; color: #fff; } /* Responsive Design */ @media (max-width: 1200px) { .charts-section { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { :root { --sidebar-width: 0; } .sidebar { transform: translateX(-100%); width: var(--mobile-sidebar-width); z-index: 1001; } .sidebar.open { transform: translateX(0); } .sidebar-overlay.active { display: block; } .main-content { margin-left: 0; padding: 15px; } .header { flex-direction: column; text-align: center; padding: 15px; gap: 10px; } .page-title { font-size: 24px; } .stats-grid { grid-template-columns: 1fr; gap: 15px; } .stat-card { padding: 20px; } .stat-value { font-size: 28px; } .time-filter-mobile { display: flex; } .time-stats-grid:not(.time-filter-mobile .time-stats-grid) { display: none; } .chart-card { padding: 20px; } .activity-section { padding: 20px; margin-top: 20px; } .activity-item { padding: 12px 0; } .activity-icon { width: 35px; height: 35px; font-size: 16px; margin-right: 12px; } } @media (max-width: 480px) { .main-content { padding: 10px; } .header { padding: 10px; } .page-title { font-size: 20px; } .time-stats-grid { grid-template-columns: 1fr; } .stat-card { padding: 15px; } .stat-value { font-size: 24px; } .chart-card { padding: 15px; } .activity-section { padding: 15px; } } @media (max-width: 350px) { .sidebar { width: 100vw; } } /* Mobile Menu Toggle Button */ .mobile-menu-toggle { position: fixed; top: 20px; left: 20px; z-index: 1002; background: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; display: none; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; } .mobile-menu-toggle:hover { background: #45a049; transform: scale(1.05); } .mobile-menu-toggle:active { transform: scale(0.95); } @media (max-width: 768px) { .mobile-menu-toggle { display: block; } }