/* 
 * ServiceDesk custom styles
 * These styles complement Tailwind CSS
 */

/* Animation for flash messages */
.flash-message {
    transition: opacity 0.3s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Custom styles for JSON editor */
.jsoneditor {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
}

.jsoneditor-menu {
    background-color: #3b82f6 !important;
    border-bottom: 1px solid #2563eb !important;
}

/* Template field styles */
.template-field {
    transition: box-shadow 0.2s ease-in-out;
}

.template-field:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Module Overview Styles */
.module-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.module-category-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.module-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 0.5rem;
}

.module-category-content {
    position: relative;
    z-index: 1;
}

.hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Custom border colors for categories */
.border-purple {
    border-color: #8b5cf6 !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

/* Responsive module grid */
@media (max-width: 768px) {
    .module-card {
        margin-bottom: 1rem;
    }
}

/* Animation for module loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Category badge styling */
.category-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Module count indicator */
.module-count {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Additional Bootstrap color utility */
.border-purple {
    border-color: #8b5cf6 !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge i {
    margin-right: 0.25rem;
}

/* Form element focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Button groups */
.button-group {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}