/* Modern Laravel CMS Custom Styles */

/* Enhanced Content Container */
.content-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    
    a.row-title {
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease-in-out;
        
        &:hover {
            color: #2563eb;
            text-decoration: underline;
        }
    }
    
    color: #374151;
    
    .table {
        color: #374151;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        
        thead tr {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-bottom: 2px solid #e5e7eb;
        }
        
        thead th {
            font-weight: 600;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.75rem;
            padding: 1rem;
        }
    }
    
    .table td, .table th {
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        vertical-align: middle;
        
        .badge {
            background-color: #3b82f6;
            color: white;
            font-weight: 500;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
    }
    
    .table tbody tr {
        transition: background-color 0.15s ease-in-out;
        
        &:hover {
            background-color: #f8fafc;
        }
    }
}

/* Modern Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }
    
    .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 0.5rem;
    }
    
    .card-description {
        color: #6b7280;
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Enhanced Form Styling */
.form-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    
    .form-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
        
        label {
            display: block;
            font-weight: 500;
            color: #374151;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }
        
        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            transition: all 0.2s ease-in-out;
            background-color: #ffffff;
            
            &:focus {
                outline: none;
                border-color: #3b82f6;
                box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
            }
            
            &::placeholder {
                color: #9ca3af;
            }
        }
        
        .form-text {
            font-size: 0.75rem;
            color: #6b7280;
            margin-top: 0.25rem;
        }
    }
}

/* Modern Button Enhancements */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    
    &.btn-primary {
        background-color: #3b82f6;
        color: white;
        
        &:hover {
            background-color: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }
    }
    
    &.btn-secondary {
        background-color: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
        
        &:hover {
            background-color: #e2e8f0;
            color: #334155;
        }
    }
    
    &.btn-danger {
        background-color: #ef4444;
        color: white;
        
        &:hover {
            background-color: #dc2626;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }
    }
}

/* Enhanced Alert Styling */
.alert-modern {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
    &.alert-success {
        background-color: #ecfdf5;
        color: #047857;
        border-left: 4px solid #10b981;
    }
    
    &.alert-danger {
        background-color: #fef2f2;
        color: #b91c1c;
        border-left: 4px solid #ef4444;
    }
    
    &.alert-warning {
        background-color: #fffbeb;
        color: #b45309;
        border-left: 4px solid #f59e0b;
    }
    
    &.alert-info {
        background-color: #ecfeff;
        color: #0e7490;
        border-left: 4px solid #06b6d4;
    }
}

/* Modern Sidebar Enhancements */
.sidebar-modern {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    .nav-item {
        margin-bottom: 0.25rem;
        
        .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            margin: 0 0.5rem;
            font-weight: 500;
            transition: all 0.2s ease-in-out;
            
            &:hover {
                color: white;
                background-color: rgba(255, 255, 255, 0.1);
                transform: translateX(4px);
            }
            
            &.active {
                color: white;
                background-color: rgba(255, 255, 255, 0.2);
                font-weight: 600;
            }
        }
    }
    
    .sidebar-heading {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 1rem 1.5rem 0.5rem;
        margin-top: 1rem;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* Animation Enhancements */
.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus States for Accessibility */
.focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* Content Status Indicators */
.status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    cursor: help;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.status-active {
    color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-inactive {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-decoration: line-through;
}

.status-no-index {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-weight: 600;
}

.status-warning {
    color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Icon-only status indicators */
.status-indicator:not(:has(span)) {
    padding: 0.25rem;
    min-width: 1.5rem;
    justify-content: center;
}

/* Hover effects for status container */
.status-container:hover .status-indicator {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-name-no-index {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Content page name links */
.content-page-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.content-page-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.content-page-link.page-name-no-index:hover {
    color: #dc2626;
}

/* Page name with status indicators */
.page-name-with-status {
    cursor: help;
    display: inline-block;
}

.text-strikethrough {
    text-decoration: line-through;
}

.status-tick {
    color: #10b981;
    font-weight: bold;
    margin-left: 0.25rem;
    font-size: 0.9em;
}

/* Enhanced content page link styling */
.content-page-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.content-page-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.content-page-link.text-danger{
    color: #dc2626;
}

.content-page-link.text-strikethrough {
    text-decoration: line-through underline;
}

/* Print Styles */
@media print {
    .sidebar-modern,
    .btn-modern,
    .alert-modern {
        display: none !important;
    }
    
    .content-container {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

.ticket-content p {
    font-size:16px;
    color: #000000;
}

span#staleTicketMessage {
    color: red;
}