/* Consolidated CSS for School Dashboard */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Global Variables */
:root {
    --primary-color: #3498db;
    /* From main.css */
    --secondary-color: #2ecc71;
    /* From main.css */
    --accent-color: #f39c12;
    /* From main.css */
    --dark-color: #34495e;
    /* From main.css */
    --light-color: #ecf0f1;
    /* From main.css */
    --danger-color: #e74c3c;
    /* From main.css */
    --success-color: #2ecc71;
    /* From main.css */
    --text-color: #333;
    /* From main.css */
    --primary: #007bff;
    /* From inline CSS */
    --danger: #dc3545;
    /* From inline CSS */
    --success: #28a745;
    /* From inline CSS */
    --warning: #ffc107;
    /* From inline CSS */
    --light: #f8f9fa;
    /* From inline CSS */
    --dark: #343a40;
    /* From inline CSS */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
    margin: 0;
    font-family: Arial, sans-serif;
    /* Fallback from inline CSS */
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    opacity: 0.9;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-accent {
    background: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background: #e67e22;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    color: var(--secondary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.user-menu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-menu .fa-user-circle {
    font-size: 40px;
    color: var(--dark);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    top: 60px;
    right: 20px;
    width: 200px;
    z-index: 1001;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.user-menu-dropdown li {
    padding: 8px 12px;
}

.user-menu-dropdown a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.user-menu-dropdown a i {
    margin-right: 8px;
}

.user-menu-dropdown a:hover {
    color: var(--primary);
}

/* Navigation */
nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex: 1;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
}

/* Dashboard */
.dashboard {
    margin-top: 80px;
    padding: 20px;
    display: block;
    /* Ensure visibility */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    color: var(--dark-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary);
}

.stat-card p {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
}

.dashboard-main {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Tabs */
.tab-navigation {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.tab-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--dark);
    font-weight: 500;
    transition: background-color 0.3s;
}

.tab-item:hover {
    background: var(--light);
}

.tab-item.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.tab-content.active {
    display: block;
}

/* Search */
.search-container {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--light);
    border-radius: 8px;
}

.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-col {
    flex: 1;
    min-width: 150px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Student List */
.student-list {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eaecef;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: table;
    /* Ensure table behavior */
}

.student-list th,
.student-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    display: table-cell;
}

.student-list th {
    background: var(--light);
    font-weight: bold;
}

.student-list tr:hover {
    background: #f1f1f1;
}

.student-list img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.student-list .student-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* NGO Grid */
.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.ngo-box {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.ngo-box img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.ngo-box .ngo-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 16px;
}

.ngo-box h4 {
    margin: 0;
    font-size: 14px;
}

.ngo-box p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

/* Notifications */
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.notification-item h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.notification-item p {
    margin: 0;
    font-size: 12px;
}

.notification-time {
    font-size: 10px;
    color: #999;
}

.notification {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.notification:last-child {
    border-bottom: none;
}

.notification p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Campaign Card */
.campaign-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.campaign-header {
    padding: 10px;
    background: var(--light);
}

.campaign-body {
    padding: 10px;
}

.campaign-footer {
    padding: 10px;
    text-align: right;
}

.progress-bar {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: var(--primary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 15px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body .form-group {
    margin-bottom: 10px;
}

.modal-body label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.modal-body .student-detail,
.modal-body .ngo-detail {
    margin-bottom: 10px;
    font-size: 12px;
}

.modal-body img {
    max-width: 80px;
    border-radius: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close {
    font-size: 20px;
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    color: #fff;
    display: inline-block;
}

.badge-success {
    background: var(--success);
}

.badge-primary {
    background: var(--primary);
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

.badge-accent {
    background: var(--accent-color);
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(46, 204, 113, 0.8)), url('/api/placeholder/1200/600') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* User Interfaces */
.user-interfaces {
    padding: 80px 0;
    background: var(--light-color);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    transition: background 0.3s;
}

.tab:first-child {
    border-radius: 4px 0 0 4px;
}

.tab:last-child {
    border-radius: 0 4px 4px 0;
}

.tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.interface-content {
    display: none;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.interface-content.active {
    display: block;
}

.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.interface-feature {
    margin-bottom: 20px;
}

.interface-feature h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.interface-feature h4 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Registration Form */
.registration-form {
    display: none;
    max-width: 600px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.registration-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
}

.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.form-tab {
    padding: 10px 20px;
    cursor: pointer;
}

.form-tab.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p,
.footer-col a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* School Dashboard Specific */
.student-list {
    max-height: 500px;
    overflow-y: auto;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.student-item:last-child {
    border-bottom: none;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.student-details {
    flex: 1;
}

.student-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.student-info {
    font-size: 0.9rem;
    color: #666;
}

.student-actions {
    display: flex;
    gap: 10px;
}

/* NGO Dashboard Specific */
.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: var(--primary-color);
}

.campaign-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.campaign-header {
    padding: 15px;
    background: var(--light-color);
}

.campaign-body {
    padding: 15px;
}

.campaign-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Profile Page */
.profile-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.profile-tabs {
    margin-top: 30px;
}

/* Search & Filter */
.search-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-col {
    flex: 1;
}

.search-filter-toggle {
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-filter-toggle::after {
    content: "▼";
    font-size: 0.8rem;
    margin-left: 5px;
}

.search-filters {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.search-filters.active {
    display: block;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Multilingual Support */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.current-language img {
    width: 20px;
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 150px;
    display: none;
    z-index: 1001;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown ul {
    list-style: none;
    padding: 10px 0;
}

.language-dropdown ul li {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.language-dropdown ul li:hover {
    background: var(--light-color);
}

.language-dropdown ul li img {
    width: 20px;
    margin-right: 10px;
}

/* Notification Center */
.notification-center {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.notification-center.active {
    display: block;
}

.notification-header {
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
}

.notification-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: var(--light-color);
}

.notification-item.unread {
    border-left: 3px solid var(--primary-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Application Process */
.application-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.application-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.step.completed {
    background: var(--success-color);
    color: #fff;
    border-color: var(--success-color);
}

.step-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: #666;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.application-form-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Chat System */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    margin-left: 15px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 70%;
}

.message-received {
    align-self: flex-start;
}

.message-sent {
    align-self: flex-end;
    margin-left: auto;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
}

.message-received .message-content {
    background: var(--light-color);
}

.message-sent .message-content {
    background: var(--primary-color);
    color: #fff;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.95rem;
}

.chat-input button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1010;
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-menu ul {
        list-style: none;
        text-align: center;
    }

    .mobile-menu ul li {
        margin: 15px 0;
    }

    .mobile-menu ul li a {
        color: var(--dark-color);
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .mobile-menu ul li a:hover {
        color: var(--primary-color);
        background: var(--light-color);
        border-radius: 4px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .student-list {
        display: block;
        overflow-x: auto;
    }

    .search-row {
        flex-direction: column;
    }

    .ngo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .features-grid,
    .interface-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-row {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .dashboard-sidebar,
    .tab-navigation {
        display: none !important;
    }

    body,
    .container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .dashboard {
        margin-top: 0 !important;
    }

    .dashboard-main,
    .dashboard-grid {
        box-shadow: none !important;
    }
}