/* Modern Card Styles */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1;
}

.stat-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.info-content {
    color: #4B5563;
}

.info-content p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-content i {
    color: var(--primary-color);
}

/* Table Styles */
.table {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.table thead {
    background-color: #F9FAFB;
}

.table th {
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table td {
    color: #4B5563;
}

.table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Badge Styles */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 9999px;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid transparent;
}

.btn-back:hover {
    background-color: #E5E7EB;
}

/* Baranggay Image */
.baranggay-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #6B7280;
    font-size: 1.125rem;
    max-width: 65ch;
}

/* Container */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Edit Modal Styles */
.modal-content {
    border-radius: 1rem;
    background-color: var(--bg-primary);
}

.modal-header {
    padding: 1.5rem;
    background-color: var(--bg-primary);
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    background-color: var(--bg-primary);
}

#editBaranggayForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#editBaranggayForm .form-label {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#editBaranggayForm .form-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

#editBaranggayForm .form-control {
    border: 1px solid var(--outline);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#editBaranggayForm .form-control:hover {
    border-color: var(--primary);
}

#editBaranggayForm .form-control:focus {
    box-shadow: 0 0 0 2px rgba(49, 122, 136, 0.1);
    border-color: var(--primary);
    background-color: var(--bg-primary);
}

#editBaranggayForm .input-group {
    position: relative;
    width: 100%;
}

#editBaranggayForm .input-group-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--outline);
    border-right: none;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem 0 0 0.5rem;
}

#editBaranggayForm .input-group:hover .input-group-text,
#editBaranggayForm .input-group:hover .form-control {
    border-color: var(--primary);
}

#editBaranggayForm .input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

#editBaranggayForm small.text-muted {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    margin-top: 0.5rem;
    display: block;
}

#editBaranggayForm .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

#editBaranggayForm .btn.primary-color {
    background-color: var(--primary);
    border: none;
}

#editBaranggayForm .btn.primary-color:hover {
    opacity: 0.9;
}

#editBaranggayForm .btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--outline);
    color: var(--text-primary);
}

#editBaranggayForm .btn-secondary:hover {
    background-color: var(--bg-tertiary);
}

#editBaranggayForm .row {
    display: flex;
    margin: 0 -0.75rem;
}

#editBaranggayForm .col-md-6 {
    padding: 0 0.75rem;
    flex: 0 0 50%;
}

/* Responsive adjustments for the modal */
@media (max-width: 768px) {
    #editBaranggayForm .row {
        flex-direction: column;
    }

    #editBaranggayForm .col-md-6 {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    #editBaranggayForm .col-md-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    #editBaranggayForm .btn {
        padding: 0.5rem 1rem;
    }
} 