/* Tailwind Compatibility Layer for Legacy Bootstrap Classes */

/* Grid System Fallback using Flexbox matches */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

[class*="col-"] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }

    .col-md-4 {
        width: 33.3333%;
    }

    .col-md-8 {
        width: 66.6667%;
    }

    .col-md-12 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.3333%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    /* shadow-md */
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.custom--card {
    max-width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form--label,
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    /* slate-700 */
    margin-bottom: 0.5rem;
}

.form-control,
.form--control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #cbd5e1;
    /* slate-300 */
    border-radius: 0.5rem;
    /* rounded-lg */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.form-control:focus,
.form--control:focus {
    border-color: #6366f1;
    /* indigo-500 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    /* ring-indigo-500/20 */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--base,
.btn-primary {
    background-color: #4f46e5;
    /* indigo-600 */
    color: white;
}

.btn--base:hover,
.btn-primary:hover {
    background-color: #4338ca;
    /* indigo-700 */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.w-100 {
    width: 100%;
}

/* Utilities */
.my-120 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.text--danger {
    color: #ef4444;
    font-size: 0.875rem;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* Hide broken images if needed, but better to fix layout */
img[alt="img"] {
    color: transparent;
    /* Hides alt text */
}