/* =========================================
   Professional Footer Styles
   Tailwind-inspired Utility Classes
   ========================================= */

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Spacing Utilities */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-x-1>*+* {
    margin-left: 0.25rem;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

.gap-y-1 {
    row-gap: 0.25rem;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.inline-block {
    display: inline-block;
}

/* Display */
.hidden {
    display: none;
}

/* Colors - Background */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Colors - Text */
.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-blue-600 {
    color: #2563eb;
}

/* Colors - Border */
.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.break-all {
    word-break: break-all;
}

/* Sizing */
.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-10 {
    height: 2.5rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-auto {
    width: auto;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Hover States */
.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:text-gray-600:hover {
    color: #4b5563;
}

/* Footer Specific Enhancements */
footer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

footer a {
    text-decoration: none;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer svg {
    flex-shrink: 0;
}

/* Link Hover Effect */
footer a:not(.no-hover) {
    position: relative;
}

footer a:not(.no-hover)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2563eb;
    transition: width 0.2s ease;
}

footer a:not(.no-hover):hover::after {
    width: 100%;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:space-y-0>*+* {
        margin-top: 0;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:justify-between {

        /* Colors - Text */
        .text-gray-800 {
            color: #1f2937;
        }

        .text-gray-700 {
            color: #374151;
        }

        .text-gray-600 {
            color: #4b5563;
        }

        .text-gray-500 {
            color: #6b7280;
        }

        .text-gray-400 {
            color: #9ca3af;
        }

        .text-gray-300 {
            color: #d1d5db;
        }

        .text-blue-600 {
            color: #2563eb;
        }

        /* Colors - Border */
        .border-gray-100 {
            border-color: #f3f4f6;
        }

        .border-gray-200 {
            border-color: #e5e7eb;
        }

        .border-t {
            border-top-width: 1px;
            border-top-style: solid;
        }

        /* Typography */
        .text-xs {
            font-size: 0.75rem;
            line-height: 1rem;
        }

        .text-sm {
            font-size: 0.875rem;
            line-height: 1.25rem;
        }

        .text-2xl {
            font-size: 1.5rem;
            line-height: 2rem;
        }

        .font-bold {
            font-weight: 700;
        }

        .font-semibold {
            font-weight: 600;
        }

        .uppercase {
            text-transform: uppercase;
        }

        .tracking-wider {
            letter-spacing: 0.05em;
        }

        .leading-relaxed {
            line-height: 1.625;
        }

        .text-center {
            text-align: center;
        }

        .text-left {
            text-align: left;
        }

        .whitespace-nowrap {
            white-space: nowrap;
        }

        .break-all {
            word-break: break-all;
        }

        /* Sizing */
        .h-4 {
            height: 1rem;
        }

        .h-5 {
            height: 1.25rem;
        }

        .h-10 {
            height: 2.5rem;
        }

        .w-4 {
            width: 1rem;
        }

        .w-5 {
            width: 1.25rem;
        }

        .w-auto {
            width: auto;
        }

        /* Transitions */
        .transition-colors {
            transition-property: color, background-color, border-color;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 200ms;
        }

        /* Hover States */
        .hover\:text-blue-600:hover {
            color: #2563eb;
        }

        .hover\:text-gray-600:hover {
            color: #4b5563;
        }

        /* Footer Specific Enhancements */
        footer {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
        }

        footer a {
            text-decoration: none;
        }

        footer ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        footer svg {
            flex-shrink: 0;
        }

        /* Link Hover Effect */
        footer a:not(.no-hover) {
            position: relative;
        }

        footer a:not(.no-hover)::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: #2563eb;
            transition: width 0.2s ease;
        }

        footer a:not(.no-hover):hover::after {
            width: 100%;
        }

        /* Responsive Design */
        @media (min-width: 768px) {
            .md\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .md\:flex-row {
                flex-direction: row;
            }

            .md\:space-y-0>*+* {
                margin-top: 0;
            }

            .md\:text-left {
                text-align: left;
            }

            .md\:justify-between {
                justify-content: space-between;
            }

            .md\:inline {
                display: inline;
            }
        }

        @media (min-width: 1024px) {
            .lg\\:grid-cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        /* Mobile Optimizations */
        @media (max-width: 767px) {
            .px-6 {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .py-10 {
                padding-top: 1.5rem;
                padding-bottom: 1.5rem;
            }

            footer {
                margin: 10px !important;
                order: 999;
                /* Ensure footer displays last on mobile */
            }

            /* Ensure app-container uses flexbox on mobile */
            .app-container {
                display: flex !important;
                flex-direction: column !important;
            }

            .sidebar {
                order: 1 !important;
                /* Sidebar displays first */
            }

            .main-content {
                order: 2 !important;
                /* Main content displays second */
            }

            .text-2xl {
                font-size: 1.25rem;
                line-height: 1.75rem;
            }

            .gap-8 {
                gap: 1.5rem;
            }
        }

        /* Print Styles */
        @media print {
            footer {
                border: 1px solid #e5e7eb !important;
                box-shadow: none !important;
            }
        }