body {
    background-color: #f0e6ff;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    color: #333;
}

.container {
    background-color: #fff5f5;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.list-group-item {
    background-color: #ffe6f0;
    border: 2px solid #ff9ccc;
    border-radius: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    transform: scale(1.05);
    background-color: #ffccee;
    box-shadow: 0 5px 15px rgba(255, 100, 200, 0.2);
}

#posts-container .card {
    border-radius: 20px;
    background-color: #ffffff;
    border: 3px dashed #ff69b4;
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

#post-content {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 15px;
    border: 2px dotted #ff1493;
    background-color: #fff0f5;
}

.navbar {
    background-color: #ffe4e1 !important;
    border-bottom: 3px dotted #ff69b4;
    border-radius: 0 0 20px 20px;
}

.list-group-item i, .navbar-nav .nav-link i {
    color: #ff69b4;
    margin-right: 10px;
}

.text-muted {
    color: #ff69b4 !important;
}

/* Magic Button Animation */
@keyframes magicSparkle {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(-10deg); }
}

.btn-magic-animation {
    animation: magicSparkle 0.5s ease-in-out;
    background-color: #ff1493 !important;
}

/* Post Editor Styles */
.editor-toolbar {
    padding: 5px 0;
    margin-bottom: 5px;
}

.post-preview {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

/* Emoji Picker Styles */
.emoji-picker {
    position: absolute;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    z-index: 1000;
    padding: 10px;
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.emoji-picker-title {
    margin: 0;
    font-size: 1rem;
}

.emoji-picker-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
}

.emoji-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 10px 0;
}

.emoji-categories {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.emoji-category {
    background: none;
    border: none;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 15px;
}

.emoji-category.active {
    background-color: #e9ecef;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.5rem;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

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

/* GIF Picker Styles */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.gif-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.gif-item:hover {
    transform: scale(1.05);
}

.gif-item img {
    width: 100%;
    height: auto;
    display: block;
}

.selected-media {
    position: relative;
    margin-top: 10px;
}

.selected-media img {
    max-width: 100%;
    border-radius: 8px;
}

/* Post Animation */
.post-card {
    animation: slideIn 0.3s ease-out;
}

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

/* Button Animation */
.btn-magic-animation {
    animation: sparkle 1s ease-in-out;
}

@keyframes sparkle {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Post Actions */
.post-actions {
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* Markdown Preview Styles */
.post-preview code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.post-preview del {
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .emoji-picker {
        width: 280px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .gif-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
