/* Remove redundant font import since it's loaded in index.php */
body {
    font-family: 'Roboto', sans-serif;
}

/* Header styling to fix logo and title spacing */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header img {
    object-fit: contain;
    max-width: 200px; /* Adjusted for better proportionality */
}

header h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.75rem; /* Slightly smaller for better fit */
    animation: fadeIn 1s ease-in;
}

.dark header h1 {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.2);
}

/* Platform card hover effects */
.platform-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dark .platform-card {
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Button and link hover effects */
.footer-links a, button, a.button {
    transition: all 0.3s ease;
}

.footer-links a:hover, button:hover, a.button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* Search input styling */
#searchInput {
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Table styling for better readability and PDF compatibility */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

th, td {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0.5rem;
}

th {
    font-weight: 600;
}

.dark th, .dark td {
    color: #ffffff;
}

/* Dark mode overrides */
.dark {
    background: linear-gradient(to bottom right, #1f2937, #111827);
}

.dark .bg-white {
    background: #1f2937;
}

.dark .text-gray-900 {
    color: #ffffff;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .bg-gray-100 {
    background: #374151;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    font-style: italic;
    background: linear-gradient(to right, #e0f2fe, #bfdbfe);
    color: #1f2937;
    position: relative;
    margin: 0;
}

.dark blockquote {
    border-left-color: #60a5fa;
    background: linear-gradient(to right, #1e3a8a, #1e40af);
    color: #ffffff;
}

/* Animation for header */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer styling */
footer {
    padding-bottom: 1rem;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }


    header h1 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.875rem; /* Slightly larger than 0.9rem for readability */
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .platform-card {
        min-height: auto;
    }
}

/* Ensure buttons are styled for dark mode */
.dark .bg-gradient-to-r.from-blue-500.to-blue-600 {
    background: linear-gradient(to right, #2563eb, #1e40af);
}

.dark .bg-gradient-to-r.from-green-500.to-green-600 {
    background: linear-gradient(to right, #16a34a, #15803d);
}

.dark .bg-gradient-to-r.from-red-500.to-orange-600 {
    background: linear-gradient(to right, #dc2626, #ea580c);
}

/* Highlight specific section in dark mode with bright yellow */
.dark .flex.items-center.justify-center.mb-4,
.dark .flex.items-center.justify-center.sm\:mb-6 {
    color: #facc15;
}

.dark .flex.items-center.justify-center.mb-4 svg,
.dark .flex.items-center.justify-center.sm\:mb-6 svg {
    fill: #facc15;
    stroke: #facc15;
}
body.dark, html.dark {
    background: linear-gradient(to bottom right, #1f2937, #111827) !important;
    color: white;
    min-height: 100vh;
}
