/* Global Professional Styles for Unsuspicious Industries Intranet */

/* Base Styles */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8f9fa;
}

/* Professional Card Styling */
.professional-card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.professional-button {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.professional-input {
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.professional-input:focus {
    border-color: #495057;
    box-shadow: 0 0 0 2px rgba(73, 80, 87, 0.25);
}

/* Transitions and Animations */
.sidebar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: 0;
}

.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading Spinner */
.loading-spinner {
    border: 2px solid #e9ecef;
    border-top: 2px solid #495057;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal and Glass Effects */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
    transition: all 0.2s ease-in-out;
}

.status-badge:hover {
    transform: scale(1.02);
}

/* Empty States */
.empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Markdown Content Styling */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1:first-child {
    margin-top: 0;
}

.markdown-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.markdown-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.markdown-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: #374151;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
    font-style: italic;
}

.markdown-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.markdown-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* MathJax Styling */
.MathJax {
    font-size: 1.1em;
}

/* Back Button Styling */
.back-button {
    transition: all 0.2s ease-in-out;
}

.back-button:hover {
    transform: translateX(-2px);
}

/* Professional Form Elements */
.professional-form input,
.professional-form textarea,
.professional-form select {
    border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.professional-form input:focus,
.professional-form textarea:focus,
.professional-form select:focus {
    border-color: #495057;
    box-shadow: 0 0 0 2px rgba(73, 80, 87, 0.25);
    outline: none;
}

/* Professional Buttons */
.btn-primary {
    background-color: #495057;
    border: 1px solid #495057;
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background-color: #28a745;
    border: 1px solid #28a745;
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Professional Cards */
.card {
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.status-warning {
    background-color: #ffc107;
}

/* Professional Tables */
.professional-table {
    width: 100%;
    border-collapse: collapse;
}

.professional-table th,
.professional-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.professional-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.professional-table tr:hover {
    background-color: #f8f9fa;
}

/* Professional Modals */
.modal {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #dee2e6;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 20px;
}

/* Professional Alerts */
.alert {
    padding: 12px 16px;
    border: 1px solid transparent;
    margin-bottom: 16px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Professional Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Professional Navigation */
.nav-item {
    transition: all 0.2s ease-in-out;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    background-color: #e9ecef;
    border-left: 3px solid #495057;
}

/* Professional Sidebar */
.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-nav-item {
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
}

.sidebar-nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #3498db;
}

/* Professional Headers */
.header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Professional Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 16px;
    }
    
    .professional-table {
        font-size: 14px;
    }
    
    .professional-table th,
    .professional-table td {
        padding: 8px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .footer,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
} 