/* Admin Panel CSS for WISDOM FOUNDATION Website */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ff5722;
    border-color: #ff5722;
}

.btn-primary:hover {
    background-color: #e64a19;
    border-color: #e64a19;
}

.btn-outline-primary {
    color: #ff5722;
    border-color: #ff5722;
}

.btn-outline-primary:hover {
    background-color: #ff5722;
    border-color: #ff5722;
}

/* Sidebar Styles */
.sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #ced4da;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.card-header i {
    margin-right: 0.5rem;
}

.card-body-icon {
    position: absolute;
    z-index: 0;
    top: 10px;
    right: 10px;
    font-size: 5rem;
    opacity: 0.3;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 34, 0.25);
}

/* Dashboard Stats */
.admin-dashboard {
    padding: 20px 0;
}

.dashboard-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.bg-teal {
    background: linear-gradient(135deg, #20b2aa 0%, #1a9c95 100%);
    color: white;
}

.bg-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.bg-blue {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.bg-orange {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.icon-box i {
    font-size: 24px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-badge {
    font-size: 12px;
    opacity: 0.8;
}

.stats-card {
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stats-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    opacity: 0.2;
}

.stats-card-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    margin-bottom: 20px;
}

.breadcrumb-item.active {
    color: #ff5722;
}

/* Alert Styles */
.alert {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Pagination Styles */
.pagination .page-link {
    color: #ff5722;
}

.pagination .page-item.active .page-link {
    background-color: #ff5722;
    border-color: #ff5722;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .content-wrapper {
        margin-left: 0;
    }

    .sidebar {
        position: static;
        height: auto;
        width: 100%;
    }
}

/* Custom Styles for Specific Pages */

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Profile Page */
.profile-header {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Gallery Page */
.gallery-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-item-actions {
    display: flex;
    gap: 10px;
}

.gallery-item-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Certificate Template */
.certificate-template {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.certificate-preview {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* ID Card Template */
.id-card-template {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.id-card-preview {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
