:root {
    --primary: #1a6fb3;
    --primary-dark: #0f4f84;
    --accent: #f18d3f;
    --accent-dark: #d9771c;
    --success: #2f855a;
    --danger: #c53030;
    --bg: #f5f9ff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #52637a;
    --border: rgba(26, 111, 179, 0.16);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

/* General Styles */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(26, 111, 179, 0.12);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Card Styles */
.card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.card:hover,
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12) !important;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Button Styles */
.btn {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--accent);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(26, 111, 179, 0.1);
    color: var(--text);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Form Styles */
.form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 111, 179, 0.18);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 80px 20px;
    margin-bottom: 3rem;
    color: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    color: #fff;
}

/* Statistics Cards */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Profile Card */
.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-card img {
    transition: transform 0.3s ease;
}

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

.profile-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Message Styles */
.message-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

.message-item.unread {
    background-color: #e7f3ff;
}

.message-bubble {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 70%;
    margin-bottom: 10px;
}

.message-bubble.sent {
    background-color: var(--primary);
    color: white;
    margin-left: auto;
    text-align: right;
}

.message-bubble.received {
    background-color: #e9ecef;
    color: #333;
    margin-right: auto;
    text-align: left;
}

/* Notification Styles */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

.notification-item.unread {
    background-color: rgba(26, 111, 179, 0.12);
}

/* Search Filters */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Profile View */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 18px 18px 0 0;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

.profile-info-value {
    font-size: 1.1rem;
    color: #333;
}

/* Member list (home/search) */
.member-section-title{
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.member-section-title .title{
    font-weight: 800;
    font-size: 1.05rem;
    color: #333;
    position: relative;
    padding-bottom: 8px;
}

.member-section-title .title:after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    border-radius: 10px;
    background: #e83e8c;
}

.member-list{ display:flex; flex-direction:column; gap: 12px; }

.member-row{
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.member-row:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.member-badge{
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.member-main{ display:flex; align-items:center; justify-content: space-between; gap: 12px; }

.member-avatar{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f3f5;
    flex: 0 0 auto;
}

.member-info{ flex: 1 1 auto; min-width: 0; }

.member-name{
    font-weight: 800;
    color: #333;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-sub{
    color: #6c757d;
    font-size: .92rem;
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.member-meta{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eef0f3;
    color: #6c757d;
    font-size: .92rem;
    display:flex;
    flex-wrap: wrap;
    gap: 16px;
}

.member-meta i{ color: var(--primary); }

.member-row a.member-link{ color: inherit; text-decoration: none; display:block; }
.member-row a.member-link:hover{ color: inherit; }

/* Dashboard Stats */
.dashboard-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-stat i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-stat h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    margin-top: 5rem;
    background: #0f172a;
    color: #f8fafc;
}

footer a {
    color: #dbeafe;
}

footer a:hover {
    color: #fff;
}

footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid currentColor;
    border-right-color: transparent;
}

/* Badge Styles */
.badge-verified {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Image Placeholder */
img[src=""], img:not([src]) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Utility Classes */
.text-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
