/* Sindh University Marketplace - Enhanced Styles */
/* Navy/White/Yellow Professional Theme */

:root {
    /* Navy Palette */
    --navy-50: #f8fafc;
    --navy-100: #f1f5f9;
    --navy-200: #e2e8f0;
    --navy-300: #cbd5e1;
    --navy-400: #94a3b8;
    --navy-500: #64748b;
    --navy-600: #475569;
    --navy-700: #334155;
    --navy-800: #1e293b;
    --navy-900: #0f172a;
    
    /* Primary Colors */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    
    /* Accent Colors */
    --accent: #fbbf24;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--yellow-400) 100%);
    --gradient-hero: linear-gradient(135deg, var(--navy-900) 0%, var(--primary) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-700);
    background-color: var(--navy-50);
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy-800);
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.875rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--navy-800);
    border: 2px solid var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--yellow-400);
    color: var(--navy-900);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: none;
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-200);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* Alerts */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    color: #155e75;
    border-left: 4px solid var(--info);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
    color: var(--navy-700);
    font-weight: 600;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 40%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: white;
    position: relative;
    z-index: 3;
    margin-top: -2rem;
}

.search-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 2rem;
    border: 1px solid var(--navy-100);
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--navy-400);
    font-size: 1.25rem;
}

.search-wrapper input {
    padding-left: 3rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    color: var(--navy-800);
}

/* Item Cards */
.item-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-md);
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--navy-100);
    color: var(--navy-400);
}

.no-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.item-card:hover .item-overlay {
    opacity: 1;
}

.item-content {
    padding: 1.5rem;
}

.item-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.item-description {
    color: var(--navy-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.condition-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.condition-new { background: #dcfce7; color: #166534; }
.condition-like_new { background: #d1fae5; color: #065f46; }
.condition-good { background: #dbeafe; color: #1e40af; }
.condition-fair { background: #fef3c7; color: #92400e; }
.condition-poor { background: #fee2e2; color: #991b1b; }

.item-seller {
    font-size: 0.875rem;
    color: var(--navy-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Authentication Pages */
.login-section, .register-section {
    background: linear-gradient(135deg, var(--navy-50) 0%, white 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    border: none;
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-2xl);
    background: white;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
}

/* Demo Accounts */
.demo-accounts {
    text-align: center;
}

.demo-account {
    background: var(--navy-50);
    border: 2px solid var(--navy-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.demo-account:hover, .demo-account.selected {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.demo-account i {
    font-size: 1.5rem;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--navy-50);
}

.welcome-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.welcome-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--navy-800);
}

.stat-content p {
    margin: 0;
    color: var(--navy-600);
    font-weight: 500;
}

.dashboard-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.dashboard-card .card-header {
    background: var(--navy-50);
    border-bottom: 1px solid var(--navy-200);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    padding: 1rem 1.5rem;
}

/* Post Lists */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    border: 1px solid var(--navy-200);
}

.post-item:hover {
    background: var(--navy-50);
    border-color: var(--primary);
}

.post-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.post-image .no-image {
    width: 100%;
    height: 100%;
    background: var(--navy-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-400);
}

.post-details {
    flex: 1;
}

.post-details h6 {
    margin: 0 0 0.25rem 0;
    color: var(--navy-800);
}

.post-details p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--navy-600);
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary);
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-sold { background: #dbeafe; color: #1e40af; }

/* Admin Styles */
.admin-dashboard, .admin-content {
    background: var(--navy-50);
    min-height: 100vh;
}

.admin-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.stat-link:hover {
    color: var(--primary-dark);
}

.admin-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.admin-list {
    display: flex;
    flex-direction: column;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--navy-200);
    transition: var(--transition-fast);
}

.admin-list-item:hover {
    background: var(--navy-50);
}

.admin-list-item:last-child {
    border-bottom: none;
}

.item-info h6 {
    margin: 0 0 0.25rem 0;
    color: var(--navy-800);
}

.item-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--navy-600);
}

.item-status {
    text-align: right;
}

/* Activity Log */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Quick Actions */
.quick-action-card {
    display: block;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--navy-700);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--navy-800);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.quick-action-card h6 {
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.quick-action-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--navy-600);
}

/* Filter Tabs */
.filter-tabs {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.filter-tabs .nav-pills .nav-link {
    color: var(--navy-600);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: none;
}

.filter-tabs .nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.filter-tabs .nav-pills .nav-link:hover {
    background: var(--navy-100);
    color: var(--navy-800);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--navy-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-details h6 {
    margin: 0 0 0.25rem 0;
    color: var(--navy-800);
}

.user-details small {
    color: var(--navy-600);
}

.department-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Badges */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-suspended, .badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-sold {
    background: #dbeafe;
    color: #1e40af;
}

/* Messages */
.messages-section {
    background: var(--navy-50);
    min-height: 100vh;
}

.messages-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 70vh;
}

.conversations-sidebar {
    background: var(--navy-100);
    height: 100%;
    border-right: 1px solid var(--navy-200);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--navy-200);
    background: white;
}

.sidebar-header h5 {
    margin: 0;
    color: var(--navy-800);
}

.conversations-list {
    max-height: 60vh;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--navy-700);
    border-bottom: 1px solid var(--navy-200);
    transition: var(--transition-fast);
}

.conversation-item:hover, .conversation-item.active {
    background: white;
    color: var(--navy-800);
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--navy-600);
    margin-bottom: 0.25rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--navy-500);
}

.empty-conversations {
    padding: 2rem;
    text-align: center;
    color: var(--navy-500);
}

