/* Main CSS File - Smartacre Ghana Ltd */
/* Additional custom styles can be added here */

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomInModal 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff8c2f;
    transform: scale(1.2);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.modal-nav-btn.prev {
    left: 20px;
}

.modal-nav-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav-btn {
        font-size: 24px;
        padding: 12px 15px;
    }
    
    .modal-nav-btn.prev {
        left: 10px;
    }
    
    .modal-nav-btn.next {
        right: 10px;
    }
    
    .modal-close {
        top: -30px;
        font-size: 32px;
    }
}

/* Scroll to Top Button Animations */
.scroll-to-top {
    animation: fadeIn 0.3s ease;
}

/* Additional utility classes */
.fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes zoomInModal {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====== ADMIN PANEL STYLES ====== */

/* Sidebar Styles */
.sidebar-active {
    background-color: #087b42 !important;
    color: #FFFFFF !important;
}

aside.bg-primary {
    background-color: #005639 !important;
}

aside.bg-primary nav a {
    color: #FFFFFF !important;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

aside.bg-primary nav a:hover {
    background-color: #087b42 !important;
    color: #FFFFFF !important;
}

aside.bg-primary nav a i {
    color: #FFFFFF !important;
}

aside.bg-primary nav hr {
    border-color: #087b42 !important;
}

/* Make all text in sidebar white */
aside.bg-primary {
    color: #FFFFFF !important;
}

aside.bg-primary a {
    color: #FFFFFF !important;
}

aside.bg-primary span {
    color: #FFFFFF !important;
}

/* Main Content Area */
main.flex-1 {
    background-color: #f9fafb !important;
}

/* Cards and Containers */
.bg-white {
    background-color: #FFFFFF !important;
    color: #1f2937 !important;
}

/* Text Contrast */
.text-primary {
    color: #005639 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-50 {
    background-color: #f9fafb !important;
}

/* Tables */
table {
    background-color: #FFFFFF !important;
    color: #1f2937 !important;
}

table th {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600 !important;
}

table td {
    color: #1f2937 !important;
}

/* Ensure proper contrast for all text */
body {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

/* Buttons */
.inline-block.bg-blue-600 {
    background-color: #2563eb !important;
    color: #FFFFFF !important;
}

.inline-block.bg-blue-600:hover {
    background-color: #1d4ed8 !important;
    color: #FFFFFF !important;
}

/* Header */
header.bg-white {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

header.bg-white h1 {
    color: #005639 !important;
}

header.bg-white span {
    color: #374151 !important;
}

/* Status Badges */
.bg-yellow-100 { background-color: #fef3c7 !important; color: #92400e !important; }
.text-yellow-800 { color: #92400e !important; }

.bg-blue-100 { background-color: #dbeafe !important; color: #1e40af !important; }
.text-blue-800 { color: #1e40af !important; }

.bg-purple-100 { background-color: #e9d5ff !important; color: #6b21a8 !important; }
.text-purple-800 { color: #6b21a8 !important; }

.bg-green-100 { background-color: #dcfce7 !important; color: #15803d !important; }
.text-green-800 { color: #15803d !important; }

.bg-red-100 { background-color: #fee2e2 !important; color: #991b1b !important; }
.text-red-800 { color: #991b1b !important; }

.bg-gray-100 { background-color: #f3f4f6 !important; color: #374151 !important; }
.text-gray-800 { color: #1f2937 !important; }

/* Alert Box */
.bg-blue-50 {
    background-color: #eff6ff !important;
}

.border-blue-500 {
    border-color: #3b82f6 !important;
}

.text-blue-900 {
    color: #111827 !important;
}

.text-blue-700 {
    color: #1e40af !important;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
textarea,
select {
    color: #1f2937 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #d1d5db !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #005639 !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 57, 0.1) !important;
}

textarea {
    color: #1f2937 !important;
}

/* Links and anchors - except sidebar links */
main a,
header a {
    color: #0891b2 !important;
}

main a:hover,
header a:hover {
    color: #0e7490 !important;
}

/* Ensure shadows work */
.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Border colors */
.border-gray-200 {
    border-color: #e5e7eb !important;
}

.border-gray-300 {
    border-color: #d1d5db !important;
}

.border-green-600 {
    border-color: #16a34a !important;
}