/* 
 * VibeNet Orkut-Inspired Design System 
 * Palette: Pale Blue (#E2E8FD), Soft Blue (#B4D1EC), Soap Pink (#E95B95), Deep Slate Text
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-gradient: radial-gradient(circle at top left, #f5f8fe 0%, #e5eefc 40%, #dee7f8 80%, #ebf2fe 100%);
    --panel-bg: rgba(255, 255, 255, 0.78);
    --panel-border: rgba(191, 212, 242, 0.45);
    --panel-hover-border: rgba(137, 177, 214, 0.75);
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --primary: #e95b95;
    --primary-hover: #d13c77;
    --accent: #4ba3e3;
    --danger: #ef4444;
    --card-shadow: 
        0 10px 30px -10px rgba(137, 177, 214, 0.15), 
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --glass-blur: blur(16px) saturate(180%);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #1e3a8a;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* App Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem 1.5rem;
}

/* Auth Layout */
.auth-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(240, 245, 255, 1) 0%, rgba(226, 234, 247, 1) 90%);
}

/* Background floating blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.pink-blob {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(233, 91, 149, 0.2) 0%, rgba(233, 91, 149, 0) 70%);
    top: 15%;
    left: 15%;
    filter: blur(40px);
    animation: float 12s ease-in-out infinite;
}

.blue-blob {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(75, 163, 227, 0.2) 0%, rgba(75, 163, 227, 0) 70%);
    bottom: 15%;
    right: 15%;
    filter: blur(45px);
    animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-30px) rotate(60deg) scale(1.05);
    }
    100% {
        transform: translateY(0px) rotate(120deg) scale(1);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(191, 212, 242, 0.6);
    box-shadow: 
        0 20px 40px -15px rgba(137, 177, 214, 0.25),
        0 15px 30px -10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 460px;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.auth-header h1 span {
    background: linear-gradient(135deg, #ffd000 0%, #ff9d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(233, 91, 149, 0.15);
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.925rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn:active {
    transform: translateY(0) scale(0.96) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e95b77 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(233, 91, 149, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #d13c5a 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(233, 91, 149, 0.5);
}

.btn-secondary {
    background: rgba(75, 163, 227, 0.08);
    color: #1e40af;
    border: 1.5px solid rgba(75, 163, 227, 0.2);
}

.btn-secondary:hover {
    background: rgba(75, 163, 227, 0.14);
    border-color: rgba(75, 163, 227, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-block {
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.logo-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}

.nav-item.active a {
    background: linear-gradient(135deg, rgba(233, 91, 149, 0.12) 0%, rgba(75, 163, 227, 0.08) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1rem;
}

.nav-item a:hover {
    background: rgba(233, 91, 149, 0.06);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1rem;
    transform: translateX(4px);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--panel-border);
}

.user-profile-badge img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-profile-badge .info {
    display: flex;
    flex-direction: column;
}

.user-profile-badge .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-profile-badge .email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid var(--panel-border);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    box-shadow: var(--card-shadow);
}

.feed-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a8a;
}

/* Create Post Card */
.create-post-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.create-post-card:hover {
    border-color: var(--panel-hover-border);
}

.create-post-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-post-card textarea {
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.85rem;
    resize: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    min-height: 95px;
    transition: var(--transition-smooth);
}

.create-post-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(233, 91, 149, 0.12);
}

/* Admin pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(191, 212, 242, 0.5);
}

.admin-pagination-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.admin-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(75, 163, 227, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.admin-pagination-link:hover {
    background: rgba(75, 163, 227, 0.12);
    border-color: rgba(75, 163, 227, 0.4);
    color: var(--primary);
    text-decoration: none;
}

.admin-pagination-link.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(233, 91, 149, 0.22);
}

.admin-pagination-link.is-disabled {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    cursor: not-allowed;
}

.post-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(191, 212, 242, 0.5);
    padding-top: 0.75rem;
}

.file-upload-btn {
    position: relative;
    cursor: pointer;
    background: rgba(30, 58, 138, 0.04);
    color: #1e3a8a;
    padding: 0.55rem 1.1rem;
    border-radius: 24px;
    border: 1.5px solid rgba(30, 58, 138, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-btn:hover {
    background: rgba(30, 58, 138, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 177, 214, 0.2);
}

.file-upload-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Post Card Styles */
.post-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.post-card:hover {
    border-color: var(--panel-hover-border);
    box-shadow: 
        0 14px 35px -10px rgba(137, 177, 214, 0.25), 
        0 1px 3px rgba(0, 0, 0, 0.02);
}

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

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--panel-border);
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-info .name {
    font-weight: 600;
    color: #1e3a8a;
}

.post-author-info .name:hover {
    color: var(--primary);
    text-decoration: underline;
}

.post-author-info .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-content {
    font-size: 1rem;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-image {
    width: auto;
    max-width: 320px;
    max-height: 220px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 0.5rem;
    border: 1px solid var(--panel-border);
    cursor: zoom-in;
    transition: var(--transition-smooth);
    display: block;
}

.post-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 177, 214, 0.3);
    border-color: var(--primary);
}

