/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.nav-drawer.active {
    left: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.drawer-header .profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.user-info p {
    font-size: 14px;
    color: #666;
}

.drawer-nav {
    padding: 20px 0;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.drawer-nav a:hover, .drawer-nav a.active {
    background: #f0f2f5;
}

.drawer-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    padding-left: 0;
    padding-top: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: none;
}

.user-sidebar {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-sidebar .profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #f0f2f5;
}

.sidebar-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
}

/* Top Donors Sidebar (Desktop) */
.top-donors-sidebar {
    width: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    right: 20px;
    top: 20px;
    display: none;
}

.volunteers-sidebar {
    width: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    right: 340px;
    top: 20px;
    display: none;
}

.top-donor-list, .volunteer-list {
    margin-top: 15px;
}

.top-donor, .volunteer {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.top-donor:last-child, .volunteer:last-child {
    border-bottom: none;
}

.top-donor .profile-img, .volunteer .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.donor-info, .volunteer-info {
    flex: 1;
}

.donor-info h4, .volunteer-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.donation-amount {
    font-size: 12px;
    color: #666;
}

.volunteer-badge {
    font-size: 10px;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

.crown-icon {
    font-size: 16px;
}

.crown-icon.gold {
    color: gold;
}

/* Main Feed */
.main-feed {
    max-width: 600px;
    margin: 0 auto;
}

/* Post Creation */
.post-create {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-creator .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-input-container {
    flex: 1;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
}

.tab-btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 12px;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.post-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f0f2f5;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.post-input span {
    color: #666;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-user-info .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.post-time {
    font-size: 12px;
    color: #666;
}

.post-menu {
    position: relative;
}

.post-menu i {
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.post-menu i:hover {
    background: #f0f2f5;
}

.post-menu-dropdown {
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.post-menu-dropdown a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.post-menu-dropdown a:hover {
    background: #f0f2f5;
}

.post-content {
    margin: 15px 0;
}

.post-text {
    margin-bottom: 10px;
    word-wrap: break-word;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-video {
    width: 100%;
    border-radius: 8px;
    max-height: 400px;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.reaction-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
}

.action-btn:hover {
    background: #f0f2f5;
}

.action-btn i {
    width: 16px;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.nav-item.active, .nav-item:hover {
    color: #007bff;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

/* Buttons */
.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-google:hover {
    background: #f0f2f5;
}

/* Input Styles */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.terms label {
    font-weight: normal;
}

/* Responsive Design */
@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
    
    .content {
        margin-left: 280px;
    }
}

@media (min-width: 1024px) {
    .top-donors-sidebar, .volunteers-sidebar {
        display: block;
    }
    
    .content {
        margin-right: 660px;
    }
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
    }
    
    .main-feed {
        margin: 0 10px;
    }
    
    .volunteers-sidebar {
        right: 20px;
        top: 260px;
    }
    
    .top-donors-sidebar {
        right: 20px;
        top: 20px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

/* Profile Picture Styles */
.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-img-large {
    width: 100px;
    height: 100px;
}