* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url(./images/abstract-background-with-tropical-leaves-magenta-azure-generative-ai_836899-691.avif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
}
.postDiv {
    background: url(./images/abstract-background-with-tropical-leaves-magenta-azure-generative-ai_836899-691.avif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar-custom {
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #fff;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: crimson;
    padding: 20px;
    font-style: italic;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    background: transparent !important;
    padding-bottom: 50px;
}

/* Post Creator */
.post-creator {
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 5px 5px 50px white !important;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

#postText {
    border: 2px solid #fff;
    resize: none;
    min-height: 200px;
    padding: 15px;
    font-size: 1.5rem;
    color: #fff !important;
    box-shadow: 5px 5px 15px white !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

#postText:focus {
    box-shadow: none !important;
    outline: none !important;
}

.media-btn {
    border-radius: 20px;
    padding: 10px 20px !important;
    font-size: 1rem !important;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    border: none;
    color: #fff;
    transition: all 0.2s ease;
}

.media-btn:hover {
    background: crimson;
    transform: translateY(-3px);
    box-shadow: 5px 5px 15px white !important;
}

.post-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 10px 0;
    font-weight: 600;
    font-family: 2rem;
    border: none;
    margin: 20px 0px;
    background-color: crimson;
    transition: all 0.3s ease;
}

.post-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    box-shadow: 5px 5px 15px white !important;
}

.post-btn:active {
    transform: translateY(0);
}

.post-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s;
}

.post-btn:hover::after {
    left: 100%;
}

/* Media Preview */
#mediaPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

#mediaPreview img,
#mediaPreview video,
#mediaPreview audio {
    max-width: 100%;
    max-height: 60%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Posts */
#postArea .post-card {
    background: (90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    border: 2px solid rgba(255, 255, 255);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
    background: linear-gradient(90deg, rgba(131, 58, 180,0.6) 0%, rgba(253, 29, 29, 0.5) 50%, rgba(252, 176, 69, 0.6) 100%);
    box-shadow: 5px 5px 15px white !important;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 15px;
    color: #fff;
}

/* Recording Animation */
.recording-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 50px;
    gap: 5px;
    margin: 20px 0;
}

.recording-animation .bar {
    width: 6px;
    background: #dc3545;
    border-radius: 5px;
    animation: recording 1.5s infinite ease-in-out;
}

.recording-animation .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.recording-animation .bar:nth-child(2) {
    animation-delay: 0.3s;
}

.recording-animation .bar:nth-child(3) {
    animation-delay: 0.5s;
}

.recording-animation .bar:nth-child(4) {
    animation-delay: 0.2s;
}

.recording-animation .bar:nth-child(5) {
    animation-delay: 0.4s;
}





/* Ensure these styles are in your CSS */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-actions .btn {
    flex: 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.like-btn.liked {
    color: #dc3545;
    border-color: #dc3545;
}

.comments-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
}

.comment-input:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.comments-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes recording {
    0% {
        height: 5px;
    }
    50% {
        height: 25px;
    }
    100% {
        height: 5px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .emoji-picker-container {
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
    }
    
    emoji-picker {
        width: 100%;
    }
    
    #postText {
        min-height: 100px;
        font-size: 1rem;
    }
}