* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Comic Sans MS', cursive, sans-serif;
            background: linear-gradient(135deg, #ff9a9e, #fecfef, #fecfef, #a8d8ff);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .app-container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .title {
            color: #ff6b9d;
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 10px;
        }
        
        .subtitle {
            color: #666;
            font-size: 1.2em;
        }
        
        .view-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .view-btn {
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            font-family: inherit;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .view-btn.active {
            background: linear-gradient(145deg, #6c5ce7, #a29bfe);
            color: white;
            transform: translateY(-2px);
        }
        
        .view-btn:not(.active) {
            background: #f8f9fa;
            color: #333;
        }
        
        .view-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .student-management {
            background: linear-gradient(145deg, #a8d8ff, #c3eaff);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
        }
        
        .student-controls {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .student-select {
            padding: 12px 20px;
            border: 2px solid #4a90e2;
            border-radius: 25px;
            font-family: inherit;
            font-size: 1.1em;
            background: white;
            min-width: 200px;
        }
        
        .add-student-section {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .student-input {
            padding: 10px 15px;
            border: 2px solid #4a90e2;
            border-radius: 20px;
            font-family: inherit;
            font-size: 1em;
            min-width: 200px;
        }
        
        .add-btn {
            padding: 10px 20px;
            background: linear-gradient(145deg, #00b894, #00cec9);
            color: white;
            border: none;
            border-radius: 20px;
            font-family: inherit;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .add-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .current-student {
            text-align: center;
            font-size: 1.4em;
            color: #4a90e2;
            font-weight: bold;
        }
        
        /* Grid View Styles */
        .students-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            padding: 20px 0;
        }
        
        .student-card {
            background: linear-gradient(145deg, #fff, #f8f9fa);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 3px solid transparent;
        }
        
        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(0,0,0,0.15);
            border-color: #ff6b9d;
        }
        
        .student-card-header {
            margin-bottom: 20px;
        }
        
        .student-card-name {
            font-size: 1.4em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .student-card-stage {
            font-size: 1em;
            color: #4a90e2;
            font-weight: bold;
        }
        
        .student-card-pet {
            font-size: 4em;
            margin: 15px 0;
            animation: gentle-bounce 3s infinite ease-in-out;
        }
        
        @keyframes gentle-bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        
        .student-card-stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
        }
        
        .student-stat {
            text-align: center;
        }
        
        .student-stat-value {
            font-size: 1.5em;
            font-weight: bold;
            color: #333;
        }
        
        .student-stat-label {
            font-size: 0.9em;
            color: #666;
        }
        
        .student-card-progress {
            background: rgba(0,0,0,0.1);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
            margin: 15px 0;
        }
        
        .student-card-progress-fill {
            background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        
        .student-card-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }
        
        .quick-action-btn {
            padding: 8px 15px;
            border: none;
            border-radius: 20px;
            font-family: inherit;
            font-size: 0.9em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .quick-add {
            background: linear-gradient(145deg, #00b894, #00cec9);
            color: white;
        }
        
        .quick-remove {
            background: linear-gradient(145deg, #e17055, #fd79a8);
            color: white;
        }
        
        .quick-action-btn:hover {
            transform: translateY(-2px);
        }
        
        .no-students {
            text-align: center;
            color: #666;
            font-size: 1.3em;
            padding: 60px 20px;
            background: rgba(255,255,255,0.5);
            border-radius: 20px;
            margin: 20px 0;
        }
        
        .no-students-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }
        
        /* Individual View Styles (existing styles) */
        .pet-container {
            background: linear-gradient(145deg, #a8d8ff, #c3eaff);
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .pet-stage {
            font-size: 1.4em;
            color: #4a90e2;
            margin-bottom: 20px;
            font-weight: bold;
        }
        
        .pet {
            font-size: 8em;
            margin: 20px 0;
            animation: bounce 2s infinite ease-in-out;
            filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .pet-image {
            max-width: 150px;
            max-height: 150px;
            width: auto;
            height: auto;
            object-fit: contain;
            animation: bounce 2s infinite ease-in-out;
        }
        
        .pet-emoji {
            font-size: 1em;
            animation: bounce 2s infinite ease-in-out;
        }
        
        .student-card-pet {
            font-size: 4em;
            margin: 15px 0;
            animation: gentle-bounce 3s infinite ease-in-out;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80px;
        }
        
        .student-card-pet .pet-image {
            max-width: 70px;
            max-height: 70px;
            animation: gentle-bounce 3s infinite ease-in-out;
        }
        
        .student-card-pet .pet-emoji {
            font-size: 1em;
            animation: gentle-bounce 3s infinite ease-in-out;
        }
        
        .theme-selector {
            background: rgba(255,255,255,0.7);
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        
        .theme-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 15px;
        }
        
        .theme-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 20px;
            font-family: inherit;
            font-size: 0.9em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            background: linear-gradient(145deg, #74b9ff, #0984e3);
            color: white;
        }
        
        .theme-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        .theme-btn.active {
            background: linear-gradient(145deg, #00b894, #00cec9);
            transform: translateY(-2px);
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .pet-name {
            font-size: 1.8em;
            color: #333;
            margin-bottom: 10px;
        }
        
        .pet-mood {
            font-size: 1.2em;
            color: #666;
            margin-bottom: 20px;
        }
        
        .progress-container {
            background: rgba(255,255,255,0.3);
            border-radius: 15px;
            padding: 15px;
            margin: 20px 0;
        }
        
        .progress-label {
            color: #4a90e2;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .progress-bar {
            background: rgba(255,255,255,0.5);
            height: 20px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        
        .progress-fill {
            background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
            height: 100%;
            border-radius: 10px;
            transition: width 0.5s ease;
            position: relative;
            overflow: hidden;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: linear-gradient(145deg, #ffeaa7, #fab1a0);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .stat-value {
            font-size: 2em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .stat-label {
            color: #666;
            font-size: 1em;
        }
        
        .controls-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .control-section {
            background: rgba(255,255,255,0.7);
            border-radius: 15px;
            padding: 20px;
        }
        
        .control-title {
            color: #333;
            font-size: 1.3em;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .button {
            width: 100%;
            padding: 12px;
            margin: 5px 0;
            border: none;
            border-radius: 25px;
            font-family: inherit;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .teacher-btn {
            background: linear-gradient(145deg, #6c5ce7, #a29bfe);
            color: white;
        }
        
        .teacher-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .remove-btn {
            background: linear-gradient(145deg, #e17055, #fd79a8);
            color: white;
        }
        
        .remove-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .care-btn {
            background: linear-gradient(145deg, #00b894, #00cec9);
            color: white;
        }
        
        .care-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .care-btn:disabled {
            background: #ddd;
            cursor: not-allowed;
            transform: none;
        }
        
        .no-student {
            text-align: center;
            color: #666;
            font-size: 1.2em;
            padding: 40px;
        }
        
        .message {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 25px;
            font-weight: bold;
            color: white;
            opacity: 0;
            transform: translateX(300px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .message.show {
            opacity: 1;
            transform: translateX(0);
        }
        
        .message.success {
            background: linear-gradient(145deg, #00b894, #00cec9);
        }
        
        .message.info {
            background: linear-gradient(145deg, #0984e3, #74b9ff);
        }
        
        .message.warning {
            background: linear-gradient(145deg, #e17055, #fd79a8);
        }
        
        .floating-points {
            position: absolute;
            font-size: 2em;
            font-weight: bold;
            pointer-events: none;
            animation: float-up 2s ease-out forwards;
        }
        
        .floating-points.positive {
            color: #00b894;
        }
        
        .floating-points.negative {
            color: #e17055;
        }
        
        @keyframes float-up {
            0% {
                opacity: 1;
                transform: translateY(0) scale(0.5);
            }
            100% {
                opacity: 0;
                transform: translateY(-100px) scale(1.2);
            }
        }
        
        .hidden {
            display: none !important;
        }
        
        @media (max-width: 600px) {
            .app-container {
                padding: 20px;
            }
            
            .title {
                font-size: 2em;
            }
            
            .pet {
                font-size: 6em;
            }
            
            .student-controls, .add-student-section {
                flex-direction: column;
                align-items: stretch;
            }
            
            .student-select, .student-input {
                min-width: auto;
                width: 100%;
            }
            
            .students-grid {
                grid-template-columns: 1fr;
            }
            
            .view-controls {
                flex-direction: column;
            }
        }