/* Emoji font support for cross-platform compatibility */
.emoji, .btn-sm, button, a { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols', 'Twemoji', sans-serif; }

/* Button icons - ensure visibility */
.btn-sm { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }

/* Make emojis visible on dark colored buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-accent {
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
}
.btn-primary .emoji, .btn-secondary .emoji, .btn-danger .emoji, .btn-accent .emoji,
.btn-primary span, .btn-secondary span, .btn-danger span, .btn-accent span {
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
    font-size: 1.1rem;
}

/* Table action buttons - better emoji visibility */
table .btn-sm { font-size: 0.68rem !important; line-height: 1; min-width: unset !important; min-height: unset !important; height: 24px !important; padding: 0 0.55rem !important; gap: 0.28rem !important; }
table .flex { align-items: center; }
table .btn-sm span, table .btn-sm { 
    filter: none;
}

/* ============================================
   CUSTOM REUSABLE CSS FOR SCHOOL MANAGEMENT SYSTEM
   ============================================ */

/* CSS Variables for Easy Theming */
:root {
    --primary-color: #2E7D52;
    --primary-dark: #1B5E3B;
    --primary-light: #4CAF78;
    --secondary-color: #1C4A31;
    --secondary-dark: #0f3320;
    --accent-color: #F5A623;
    --accent-light: #f7bc52;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    background: var(--bg, #f9fafb);
    min-height: 100vh;
}

/* Typography */
.heading-xl { font-size: 3.5rem; font-weight: 800; line-height: 1.2; }
.heading-lg { font-size: 2.5rem; font-weight: 700; line-height: 1.3; }
.heading-md { font-size: 1.875rem; font-weight: 600; line-height: 1.4; }
.heading-sm { font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.text-gradient { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Buttons */
.btn { display: inline-block; padding: 0.875rem 2rem; font-weight: 600; text-decoration: none; border-radius: 0.5rem; transition: var(--transition); cursor: pointer; border: none; font-size: 1rem; text-align: center; }
.btn-primary { background: var(--primary-color); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--secondary-color); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.125rem; }

/* Cards */
.card { background: var(--bg-white); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.card-icon { width: 4rem; height: 4rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.5rem; }
.card-icon.primary { background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); color: white; }
.card-icon.secondary { background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)); color: white; }
.card-icon.accent { background: linear-gradient(135deg, var(--accent-light), var(--accent-color)); color: white; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Stats */
.stat-card { text-align: center; padding: 2rem; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--primary-color); display: block; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-light); font-size: 1.125rem; }

/* Badges */
.badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 600; }
.badge-primary { background: rgba(124, 58, 237, 0.1); color: var(--primary-color); }
.badge-secondary { background: rgba(16, 185, 129, 0.1); color: var(--secondary-color); }
.badge-accent { background: rgba(245, 158, 11, 0.1); color: var(--accent-color); }

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-light); }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* Button Loading States */
.btn.loading { position: relative; color: transparent; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 1rem; height: 1rem; top: 50%; left: 50%; margin-left: -.5rem; margin-top: -.5rem; border: 2px solid transparent; border-radius: 50%; border-top-color: currentColor; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-primary.loading::after { border-top-color: #fff; }
.btn-outline.loading::after { border-top-color: var(--primary-color); }
.btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* Responsive */
@media (max-width: 768px) {
    .heading-xl { font-size: 2.5rem; }
    .heading-lg { font-size: 2rem; }
    .heading-md { font-size: 1.5rem; }
    .section { padding: 3rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
