/* OptiFangs App Styles */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('background_OptiFangs_3.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 500px;
}

.login-form-section {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
}

.t-bold {
    font-weight: bold;
}

.login-title {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
}

.login-form {
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

.login-input {
    margin-bottom: 20px;
}

.login-input input {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    margin-top: 10px;
}

.login-logo {
    max-width: 100%;
    height: auto;
}

.login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
}

/* Navigation Bar */
.navbar-custom {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-color: #0A172D;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-logo img {
    height: 50px;
}

.navbar-title h4 {
    margin: 0;
    color: white;
    font-weight: 300;
}

.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-links a:hover {
    background-color: rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
}

.navbar-links .nav-active {
    background-color: rgba(255,255,255,0.3);
}

/* Page Content */
.page-main-title {
    color: #495057;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Form Styles */
.form-container {
    padding: 30px;
    background: white;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modern-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.full-width {
    width: 100%;
    margin-bottom: 10px;
}

/* File Input */
.modern-file-input input[type="file"] {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.modern-file-input input[type="file"]:hover {
    border-color: #667eea;
    background: #e3f2fd;
}

/* Status Messages */
.loading-message {
    color: #0066cc;
    padding: 15px;
    background: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.success-message {
    color: #28a745;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.warning-message {
    color: #856404;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin: 10px 0;
}

.info-message {
    color: #0c5460;
    padding: 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    margin: 10px 0;
}

/* Tables */
.data-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.modern-tab-box .nav-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modern-tab-box .nav-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 15px 20px;
}

.modern-tab-box .nav-tabs .nav-link.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

/* Plot Container */
.plot-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Control Panels */
.nir-control-panel, .nir-data-panel {
    padding: 20px;
}

.control-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.action-buttons-section {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #bbdefb;
}

.data-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-text {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.5;
}

.footer-year {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .login-form-section, .login-logo-section {
        flex: none;
    }
    
    .navbar-custom {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .nir-main-row {
        flex-direction: column;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Input Focus States */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.selectize-input.focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading Spinner */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Additional utility classes */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.p-3 { padding: 1rem; }
.border-rounded { border-radius: 8px; }

.project-description{
    font-size: 0.9em;
}


 @media (max-width: 720px) { .optifangs-logo {width: 100%;} }

.optifangs-logo {
    height: auto;
}

.navigation-cards-row {
    margin-top: 50px;
}

/* Navigation Cards Styles */
.navigation-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.navigation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.navigation-card .card-image {
    width: 100%;
    height: auto;
    display: block;
}

.navigation-card .nav-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    margin: 0;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation-card .nav-button:hover {
    text-decoration: none;
    transform: none;
}

.optifangs-subtitle {
    margin-bottom:20px;
}

.capabilities-description {
    margin-top:20px; 
    margin-bottom:20px;
}
.dosage-description {
    margin-bottom:20px;
}

a#report:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

a#report:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

a#report2:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

a#report2:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}