.underline {
    text-decoration: underline !important;
}

.scoreBadge {
    position: relative;
}

.verified {
    position: absolute;
    top: 9px;
    left: 29px;
}

/* Dropdown Button */
.dropbtn {
    display: block;
    background: none;
    color: rgb(112, 122, 130);
    padding: 16px;
    font-size: 14px;
    border: 1px solid #0085db;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease 0s;
}

.dropbtn-border {
    padding-left: 1rem !important;
    border-left: 1px solid #0085db !important;
    transition: border-left 0.3s ease 0s;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f4f4f4;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 15px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: rgb(112, 122, 130);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    color: #fff !important;
    background-color: #0085db;
}

.dropdown:hover .dropbtn-border {
    border-left: 1px solid #fff !important;
}

.dropdown .text-primary {
    color: #0085db !important;
}

.dropdown:hover .text-primary {
    transition: color 0.3s ease 0s;
    color: #fff !important;
}

input {
    text-align: left !important;
}

div.dt-container select.dt-input {
    padding: 5px 10px !important;
    margin-right: 10px !important;
    border-radius: 8px !important;
}

div.dt-container .dt-search input {
    padding: 5px 10px !important;
    margin-right: 10px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
}

div.dt-container .dt-search label {
    margin-right: 10px;
}

/* The switch - the box around the slider */
.customSwitch .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.customSwitch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.customSwitch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.customSwitch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.customSwitch input:checked+.slider {
    background-color: #2196F3;
}

.customSwitch input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

.customSwitch .slider.round:before {
    transform: translate(10px, -5px);
    border-radius: 50%;
}

.customSwitch input:checked+.slider:before {
    -webkit-transform: translateY(-5px) translateX(44px);
    -ms-transform: translateY(-5px) translateX(44px);
    transform: translateY(-5px) translateX(44px);
}

/* Rounded sliders */
.customSwitch .slider.round {
    min-width: 90px;
    border-radius: 34px;
}

/* Particles Container */
#welcomeCard {
    position: relative;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#welcomeCard .card-body {
    position: relative;
    z-index: 2; 
}

.school-img img {
    overflow: visible;
    
    max-width: 90%;
    height: auto;
}

/* Activity Card Styling */
.activity-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible; /* Allow badge to hang out if needed, but header clips it usually. Wait, if I want overlap, overflow must be visible */
    margin-bottom: 30px;
}

.activity-card:active {
    transform: scale(0.98);
}

.activity-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0694F2 0%, #0752DB 100%); /* Brand Blue to Cyan */
    border-radius: 20px 20px 0 0;
    overflow: visible; /* Important for overlapping badge */
}

.user-avatar-wrapper {
    position: relative;
    margin-right: 1rem;
    z-index: 2;
}

.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-initials {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.activity-meta {
    flex-grow: 1;
    z-index: 2;
}

.user-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Score Display - The "Wow" Factor */
.score-display {
    position: absolute;
    right: 20px;
    bottom: -30px; /* Overlap the boundary */
    width: 85px;
    height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 6px solid #fff; /* Thick border to separate from content */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5; /* Lowered from 10 to be below the header (z-index: 9) */
    pointer-events: none; /* Allow clicks to pass through to the stretched link */
}

.score-display small {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 2px;
}

.score-display.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.score-display.good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.score-display.average {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.score-display.high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.activity-body {
    padding: 1.25rem 1.5rem 1rem; /* Reduced top padding */
}

.course-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    letter-spacing: -0.5px;
    padding-right: 80px; /* Prevent text from going under the badge */
}

.round-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
}

.stat-item {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-item i {
    margin-right: 5px;
    color: #64748b;
}

.activity-footer {
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    border-radius: 0 0 20px 20px; /* Fix bottom corners */
}

.action-btn {
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.action-btn:hover {
    background: #f8fafc;
    color: #334155;
}

.action-btn.liked {
    color: #2563eb;
}

.action-btn i {
    font-size: 1.2rem;
    margin-right: 6px;
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Mobile Action Bar Styles */
.mobile-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-action-bar .action-group {
    display: flex;
    gap: 8px;
}

.mobile-action-bar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-weight: 600;
}

.mobile-action-bar .text-mobile {
    display: none;
    margin-left: 6px;
}

.mobile-action-bar .text-desktop {
    display: inline;
    margin-left: 6px;
}

@media (max-width: 576px) {
    .mobile-action-bar .text-desktop {
        display: none;
    }
    .mobile-action-bar .text-mobile {
        display: inline;
    }
    
    .mobile-action-bar .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .mobile-action-bar .action-delete {
        padding: 8px 12px; /* Square-ish for icon only */
    }
}