/* Social Buttons Row */
.post-interactions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid rgba(191, 212, 242, 0.5);
    border-bottom: 1px solid rgba(191, 212, 242, 0.5);
    padding: 0.6rem 0;
    margin-top: 0.25rem;
}

.interaction-btn {
    background: transparent;
    border: none;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
}

.interaction-btn:hover {
    color: #1d4ed8;
}

.interaction-btn.liked {
    color: var(--primary);
}

/* Comments Section */
.comments-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f1f5f9;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.75rem;
}

.comment-input-row form {
    display: flex;
    gap: 0.5rem;
}

.comment-input-row input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.comment-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(191, 212, 242, 0.4);
    border-radius: 6px;
    padding: 0.6rem;
}

.comment-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
}

.comment-author-row .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1d4ed8;
}

.comment-author-row .time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.85rem;
    color: #334155;
}

.comment-delete-form {
    display: inline;
}

/* Right Sidebar (Suggestions / Trends) */
.right-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a8a;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--panel-border);
    border-left: 5px solid var(--accent); /* Matching left brand bar */
}

.user-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.user-suggestion-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-suggestion-info img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--panel-border);
}

.user-suggestion-name {
    display: flex;
    flex-direction: column;
}

.user-suggestion-name .name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1d4ed8;
}

