/* Styles for logo */
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: white;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Image preview styles */
.image-container {
    position: relative;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    display: block;
    border-radius: 8px 8px 0 0;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 2;
}

.remove-image:hover {
    background-color: var(--danger-color);
}

/* Hiển thị thông tin file */
.file-info {
    padding: 10px 12px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.file-name, .file-size {
    margin-bottom: 4px;
}

.file-note {
    color: #777;
    font-size: 12px;
    margin-top: 6px;
}

#image-preview {
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

#image-preview.hidden {
    display: none;
}

/* Enhanced notification styles */
.notification-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, height 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.notification-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    flex-shrink: 0;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notification-item.important {
    border-left: 4px solid var(--danger-color);
}

.notification-item.technical {
    border-left: 4px solid var(--secondary-color);
}

.notification-item.event {
    border-left: 4px solid var(--info-color);
}

.notification-item.important .notification-icon {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

.notification-item.technical .notification-icon {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.notification-item.event .notification-icon {
    background-color: rgba(26, 188, 156, 0.15);
    color: var(--info-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.notification-item.important .notification-title {
    color: var(--danger-color);
}

.notification-item.technical .notification-title {
    color: var(--secondary-color);
}

.notification-item.event .notification-title {
    color: var(--info-color);
}

.notification-message {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}

.notification-date {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
}

.notification-date:before {
    content: "\f017"; /* fa-clock */
    font-family: "Font Awesome 5 Free";
    margin-right: 5px;
    font-weight: 400;
}

/* Animations for notifications */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-item {
    animation: fadeIn 0.3s ease forwards;
}

.notification-item:nth-child(1) { animation-delay: 0.1s; }
.notification-item:nth-child(2) { animation-delay: 0.2s; }
.notification-item:nth-child(3) { animation-delay: 0.3s; }
.notification-item:nth-child(4) { animation-delay: 0.4s; }
.notification-item:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced notifications panel */
#notifications-panel {
    padding: 10px;
    background-color: white;
    backdrop-filter: none;
    z-index: 1001; /* Tăng z-index cao hơn overlay */
}

.notifications-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
    margin: -10px -10px 10px -10px;
}

.notifications-header h3 {
    font-size: 16px;
}

.notifications-header .btn-icon {
    color: white;
}

.notification-mark-read {
    background: none;
    border: none;
    color: var(--gray-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    margin-left: 5px;
    background-color: var(--light-color);
}

.notification-item:hover .notification-mark-read {
    opacity: 1;
}

.notification-mark-read:hover {
    color: white;
    background-color: var(--success-color);
}

.notification-item.read {
    opacity: 0.6;
}

.no-notifications {
    text-align: center;
    padding: 30px 0;
    color: var(--gray-color);
    font-style: italic;
}

/* Responsive adjustments for notifications */
@media (max-width: 600px) {
    .notification-item {
        padding: 12px;
    }
    
    .notification-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .notification-title {
        font-size: 14px;
        font-weight: 700;
    }
    
    .notification-message {
        font-size: 12px;
        font-weight: 500;
        color: #333;
    }
    
    .notification-mark-read {
        opacity: 1;
        width: 26px;
        height: 26px;
    }
}

/* Display notification counter animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-count {
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Thiết lập màu rực rỡ hơn cho từng danh mục */
:root {
    /* Màu rực rỡ hơn cho các danh mục */
    --dapps-color: #e91e63;     /* Màu hồng đậm rực rỡ */
    --node-color: #673ab7;      /* Tím đậm */
    --docker-color: #2196f3;    /* Xanh dương sáng */
    --mainnet-color: #00c853;   /* Xanh lá cây sáng */
    --general-color: #607d8b;   /* Xám xanh */
    --trading-color: #ff9800;   /* Cam rực rỡ */
    
    /* Font chính */
    /* --main-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; */
}

/* Hiệu ứng nút glowing */
.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    z-index: -2;
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: inherit;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: inherit;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Tiêu đề topic đậm màu đen */
.topic-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #222;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.topic-item:hover .topic-title {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Viền bên trái của topic - xóa tất cả animation cũ */
.topic-item::before {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transition mượt mà hơn */
}

/* Hiệu ứng tỏa sáng nâng cao cho viền bên trái khi hover */
.topic-item:hover::before {
    box-shadow: 0 0 20px 3px; /* Tỏa sáng rõ hơn */
}

/* Màu sắc rực rỡ hơn cho highlight khi hover */
.topic-item[data-category="dapps"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(233, 30, 99, 0.7);
}

.topic-item[data-category="node"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(103, 58, 183, 0.7);
}

.topic-item[data-category="docker"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(33, 150, 243, 0.7);
}

.topic-item[data-category="mainnet"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(0, 200, 83, 0.7);
}

.topic-item[data-category="general"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(96, 125, 139, 0.7);
}

.topic-item[data-category="trading"]:hover::before {
    box-shadow: 0 0 20px 3px rgba(255, 152, 0, 0.7);
}

/* Hiệu ứng cho tag */
.topic-tag {
    position: relative;
    overflow: hidden;
}

.topic-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.topic-tag:hover::after {
    transform: translateX(100%);
}

/* Hiệu ứng 3D cho header */
header {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(142, 68, 173, 0.7), 
        rgba(52, 152, 219, 0.7), 
        rgba(46, 204, 113, 0.7), 
        rgba(241, 196, 15, 0.7), 
        rgba(231, 76, 60, 0.7)
    );
    transform: rotateX(45deg);
    transform-origin: top;
    opacity: 0.7;
}

/* Hiệu ứng shine cho danh mục */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.category-btn:hover::before {
    width: 100%;
    left: 100%;
}

/* Hiệu ứng pulse cho notification count */
.notification-count {
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.logo {
    /* animation: float 3s ease-in-out infinite; */
}

/* Hiệu ứng cho cards */
.topic-item {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    position: relative;
}

.topic-item:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.topic-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

/* Hiệu ứng cho input search */
.search-box {
    transition: all 0.3s ease;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-box input {
    transition: all 0.3s ease;
}

.search-box input:focus {
    font-weight: 500;
}

/* Hiệu ứng cho language switcher */
.language-switcher button {
    transition: all 0.3s ease;
    transform-origin: center;
}

.language-switcher button:hover:not(.active) {
    transform: scale(1.1) rotate(3deg);
}

.language-switcher button.active {
    transform: scale(1.05);
}

/* Hiệu ứng ripple cho topics */
.topic-footer {
    position: relative;
    overflow: hidden;
}

.topic-footer .view-more {
    position: relative;
    overflow: hidden;
}

.topic-footer .view-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(142, 68, 173, 0.2) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.topic-footer .view-more:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Nút đóng form */
#close-new-topic {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #666;
}

#close-new-topic:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Hiệu ứng nâng cao cho form tạo chủ đề mới ở đầu trang */
#new-topic-form {
    position: relative;
    background: white;
    backdrop-filter: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Bỏ đường viền gradient */
#new-topic-form::before {
    display: none;
}

.form-header h2 {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
    margin-top: 0;
}

/* Giữ lại style cần thiết, bỏ các animation không cần thiết */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.1);
}

