/* ====================================================
   JKSSB TOPPERS - STUDENT DASHBOARD STYLING (dashboard.css)
   ==================================================== */

/* Dashboard Header Specifics */
.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.logout-btn {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

.logout-btn:hover {
    background-color: #ef4444 !important; /* Red hover for logout */
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Dashboard Layout */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 60px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.date-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.welcome-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0;
}

.highlight-blue {
    color: #3b82f6;
}

.banner-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* Mini Stats inside Banner */
.banner-stats {
    display: flex;
    gap: 15px;
}

.stat-mini-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 110px;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
}

/* Sections & Grids */
.dashboard-section {
    margin-top: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.loading-text {
    color: #64748b;
    font-style: italic;
    padding: 10px;
}

/* Performance Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 25px 20px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #475569;
}

.stat-title {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 8px;
}

/* Text Colors for Stats */
.text-blue { color: #3b82f6; }
.text-purple { color: #a855f7; }
.text-green { color: #10b981; }
.text-orange { color: #f59e0b; }

/* Buttons */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

/* ====================================================
   MOBILE RESPONSIVENESS (Below 768px)
   ==================================================== */
@media screen and (max-width: 768px) {
    .user-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .welcome-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .welcome-heading {
        font-size: 1.6rem;
    }

    .banner-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-mini-card {
        flex: 1;
        padding: 10px;
        min-width: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ====================================================
   DASHBOARD SEARCH BAR STYLING
   ==================================================== */
.dashboard-search {
    margin-bottom: 30px;
    margin-top: -10px; /* Banner ke paas set karne ke liye */
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Jab student search karne ke liye click karega toh neela border aayega */
.search-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: #94a3b8;
}

#dashboardSearch {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

#dashboardSearch::placeholder {
    color: #64748b;
}

@media screen and (max-width: 768px) {
    .search-container {
        padding: 10px 15px;
    }
    #dashboardSearch {
        font-size: 0.9rem;
    }
}
/* Floating Container ko screen ke bottom-right par fix karne ke liye */
.floating-social-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000; /* Taaki yeh hamesha baqi elements ke upar rahe */
}

/* Button ki basic styling */
.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%; /* Ekdum gol (circle) banane ke liye */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

/* WhatsApp Icon Colors */
.float-btn.whatsapp {
  background-color: #25D366;
}

/* Telegram Icon Colors */
.float-btn.telegram {
  background-color: #0088cc;
}

/* Hover Effects - Jab mouse upar jayega toh thoda bada hoga aur glow karega */
.float-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
  color: white;
}