/* CSS Personnalisé pour CoproShare - Design Premium & Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0b192c;
    --bg-medium: #1e3e62;
    --text-light: #f8f9fa;
    --text-muted: #b2bec3;
    --accent-gold: #f1c40f;
    --accent-gold-hover: #f39c12;
    --accent-blue: #00d2d3;
    --accent-red: #ff7675;
    --glass-bg: rgba(30, 62, 98, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #112233 50%, var(--bg-medium) 100%);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Glassmorphism containers */
.glass-card {
    background: rgba(11, 25, 44, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(241, 196, 15, 0.1);
}

.glass-card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 196, 15, 0.25);
}

/* Navigation */
.navbar-custom {
    background: rgba(11, 25, 44, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand span {
    color: var(--accent-gold);
}

.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-gold);
}

/* Buttons */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-outline-gold {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

/* Forms */
.form-control-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.15);
    color: var(--text-light);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

select.form-control-custom option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Badges and Roles */
.badge-role-locataire {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-role-proprietaire {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-role-gestionnaire {
    background-color: rgba(241, 196, 15, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-charge {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Dashboard Widgets */
.stat-card {
    border-left: 4px solid var(--accent-gold);
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Sidebar structure inside dashboard */
.dash-sidebar {
    height: 100%;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.dash-menu-item:hover,
.dash-menu-item.active {
    color: var(--accent-gold);
    background: rgba(241, 196, 15, 0.08);
}

.dash-menu-item svg {
    margin-right: 12px;
}

/* Messagerie */
.message-list {
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    transition: background 0.2s ease;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.message-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 25, 44, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 196, 15, 0.3);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px !important;
    }
}