/* Đơn giản hóa các nút */
#cancel-topic {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    background: white;
}

#cancel-topic:hover {
    background-color: #f5f5f5;
    transform: none;
}

#submit-topic {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: none;
    background: var(--primary-color);
}

#submit-topic:hover {
    transform: none;
    opacity: 0.9;
    box-shadow: 0 2px 5px rgba(142, 68, 173, 0.2);
}

/* Bỏ animation không cần thiết */
.form-actions .btn::after {
    display: none;
}

/* Đơn giản hóa form content */
.form-content::before {
    display: none;
}

/* Hiệu ứng chuyển đổi chọn danh mục */
#category-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#category-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

/* Tạo hiệu ứng tooltip cho các trường bắt buộc */
.form-group label::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
    font-weight: bold;
}

/* Form Success message */
#form-success .success-icon {
    animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animated background cho form */
.form-content {
    padding-top: 15px;
    position: relative;
    z-index: 1;
}

.form-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(142, 68, 173, 0.05), transparent 70%),
                radial-gradient(circle at bottom left, rgba(52, 152, 219, 0.05), transparent 70%);
    z-index: -1;
    opacity: 0.6;
    border-radius: var(--border-radius);
}

/* Focus styles for text areas */
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.98);
}

/* Thêm margin cho form actions */
.form-actions {
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
} 