:root {
    --primary-color: #1C84C6;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --bs-primary: #1C84C6;
}

body {
    padding-top: 76px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.15);
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.user-welcome {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.logout-link {
    color: #ff6b6b;
}

.logout-link:hover {
    color: #ff5252;
    background-color: rgba(255,107,107,0.1);
}

.bg-primary {background-color:#1C84C6 !important;}
h1 {
  font-size: 3rem; /* Custom size for all H1s */
}

h2 {
  font-size: 2.25rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.9rem;
}

h6 {
    font-size: 0.6rem;
}
.btn-primary {background-color:#1C84C6;}
.navbar-dark {background: #055EB9;}
.navbar-dark .navbar-nav .nav-link {color: rgba(255,255,255,1);}
span.required {color: #dc3545;}
/*Login Page*/
.light-blue-bg {background-color: #AAD3FD;}
.loginscreen.middle-box {
    width: 350px;
}

.badge-vurgent {color:#ffffff;
    background-color: #FF0000;
}
.badge-urgent  {
	color:#ffffff;
    background-color: #DA70D6;
}
.alert-vurgent {background-color: #FF0000; color:#ffffff;}
.alert-urgent {background-color: #DA70D6;}
.bg-info-count {background-color:#0DCAF0; color:#ffffff;}
/* Dropzone Custom Styling */
/* Dropzone Custom Styling */
.dropzone-custom {
    border: 2px dashed #d1d7e0;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dropzone-custom:hover {
    border-color: #007bff;
    background-color: #e9f5ff;
}

.dropzone-custom.has-files {
    padding-bottom: 15px;
}

/* Hide dz-message when files are present */
.dropzone-custom.has-files .dz-message {
    display: none !important;
}

.dz-message {
    pointer-events: none;
    margin: 0;
}

.dz-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.dz-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.dz-subtitle {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.dz-info {
    font-size: 0.85rem;
    color: #868e96;
    background: rgba(255,255,255,0.8);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Preview Container Styling */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Preview Item Styling */
.dz-preview.dz-file-preview, .dz-preview.dz-image-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 0 !important;
    width: 100% !important;
    display: flex;
    align-items: center;
}

/* DICOM dropzone - single file */
#dicom-preview .dz-preview {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9ff;
    border: 1px solid #cce5ff;
}

/* History dropzone - multiple files grid */
#history-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    width: 100%;
}

#history-preview .dz-preview {
    min-height: 80px;
    transition: transform 0.2s;
}

#history-preview .dz-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Preview item internal layout */
.dz-details {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.file-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon i {
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dz-filename {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.file-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.file-status-ready {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.file-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dz-remove {
    cursor: pointer;
    color: #dc3545;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dz-remove:hover {
    background: #f8d7da;
    color: #bd2130;
}

.dz-remove i {
    font-size: 0.9rem;
}

.dz-error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 5px;
    padding-left: 52px; /* Align with file icon */
    font-style: italic;
}

/* Fix Dropzone's default styling */
.dz-preview .dz-progress,
.dz-preview .dz-success-mark,
.dz-preview .dz-error-mark {
    display: none !important;
}

.file-icon {
    background: rgba(0, 123, 255, 0.05) !important;
    border-radius: 6px;
    padding: 8px;
    margin-right: 8px;
}

/* Different colors for different file types with subtle backgrounds */
.file-icon .fa-file-pdf {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.05) !important;
}

.file-icon .fa-file-image {
    color: #3498db !important;
    background: rgba(52, 152, 219, 0.05) !important;
}

.file-icon .fa-file-word {
    color: #2c81ba !important;
    background: rgba(44, 129, 186, 0.05) !important;
}

.file-icon .fa-file-archive {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05) !important;
}

.file-icon .fa-file {
    color: #6c757d !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

/* Ensure proper spacing in the grid */
@media (max-width: 768px) {
    #history-preview {
        grid-template-columns: 1fr;
    }
}

/* Simple Modal CSS */
        .simple-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .simple-modal .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        
        .simple-modal .modal-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            z-index: 10000;
            position: relative;
        }
        
        .simple-modal .modal-header {
            padding: 20px;
            border-bottom: 1px solid #dee2e6;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .simple-modal .modal-header h3 {
            margin: 0;
            font-size: 1.5rem;
            color: #333;
        }
        
        .simple-modal .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .simple-modal .modal-body {
            padding: 20px;
        }
        
        .simple-modal .modal-footer {
            padding: 15px 20px;
            border-top: 1px solid #dee2e6;
            text-align: right;
        }
        
        /* Progress Bar Styles */
        .progress-section {
            margin-bottom: 25px;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .progress-bar-container {
            height: 20px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress-bar-container.small {
            height: 10px;
        }
        
        .progress-bar {
            height: 100%;
            background-color: #007bff;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 10px;
        }
        
        .progress-bar-animated {
            background-image: linear-gradient(
                45deg,
                rgba(255, 255, 255, 0.15) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.15) 50%,
                rgba(255, 255, 255, 0.15) 75%,
                transparent 75%,
                transparent
            );
            background-size: 1rem 1rem;
            animation: progress-bar-stripes 1s linear infinite;
        }
        
        @keyframes progress-bar-stripes {
            0% { background-position: 1rem 0; }
            100% { background-position: 0 0; }
        }
        
        .file-sections {
            margin-bottom: 5px;
        }
        
        .file-section {
            margin-bottom: 5px;
            padding: 15px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
        }
        
        .file-section-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 500;
        }
        
        .file-section-header i {
            margin-right: 8px;
            color: #6c757d;
        }
        
        .file-progress {
            padding-left: 26px;
        }
        
        .file-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 0.875rem;
            color: #6c757d;
        }
        
        .current-file {
            padding: 15px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            margin-bottom: 5px;
        }
        
        .current-file-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 500;
        }
        
        .current-file-header i {
            margin-right: 8px;
            color: #6c757d;
        }
        
        .current-file-info {
            padding-left: 26px;
        }
        
        .file-name-speed {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            text-align: center;
            border-top: 1px solid #dee2e6;
            padding-top: 5px;
        }
        
        .stat-item {
            flex: 1;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #007bff;
        }
        
        .stat-label {
            font-size: 0.875rem;
            color: #6c757d;
        }
        
        .btn-cancel {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
        }
        
        .btn-cancel:hover {
            background-color: #c82333;
        }
        
        .btn-cancel:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }
        
        .status {
            display: block;
            margin-top: 5px;
            font-size: 0.875rem;
        }
        
        .speed {
            display: block;
            margin-top: 5px;
            font-size: 0.875rem;
            color: #6c757d;
        }
        
        .text-success { color: #28a745; }
        .text-warning { color: #ffc107; }
        .text-danger { color: #dc3545; }
        .text-primary { color: #007bff; }
        
        
/* Modal backdrop fix */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Ensure modal is visible when shown */
.modal.show {
    display: block;
}

/* Progress bar styles */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Upload stats */
.upload-stats {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

.badge-blinking {
    animation: badgeBlinker 1s linear infinite;
}
@keyframes badgeBlinker {
    50% { background-color: red; color: #fff; }
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Toastr custom style */
#toast-container > .toast {
  background-image: none !important;
}
#toast-container > .toast:before {
  position: fixed;
  font-family: FontAwesome;
  font-size: 24px;
  line-height: 24px;
  float: left;
  color: #FFF;
  padding-right: 0.5em;
  margin: auto 0.5em auto -1.5em;
}
#toast-container > .toast-warning:before {
  content: "\f0e7";
}
#toast-container > .toast-error:before {
  content: "\f071";
}
#toast-container > .toast-info:before {
  content: "\f005";
}
#toast-container > .toast-success:before {
  content: "\f00C";
}
#toast-container > div {
  -moz-box-shadow: 0 0 3px #999;
  -webkit-box-shadow: 0 0 3px #999;
  box-shadow: 0 0 3px #999;
  opacity: .9;
  -ms-filter: alpha(opacity=90);
  filter: alpha(opacity=90);
  display: block !important;
}
#toast-container > :hover {
  -moz-box-shadow: 0 0 4px #999;
  -webkit-box-shadow: 0 0 4px #999;
  box-shadow: 0 0 4px #999;
  opacity: 1;
  -ms-filter: alpha(opacity=100);
  filter: alpha(opacity=100);
  cursor: pointer;
}
.toast {
  background-color: #1ab394;
}
.toast-success {
  background-color: #1ab394;
}
.toast-error {
  background-color: #ed5565;
}
.toast-info {
  background-color: #23c6c8;
}
.toast-warning {
  background-color: #f8ac59;
}
.toast-top-full-width {
  margin-top: 20px;
}
.toast-bottom-full-width {
  margin-bottom: 20px;
}
/* Notifie */
.cg-notify-message.inspinia-notify {
  background: #fff;
  padding: 0;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 1 px rgba(0, 0, 0, 0.1), 0 2 px 4 px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 1 px rgba(0, 0, 0, 0.1), 0 2 px 4 px rgba(0, 0, 0, 0.2);
  border: none ;
  margin-top: 30px;
  color: inherit;
}
.inspinia-notify.alert-warning {
  border-left: 6px solid #f8ac59;
}
.inspinia-notify.alert-success {
  border-left: 6px solid #1c84c6;
}
.inspinia-notify.alert-danger {
  border-left: 6px solid #ed5565;
}
.inspinia-notify.alert-info {
  border-left: 6px solid #1ab394;
}
.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0.9;
    font-size: 14px;
    animation: fadeInOut 4s forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 0.9; transform: translateY(0); }
    90% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(20px); }
}

.context-menu-item {font-weight:normal;}

/* Increase the overall size of the datepicker container */
.datepicker {
    width: 300px; /* Adjust as needed, default is around 220px */
    padding: 10px;
}

/* Make the calendar table fill the container */
.datepicker table {
    width: 100%;
}

/* Increase font and cell padding for better visibility */
.datepicker td, .datepicker th {
    width: 32px;
    height: 32px;
    font-size: 16px !important;
    padding: 5px !important;
}