.empty-conversations i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--navy-400);
}

.messages-area {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--navy-200);
    background: white;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--navy-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.messages-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--navy-50);
    overflow-y: auto;
    max-height: 50vh;
}

.message {
    margin-bottom: 1.5rem;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.message.sent .message-content {
    background: var(--gradient-primary);
    color: white;
}

.message-context {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
}

.message.sent .message-context {
    background: rgba(255, 255, 255, 0.2);
}

.message-subject {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--navy-200);
    background: white;
}

.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--navy-500);
    text-align: center;
}

.no-conversation-selected i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--navy-400);
}

/* Announcements */
.announcements-section {
    background: var(--navy-50);
    min-height: 100vh;
    padding: 2rem 0;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: none;
    overflow: hidden;
    transition: var(--transition-normal);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.announcement-card.urgent {
    border-left: 5px solid var(--danger);
}

.announcement-card.important {
    border-left: 5px solid var(--warning);
}

.announcement-card.general {
    border-left: 5px solid var(--info);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-title {
    color: var(--navy-800);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.announcement-content {
    color: var(--navy-700);
    line-height: 1.7;
    font-size: 1rem;
}

/* Profile Section */
.profile-section {
    background: var(--navy-50);
    min-height: 100vh;
    padding: 2rem 0;
}

.profile-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

.profile-stats {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-200);
}

/* Post Item Section */
.post-item-section {
    background: var(--navy-50);
    min-height: 100vh;
    padding: 2rem 0;
}

.post-item-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.post-item-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    padding: 1.5rem 2rem;
}

.post-item-card .card-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guidelines-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* My Posts Section */
.my-posts-section {
    background: var(--navy-50);
    min-height: 100vh;
    padding: 2rem 0;
}

.my-post-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.my-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.post-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--navy-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--navy-400);
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.post-status-badge, .post-status-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.post-category {
    margin-bottom: 1rem;
}

.post-category .badge {
    color: white;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

.post-stats {
    margin-top: 0.5rem;
}

.post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-200);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-actions .btn {
    flex: 1;
    min-width: auto;
}

/* Admin Post Cards */
.admin-post-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.admin-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    flex: 1;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--navy-200);
}

.page-header h1 {
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--navy-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--navy-400);
}

.empty-state h3, .empty-state h4 {
    color: var(--navy-600);
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.cta-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
}

.image-preview-wrapper {
    text-align: center;
}

.image-preview img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-100);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-500);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-card {
        position: static;
        display: inline-flex;
        margin: 0.5rem;
    }
    
    .hero-image {
        text-align: center;
        height: auto;
        margin-top: 2rem;
    }
    
    .search-card {
        padding: 1.5rem;
    }
    
    .item-card {
        margin-bottom: 1.5rem;
    }
    
    .post-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .admin-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .search-card {
        padding: 1rem;
    }
    
    .search-card .row > div {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        text-align: center;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .welcome-header .row {
        text-align: center;
    }
    
    .welcome-header .col-lg-4 {
        margin-top: 1rem;
    }
    
    .messages-container {
        height: 80vh;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .conversation-item.active ~ .messages-area {
        display: block;
    }
    
    .post-actions {
        justify-content: center;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .page-header .row {
        text-align: center;
    }
    
    .page-header .col-lg-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .auth-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .post-image {
        align-self: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .conversation-item {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .admin-header .row,
    .welcome-header .row {
        text-align: center;
    }
    
    .cta-card .row {
        text-align: center;
    }
    
    .cta-card .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        padding-top: 0;
    }
    
    .navbar,
    .floating-card,
    .btn,
    .admin-actions,
    .post-actions {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero-section {
        background: white;
        color: black;
    }
    
    .text-white {
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --navy-700: #000000;
        --navy-800: #000000;
        --primary: #0000ff;
        --accent: #ffff00;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .card {
        border: 2px solid var(--navy-700);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid rgba(30, 64, 175, 0.5);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notification Styles */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border-left: 4px solid var(--info);
    background: white;
}

.notification-item.success {
    border-left-color: var(--success);
}

.notification-item.warning {
    border-left-color: var(--warning);
}

.notification-item.error {
    border-left-color: var(--danger);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.notification-content h6 {
    margin: 0 0 0.25rem 0;
    color: var(--navy-800);
}

.notification-content p {
    margin: 0 0 0.25rem 0;
    color: var(--navy-600);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Utility Classes */
.text-navy { color: var(--navy-700); }
.text-navy-light { color: var(--navy-500); }
.text-navy-dark { color: var(--navy-800); }
.bg-navy { background-color: var(--navy-700); }
.bg-navy-light { background-color: var(--navy-100); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.shadow-custom { box-shadow: var(--shadow-lg); }
.rounded-custom { border-radius: var(--radius-xl); }
.transition-custom { transition: var(--transition-normal); }

/* Table Styles */
.table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody td {
    border-color: var(--navy-200);
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--navy-50);
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--navy-200);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--navy-200);
    padding: 1.5rem;
}

/* Additional Component Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--navy-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: var(--navy-200);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Form Enhancements */
.input-group .form-control:focus {
    z-index: 3;
}

.input-group .btn {
    z-index: 2;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--navy-500);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Custom Checkbox and Radio */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--navy-200);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--navy-600);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary);
    background: var(--navy-50);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: white;
    border-color: var(--navy-200) var(--navy-200) white;
    border-bottom: 2px solid white;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--navy-400);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--navy-600);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--navy-800);
    font-weight: 600;
}
