/* Custom CSS for standardizing layouts across all non-admin pages */

/* Standardized container - optimized for larger screens */
.kt-container {
    max-width: 80rem; /* 1280px - standard size for smaller screens */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* 16px - equivalent to px-4 */
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .kt-container {
        padding-left: 1.5rem; /* 24px - equivalent to sm:px-6 */
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .kt-container {
        padding-left: 2rem; /* 32px - equivalent to lg:px-8 */
        padding-right: 2rem;
    }
}

@media (min-width: 1440px) {
    .kt-container {
        max-width: 120rem; /* 1920px - wider for 1440p screens */
        padding-left: 2.5rem; /* 40px - more padding for very wide screens */
        padding-right: 2.5rem;
    }
}

@media (min-width: 1920px) {
    .kt-container {
        max-width: 120rem; /* 1920px - maintain same width for 4K screens */
        padding-left: 3rem; /* 48px - proportional padding */
        padding-right: 3rem;
    }
}

/* Standardized card body padding */
.kt-card-body-default {
    padding: 1.25rem; /* 20px - equivalent to p-5 */
}

@media (min-width: 1024px) {
    .kt-card-body-default {
        padding: 1.875rem; /* 30px - equivalent to lg:p-7.5 */
    }
}

/* Page header standardization */
.kt-page-header {
    margin-bottom: 1.25rem; /* 20px - equivalent to mb-5 */
}

@media (min-width: 1024px) {
    .kt-page-header {
        margin-bottom: 1.875rem; /* 30px - equivalent to lg:mb-7.5 */
        padding-bottom: 1.875rem; /* 30px - equivalent to lg:pb-7.5 */
    }
}

/* Breadcrumb standardization */
.kt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: rgb(75 85 99); /* text-gray-600 */
}

.kt-breadcrumb a {
    color: rgb(75 85 99); /* text-gray-600 */
    transition: color 150ms ease-in-out;
}

.kt-breadcrumb a:hover {
    color: var(--tw-color-primary); /* hover:text-primary */
}

.kt-breadcrumb .active {
    color: rgb(55 65 81); /* text-gray-700 */
}

/* Page title standardization */
.kt-page-title {
    font-size: 1.25rem; /* 20px - equivalent to text-xl */
    font-weight: 600; /* equivalent to font-semibold */
    line-height: 1; /* equivalent to leading-none */
    color: rgb(17 24 39); /* text-gray-900 */
    margin-bottom: 0.5rem; /* 8px */
}

/* Dark mode support - using data attributes instead of prefers-color-scheme */
[data-kt-theme="dark"] .kt-page-title {
    color: rgb(243 244 246); /* text-gray-100 */
}

[data-kt-theme="dark"] .kt-breadcrumb {
    color: rgb(156 163 175); /* text-gray-400 */
}

[data-kt-theme="dark"] .kt-breadcrumb a {
    color: rgb(156 163 175); /* text-gray-400 */
}

[data-kt-theme="dark"] .kt-breadcrumb .active {
    color: rgb(229 231 235); /* text-gray-200 */
}

/* Content spacing standardization */
.kt-content-section {
    margin-bottom: 1.25rem; /* 20px - equivalent to mb-5 */
}

@media (min-width: 1024px) {
    .kt-content-section {
        margin-bottom: 1.875rem; /* 30px - equivalent to lg:mb-7.5 */
    }
}

/* Grid gap standardization */
.kt-grid-gap {
    gap: 1.25rem; /* 20px - equivalent to gap-5 */
}

@media (min-width: 1024px) {
    .kt-grid-gap {
        gap: 1.875rem; /* 30px - equivalent to lg:gap-7.5 */
    }
}

/* Card header standardization */
.kt-card-header {
    padding: 1.25rem; /* 20px - equivalent to p-5 */
}

@media (min-width: 1024px) {
    .kt-card-header {
        padding: 1.5rem; /* 24px - equivalent to lg:p-6 */
    }
}

/* Card title standardization */
.kt-card-title {
    font-size: 1.125rem; /* 18px - equivalent to text-lg */
    font-weight: 600; /* equivalent to font-semibold */
    margin: 0;
}

/* Card footer standardization */
.kt-card-footer {
    padding: 1.25rem; /* 20px - equivalent to p-5 */
}

@media (min-width: 1024px) {
    .kt-card-footer {
        padding: 1.5rem; /* 24px - equivalent to lg:p-6 */
    }
}