/* Custom Dashboard Styles */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guild-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.guild-card:hover {
    border-color: #5865F2 !important;
    background-color: rgba(88, 101, 242, 0.05);
}

.guild-card.selected {
    border-color: #5865F2 !important;
    background-color: rgba(88, 101, 242, 0.1);
}

.channel-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.channel-item:hover {
    background-color: #f8f9fa;
}

.channel-item.active {
    background-color: #5865F2;
    color: white;
}

.message-card {
    border-left: 4px solid #5865F2;
    transition: all 0.2s ease;
}

.message-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752C4, #3c4296);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message card button styling */
.message-card .btn-group {
    min-width: 140px;
}

.message-card .btn-outline-info,
.message-card .btn-outline-danger {
    border-width: 1px;
    font-weight: 500;
}

.message-card .btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: white;
}

.message-card .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Ensure buttons are always visible */
.message-card .flex-shrink-0 {
    min-width: 140px;
}

.message-card .btn-group {
    white-space: nowrap;
}

/* Force button visibility on all screen sizes */
.message-card .btn-group .btn {
    display: inline-block !important;
    visibility: visible !important;
}

/* Dashboard Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Custom Confirmation Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInScale {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Fix dropdown menu z-index to appear above all content */
.navbar .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.navbar .dropdown {
    z-index: 9999 !important;
    position: relative !important;
}

/* Ensure navbar has proper stacking context */
.navbar {
    z-index: 1030 !important;
    position: relative !important;
}

/* Make sure dropdown toggle works properly */
.navbar .nav-item.dropdown .dropdown-toggle {
    z-index: 10000 !important;
    position: relative !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.counter-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5865F2;
}

.message-preview {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.message-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}