/* Theme Styles */

/* Global transitions for smooth theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode styles */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Light mode styles */
html.light {
    color-scheme: light;
}

html.light body {
    background-color: #f7fafc;
    color: #2d3748;
}

/* Background colors */
html.dark .bg-white {
    background-color: #2d3748 !important;
}

html.dark .bg-gray-50 {
    background-color: #1a202c !important;
}

html.dark .bg-gray-100 {
    background-color: #2d3748 !important;
}

/* Text colors */
html.dark .text-gray-700 {
    color: #e2e8f0 !important;
}

html.dark .text-gray-800 {
    color: #f7fafc !important;
}

html.dark .text-gray-500 {
    color: #a0aec0 !important;
}

html.dark .text-gray-600 {
    color: #cbd5e0 !important;
}

/* Border colors */
html.dark .border-gray-200 {
    border-color: #4a5568 !important;
}

html.dark .border-gray-100 {
    border-color: #4a5568 !important;
}

/* Form elements */
html.dark input, 
html.dark select, 
html.dark textarea {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Tables */
html.dark .bg-gray-50 th {
    background-color: #2d3748 !important;
}

html.dark tbody tr {
    background-color: #1a202c !important;
}

html.dark tbody tr:hover {
    background-color: #2d3748 !important;
}

/* Cards and shadows */
html.dark .shadow-md, 
html.dark .shadow-lg, 
html.dark .shadow-xl {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 
                0 2px 4px -1px rgba(0, 0, 0, 0.6) !important;
}

/* Hover states */
html.dark .hover\:bg-gray-50:hover {
    background-color: #2d3748 !important;
}

/* Admin panel specific */
html.dark #notifications-panel,
html.dark #user-menu-panel,
html.dark #language-panel {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
}

html.dark #notifications-panel h4,
html.dark #user-menu-panel a,
html.dark #language-panel a {
    color: #e2e8f0 !important;
}

html.dark #notifications-panel .border-gray-200 {
    border-color: #4a5568 !important;
}

html.dark .hover\:bg-red-50:hover {
    background-color: rgba(254, 178, 178, 0.1) !important;
}

html.dark .hover\:bg-indigo-50:hover {
    background-color: rgba(104, 117, 245, 0.1) !important;
}

/* Sidebar in dark mode */
html.dark aside {
    background: linear-gradient(to bottom, #1a365d, #2c5282) !important;
}

html.dark aside .border-indigo-700 {
    border-color: #2c5282 !important;
}

html.dark #mobileSidebar .bg-black {
    opacity: 0.7 !important;
}

/* Navbar */
html.dark .bg-purple-700 {
    background-color: #4a5568 !important;
}

/* Avatar in dark mode */
html.dark .text-purple-700 {
    color: #4c51bf !important;
}

/* Dropdown items in dark mode */
html.dark .dropdown-menu {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
}

/* Dark mode toggle button */
#dark-mode-toggle {
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

html.dark #dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

 

.left-welcome-text {
  background-color: #0c0c6f !important;
  margin-top: 29px;
  margin-bottom: 29px;
}

/* Responsive Footer Styles */
.footer {
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-brand {
    margin-bottom: 1.5rem;
}
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-logo {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}
.footer-desc {
    color: #c7d2fe;
    margin-bottom: 1rem;
}
.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-social-link {
    color: #c7d2fe;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.footer-social-link:hover {
    color: #fff;
}
.footer-section {
    margin-bottom: 1.5rem;
}
.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-link {
    color: #c7d2fe;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fff;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    color: #c7d2fe;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    font-size: 0.97rem;
}
.footer-contact-item i {
    margin-top: 0.2rem;
    min-width: 1.1rem;
    text-align: center;
}
.footer-bottom {
    border-top: 1px solid #3b82f6;
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-bottom-link {
    color: #c7d2fe;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-link:hover {
    color: #fff;
}
.footer-copyright {
    color: #c7d2fe;
    font-size: 0.97rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-brand {
        margin-bottom: 0;
    }
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}