/* Custom styles for BNI Give-Ask Platform with Bootstrap */

/* Custom color variables */
:root {
    --bs-primary: #ff385c;
    --bs-primary-hover: #e31b5f;
    --bs-secondary: #008489;
    --bs-secondary-hover: #006c70;
    --bs-light: #f8f9fa;
    --bs-border: #e9ecef;
}

/* Custom button styles */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Custom card styles */
.card {
    border: 1px solid var(--bs-border);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--bs-light);
    border-bottom: 1px solid var(--bs-border);
}

/* Custom form styles */
.form-control:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 137, 0.25);
}

.form-select:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 137, 0.25);
}

/* Custom alert styles */
.alert-success {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Custom table styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--bs-light);
    border-bottom: 2px solid var(--bs-border);
    font-weight: 600;
    color: #495057;
}

/* Custom navigation styles */
.navbar-brand {
    color: var(--bs-primary) !important;
}

.nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Custom badge styles */
.badge {
    font-size: 0.75em;
}

/* Custom spacing utilities */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Custom responsive utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .table-responsive {
        border: none;
    }
}

/* Admin dashboard hover effects */
.stat-card:hover, .action-buttons .btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
}

/* Navigation link hover effects */
.navbar-nav .nav-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* Left sidebar styles */
.left-sidebar .sidebar-link:hover {
    background: #e9ecef !important;
    transform: translateX(5px) !important;
}

.left-sidebar .sidebar-link.active {
    background: #C8102E !important;
    color: white !important;
    border-left: 4px solid #a02622 !important;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3) !important;
}

/* Form styling improvements */
.form-group {
    margin-bottom: 1.5rem !important;
}

.form-group label {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.form-control, .form-select {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #C8102E !important;
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15) !important;
    transform: translateY(-2px) !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px) !important;
}

/* Page-specific active link colors */
.left-sidebar .sidebar-link[href*="dashboard"].active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="gives/add"].active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="gives"]:not([href*="add"]):not([href*="browse"]).active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="browse"].active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="asks/add"].active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="asks"]:not([href*="add"]).active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="matches"].active { background: #C8102E !important; border-left-color: #a02622 !important; }
.left-sidebar .sidebar-link[href*="notifications"].active { background: #C8102E !important; border-left-color: #a02622 !important; }


/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .left-sidebar {
        width: 250px !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-sidebar.show {
        transform: translateX(0);
    }

    main {
        margin-left: 0 !important;
    }
}

/* Custom dashboard styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #222222;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--bs-border);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quick-stats {
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quick-stats p {
    margin: 0.5rem 0;
    color: #495057;
}

.quick-stats p:first-child {
    font-weight: 600;
    color: var(--bs-secondary);
}

/* Custom list styles */
.list-group-item {
    border: 1px solid var(--bs-border);
    background-color: #ffffff;
}

.list-group-item:hover {
    background-color: var(--bs-light);
}

/* Custom tag styles */
.tag {
    display: inline-block;
    background-color: var(--bs-secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Custom empty state styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Custom footer styles */
.footer {
    background-color: var(--bs-light);
    border-top: 1px solid var(--bs-border);
    padding: 2rem 0;
    margin-top: 3rem;
}