body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #f8f9fa; /* Bootstrap light background */
    color: #212529; /* Bootstrap dark text color */
}

.navbar {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-box {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.file-box:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: #e9ecef;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

#formula, #maxFileSize {
    font-size: 1.25rem;
}
  
#formula h5, #maxFileSize h5 {
    font-weight: bold;
}

.pointer-size-btn.active {
    background-color: #0d6efd;
    color: white;
}

/* Add extra space for MathJax formulas */
#formula p, #maxFileSize p {
    padding: 0.5rem 0;
    overflow-x: auto; /* For long formulas */
}

/* Thinner input field */
.input-slim {
    max-width: 300px;
}

/* Style for the remove button */
.remove-box {
    transition: all 0.2s ease;
}

.remove-box:hover {
    background-color: #dc3545;
    color: white;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

/* Improved button styles */
#add-box {
    border-radius: 4px;
}

/* Make dropdown items more interactive */
.dropdown-item:hover {
    background-color: #e9ecef;
}

/* Color boxes for formula legend */
.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 5px;
}

.priamy-color {
    background-color: #6c757d;
    border: 1px solid #ddd;
}

.nepriamy-color {
    background-color: #0dcaf0;
}

.dnepriamy-color {
    background-color: #ffc107;
}

/* Define MathJax colors */
:root {
    --priamy-color: #6c757d;
    --nepriamy-color: #0dcaf0;
    --dnepriamy-color: #ffc107;
}

/* Styling for MathJax elements */
mjx-container {
    overflow-x: auto;
    max-width: 100%;
    display: inline !important;
}

/* Formula styling */
.formula-container {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    overflow-x: auto;
}

.formula-part {
    display: inline-block;
    margin: 0 2px;
    padding-bottom: 2px;
}

.priamy-border {
    border-bottom: 2px solid #6c757d;
}

.nepriamy-border {
    border-bottom: 2px solid #0dcaf0;
}

.dnepriamy-border {
    border-bottom: 2px solid #ffc107;
}

/* Interactive elements should show pointer cursor */
a, button, select, input[type="checkbox"], input[type="radio"], 
input[type="submit"], input[type="button"], 
.dropdown-item, .color-box, .pointer-size-btn,
.card-header[data-bs-toggle], .interactive, .clickable, [role="button"] {
    cursor: pointer;
}

/* Ensure consistent cursor on interactive Bootstrap elements */
.nav-link, .dropdown-toggle, .btn, .page-link {
    cursor: pointer;
}

/* Language selector styles */
#languageDropdown {
    cursor: pointer;
    color: #333;
    font-weight: 500;
  }
  
  .dropdown-menu-end {
    right: 0;
    left: auto;
  }
  
  /* Hover effect for language options */
  .dropdown-item:hover {
    background-color: #f0f0f0;
  }

  .error-notification {
    position: fixed;
    top: 20px;
    right: 40%;
    background: #ff5f6d;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
        
.error-icon {
    font-size: 24px;
    margin-right: 15px;
}
        
.error-message {
    flex-grow: 1;
    font-size: 14px;
    white-space: pre-line;
}
        
.error-close {
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
        
.error-close:hover {
    opacity: 1;
}