/* Global styles for KEN KIAI */

/* Typography */
body, .font-primary, .font-secondary, h1, h2, h3, h4, h5, h6, .nav-link, .btn, button, input, textarea, select {
    font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Soften black borders while preserving shadows */
.border-black { --tw-border-opacity: 1 !important; border-color: rgb(229 231 235 / var(--tw-border-opacity)) !important; }
.border-2.border-black, .border-4.border-black, .border-8.border-black,
.border-t.border-black, .border-b.border-black, .border-l.border-black, .border-r.border-black,
.border-x.border-black, .border-y.border-black { --tw-border-opacity: 1 !important; border-color: rgb(229 231 235 / var(--tw-border-opacity)) !important; }

/* Home page counter badges */
.counter-badge {
    min-width: 2rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.counter-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Responsive counter adjustments */
@media (max-width: 640px) {
    .counter-badge {
        min-width: 1.75rem;
        min-height: 1.25rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .counter-badge {
        min-width: 2.5rem;
        min-height: 2rem;
        font-size: 1.125rem;
    }
}

/* Calendar specific styles */
#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    min-height: 80px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: white;
    transition: background-color 0.2s;
    position: relative;
}

.calendar-day:hover {
    background-color: #f9fafb;
}

.calendar-day.has-events {
    background-color: #eff6ff;
}

.calendar-event {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Fix for calendar header days */
#calendar-grid > div:first-child,
#calendar-grid > div:nth-child(2),
#calendar-grid > div:nth-child(3),
#calendar-grid > div:nth-child(4),
#calendar-grid > div:nth-child(5),
#calendar-grid > div:nth-child(6),
#calendar-grid > div:nth-child(7) {
    background-color: #f3f4f6;
    font-weight: bold;
    text-align: center;
    padding: 8px 4px;
    border-bottom: 2px solid #d1d5db;
}


