/* Custom Styles for NGO Portal */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Custom Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,0 1000,100 0,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    position: relative;
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
}

/* Stats Cards */
.stat-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

/* Donation Amount Buttons */
.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Social Links */
.social-links a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40, #212529) !important;
}

footer h5, footer h6 {
    color: var(--primary-color) !important;
}

/* Impact Numbers */
.impact-number h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
}

/* Team Cards */
.card img {
    transition: all 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Value Icons */
.value-icon {
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .stat-card {
        margin-bottom: 2rem;
    }
    
    .impact-number h2 {
        font-size: 2rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: linear-gradient(180deg, #343a40, #212529);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
}

/* Data Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Service Card Styles */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-image-container {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}

.service-overlay {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-number {
    z-index: 2;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.btn-primary.rounded-pill {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary.rounded-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Animation for service cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

/* Slider Animation */
.animate-slide-up {
    animation: slideUp 1s ease-out;
    animation-fill-mode: both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}

/* Notice Board Styles */
.notice-board {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
    border-top: 3px solid #ff8f00;
    border-bottom: 3px solid #ff8f00;
    position: relative;
    overflow: hidden;
}

.notice-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 30px;
    line-height: 30px;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 60s linear infinite;
    white-space: nowrap;
}

.notice-item {
    display: inline-block;
    margin-right: 3rem;
    color: #212529;
    font-weight: 500;
}

.notice-item strong {
    color: #d63384;
    font-weight: 700;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.notice-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider,
    .hero-slide,
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide .lead {
        font-size: 1.1rem;
    }
    
    .notice-board h5 {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .notice-ticker {
        height: 50px;
        line-height: 25px;
    }
    
    .ticker-content {
        animation-duration: 40s;
    }
    
    .notice-item {
        margin-right: 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-slider,
    .hero-slide,
    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 2rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .notice-board .col-md-2,
    .notice-board .col-md-8,
    .notice-board .col-md-2 {
        margin-bottom: 0.5rem;
    }
}