/* Virtual Attendance Manager Styles */

/* Comment Card Styles */
.comment-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.comment-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comment-card.deleting {
    opacity: 0.6;
    pointer-events: none;
}

.comment-header {
    position: relative;
    padding-right: 35px;
    min-height: 20px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.comment-meta {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Comment Actions Menu */
.comment-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-menu-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.comment-menu-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.comment-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.delete-comment-btn {
    background: rgba(233, 30, 99, 0.15) !important;
    border: 2px solid rgba(233, 30, 99, 0.4) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
    text-decoration: none !important;
    outline: none !important;
}

.delete-comment-btn:hover {
    background: rgba(233, 30, 99, 0.25) !important;
    border-color: rgba(233, 30, 99, 0.6) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3) !important;
    text-decoration: none !important;
}

.delete-comment-btn:focus {
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3) !important;
    outline: none !important;
    text-decoration: none !important;
}

.delete-comment-btn:active {
    transform: scale(0.95) !important;
    text-decoration: none !important;
}

.delete-comment-btn i {
    color: #e91e63 !important;
    font-size: 10px !important;
    pointer-events: none !important;
}

/* Dropdown Menu */
.dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    margin: 0;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
}

/* Loading States */
.comment-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6c757d;
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Feedback Messages */
.comment-feedback-alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-card {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .comment-text {
        font-size: 13px;
    }

    .comment-meta {
        font-size: 11px;
    }

    .delete-comment-btn {
        width: 20px !important;
        height: 20px !important;
        top: 6px !important;
        right: 6px !important;
    }

    .delete-comment-btn i {
        font-size: 8px !important;
    }

    .comment-header {
        padding-right: 30px;
    }
}

/* Bootstrap 5 Compatibility */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ensure proper z-index for dropdowns */
.dropdown {
    position: relative;
}

.dropdown-menu {
    z-index: 1000;
}

/* Fix for Bootstrap 5 dropdown positioning */
.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: 0;
    margin-top: 0.125rem;
}

/* Ensure icons are properly aligned */
.ph {
    font-family: "Phosphor", sans-serif;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 