/* Custom CSS Overrides */

/* Fix for marquee direction in all browsers */
.marquee-container {
    direction: ltr;
    width: 100%;
    overflow: hidden;
}

.notice-text {
    width: 100%;
    padding: 5px 0;
}

/* Profile Popup Styles */
.profile-popup {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 1002;
    display: none;
    transform: translateX(0);
}

.profile-popup.active {
    display: block;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    width: 100%;
}

.popup-header {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    padding: 20px;
    width: 100%;
    border-radius: 10px 10px 0 0;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-user-img {
    width: 60px;
    height: 60px;
    border-radius: 30%;
    border: 3px solid white;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.popup-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.popup-email {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 15px 0;
}

.popup-balance {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 1.2rem;
    flex-direction: row-reverse;
}

.popup-balance span:last-child {
    margin-left: 0;
    margin-right: 2px;
}

.popup-header i, .popup-balance i {
    order: 2;
    margin-left: 0;
    margin-right: 8px;
}

.popup-actions {
    width: 100%;
    padding: 15px;
}

.popup-btn {
    display: flex;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0px;
    flex-direction: row-reverse;
}

.popup-btn i {
    margin-left: 0;
    margin-right: 8px;
    font-size: 1.1rem;
    order: 2;
}

.popup-btn span {
    font-size: 0.95rem;
}

.popup-btn:last-child {
    margin-bottom: 0;
}

.btn-edit {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-edit:hover {
    background-color: #e9ecef;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-logout:hover {
    background-color: #c82333;
}

/* Activity Items - Complete Alignment Fix */
.activity-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Override center alignment */
    padding: 15px !important;
    gap: 16px !important;
    min-height: 75px !important;
    border: none !important;
    background-color: #f8f8f8 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
}

.activity-item:hover {
    background-color: #f3f8ff !important;
    transform: translateX(5px) !important;
}

.activity-item:nth-child(1) {
    border-left-color: #1976d2 !important;
}

.activity-item:nth-child(2) {
    border-left-color: #28a745 !important;
}

.activity-item:nth-child(3) {
    border-left-color: #ffc107 !important;
}

.activity-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #e3f2fd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1976d2 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.activity-icon i {
    font-size: 20px !important;
}

.activity-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    padding: 0 !important;
    min-height: 50px !important;
}

.activity-details h4 {
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.activity-meta {
    margin: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .activity-item {
        padding: 12px !important;
        min-height: 65px !important;
        gap: 12px !important;
    }
    
    .activity-icon {
        width: 42px !important;
        height: 42px !important;
    }
    
    .activity-icon i {
        font-size: 18px !important;
    }
    
    .activity-details {
        min-height: 42px !important;
    }
    
    .activity-details h4 {
        font-size: 15px !important;
        margin: 0 0 3px 0 !important;
    }
    
    .activity-meta {
        font-size: 13px !important;
    }
} 