.user-suggestion-name .followers {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Profile Details Header */
.profile-cover {
    height: 220px;
    background: linear-gradient(135deg, #bfd4f2 0%, #89aed6 100%);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.profile-info-section {
    position: relative;
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-avatar-wrapper {
    margin-top: -50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.profile-actions {
    transform: translateY(12px);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-details h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-details .email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-bio {
    font-size: 0.95rem;
    color: #334155;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(191, 212, 242, 0.5);
    border-bottom: 1px solid rgba(191, 212, 242, 0.5);
    padding: 0.75rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Explore Page / Search results */
.search-form {
    margin-bottom: 1.5rem;
}

.search-form form {
    display: flex;
    gap: 0.75rem;
}

.search-form input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-results-section {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.search-results-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.user-card {
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.user-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--panel-border);
}

.user-card .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d4ed8;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 4rem);
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(191, 212, 242, 0.5);
    box-shadow: 
        0 10px 25px -5px rgba(137, 177, 214, 0.2), 
        0 8px 16px -6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    pointer-events: auto;
    overflow: hidden;
    position: relative;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast.toast-fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid var(--accent);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-success .toast-icon svg {
    color: #10b981;
}

.toast-error .toast-icon svg {
    color: #ef4444;
}

.toast-info .toast-icon svg {
    color: var(--accent);
}

.toast-content {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.toast-close svg {
    width: 15px;
    height: 15px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, var(--accent), #60a5fa);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

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

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

/* Responsive Styles */
@media (max-width: 1100px) {
    .app-container {
        grid-template-columns: 80px 1fr 300px;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sidebar {
        padding: 1.5rem 0.5rem;
        align-items: center;
    }
    
    .logo-section h2 {
        display: none;
    }
    
    .nav-item a span {
        display: none;
    }
    
    .nav-item a {
        padding: 0.75rem;
        justify-content: center;
    }
    
    .user-profile-badge .info {
        display: none;
    }
    
    .user-profile-badge {
        justify-content: center;
        border-top: none;
    }
}

@media (max-width: 820px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0.75rem;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 65px;
        flex-direction: row;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--panel-border);
        padding: 0 1rem;
        z-index: 100;
        box-shadow: 0 -10px 30px rgba(137, 177, 214, 0.12);
        background: var(--panel-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-section, .sidebar-profile-card, .user-profile-badge {
        display: none !important;
    }
    
    .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        height: 100%;
    }
    
    .nav-item {
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1.25rem;
        border-radius: 10px;
        border-left: none !important;
    }

    .nav-item.active a, .nav-item a:hover {
        background: rgba(233, 91, 149, 0.08) !important;
        color: var(--primary) !important;
        border-left: none !important;
        padding-left: 1.25rem !important;
    }
    
    .nav-item a svg {
        width: 22px;
        height: 22px;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        padding-bottom: 80px;
    }

    .admin-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pagination-links {
        justify-content: flex-start;
        width: 100%;
    }

    .header-link, .header-divider {
        display: none !important;
    }
}

/* Share Dropdown Menu */
.share-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(137, 177, 214, 0.25);
    padding: 0.5rem;
    z-index: 100;
    min-width: 160px;
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease-out;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none !important;
}

.share-menu-item:hover {
    background: #f1f5f9;
    color: #1d4ed8 !important;
    text-decoration: none !important;
}

.share-menu-item.whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
}
.share-menu-item.facebook:hover {
    background: rgba(24, 119, 242, 0.08);
}
.share-menu-item.linkedin:hover {
    background: rgba(10, 102, 194, 0.08);
}
.share-menu-item.twitter:hover {
    background: rgba(15, 20, 25, 0.08);
}

.share-menu-item.whatsapp svg {
    color: #25d366;
}
.share-menu-item.facebook svg {
    color: #1877f2;
}
.share-menu-item.linkedin svg {
    color: #0a66c2;
}
.share-menu-item.twitter svg {
    color: #0f1419;
}
.share-menu-item.copy svg {
    color: #64748b;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Top Header Styles */
.top-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(137, 177, 214, 0.06);
    border-bottom: 1px solid rgba(191, 212, 242, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-decoration: none !important;
    letter-spacing: -1.5px;
    display: inline-block;
}

.header-logo span {
    background: linear-gradient(135deg, #ffd000 0%, #ff9d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-search input {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(191, 212, 242, 0.6);
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 240px;
    outline: none;
    transition: var(--transition-smooth);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 91, 149, 0.12);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.header-link:hover {
    color: var(--primary) !important;
}

.header-link.password-link svg {
    color: var(--primary);
}

.header-divider {
    border-left: 1px solid rgba(191, 212, 242, 0.5);
    height: 16px;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--panel-border);
}

.logout-btn {
    color: #ef4444 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    background: rgba(239, 68, 68, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: white !important;
    background: #ef4444;
}

/* Mobile responsive for header */
@media (max-width: 768px) {
    .top-header {
        padding: 0.75rem 1rem;
    }
    .header-search {
        display: none;
    }
    .header-link span {
        display: none;
    }
    .header-divider {
        display: none;
    }
    .logout-btn {
        display: none;
    }
}

/* Password Input Show/Hide Toggle Styling */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 6px;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: var(--primary);
    background: rgba(233, 91, 149, 0.08);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 91, 149, 0.15);
}

/* Modal styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

.modal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(191, 212, 242, 0.6);
    box-shadow: 0 25px 50px -12px rgba(137, 177, 214, 0.4);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.9) translateY(10px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.members-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(191, 212, 242, 0.3);
}

.member-row-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.member-row-item .member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-row-item .member-info img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--panel-border);
}

.member-row-item .member-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.member-row-item .member-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.member-row-item .member-name:hover {
    color: var(--primary);
    text-decoration: underline;
}

.member-row-item .member-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Google Sign-in & Auth UI styling */
.btn-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
}
.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.825rem;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.auth-divider:not(:empty)::before {
    margin-right: .75em;
}
.auth-divider:not(:empty)::after {
    margin-left: .75em;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f8fafc;
    font-size: 40px;
    font-weight: 300;
    transition: 0.2s;
    cursor: pointer;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    transform: scale(1.1);
}

/* AI Assistant Modal & Button */
.btn-ai-assist {
    background: rgba(233, 91, 149, 0.07) !important;
    border: 1px solid rgba(233, 91, 149, 0.25) !important;
    color: var(--primary) !important;
    transition: var(--transition-smooth);
}

.btn-ai-assist:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(233, 91, 149, 0.2);
}

.ai-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ai-modal.show {
    display: flex;
    opacity: 1;
}

.ai-modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(191, 212, 242, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(137, 177, 214, 0.3), 0 15px 30px -10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ai-modal.show .ai-modal-content {
    transform: scale(1);
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(191, 212, 242, 0.35);
}

.ai-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.ai-modal-close {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.ai-modal-body {
    padding: 1.5rem;
}

.ai-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(191, 212, 242, 0.35);
    padding-top: 1.25rem;
}

/* Media Library Modal */
.media-library-modal {
    display: none;
    position: fixed;
    z-index: 10005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.media-library-modal.show {
    display: flex;
}
.media-library-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(191, 212, 242, 0.4);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    overflow: hidden;
}
.media-library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(191, 212, 242, 0.3);
}
.media-library-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.media-library-tabs {
    display: flex;
    border-bottom: 1px solid rgba(191, 212, 242, 0.3);
    background: rgba(0,0,0,0.01);
}
.media-library-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.media-library-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255,255,255,0.5);
}
.media-library-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    min-height: 350px;
}
.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}
.media-library-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f5f9;
}
.media-library-item img, .media-library-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-library-item.selected {
    border-color: var(--primary);
}
.media-library-item .check-indicator {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.media-library-item.selected .check-indicator {
    display: flex;
}
.media-library-item .delete-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}
.media-library-item:hover .delete-btn {
    opacity: 1;
}
.media-library-item .video-badge {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}
.media-library-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(191, 212, 242, 0.3);
    background: rgba(0,0,0,0.01);
}
.media-library-upload-box {
    border: 2px dashed rgba(191, 212, 242, 0.6);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.4);
    transition: all 0.2s;
}
.media-library-upload-box:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.8);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(137, 177, 214, 0.4);
    border-radius: 4px;
    transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 91, 149, 0.5);
}

/* Hashtags styling */
.hashtag {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.hashtag:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
