html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Custom styles */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Navigation fixes */
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.navbar-nav .nav-link i {
  font-size: 1rem;
  width: 1rem;
  text-align: center;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
}

.dropdown-menu {
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item i {
  width: 1rem;
  text-align: center;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table th {
  background-color: #f8f9fa;
  border-top: none;
}

.btn-group .btn {
  margin-right: 0.25rem;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

.alert {
  border-radius: 0.375rem;
}

.badge {
  font-size: 0.75em;
}

/* Drag & Drop Upload Styles */
.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drag-drop-zone:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.drag-drop-zone.drag-over {
    border-color: #28a745;
    background-color: #d4edda;
    transform: scale(1.02);
}

.drag-drop-zone input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.drag-drop-zone .upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.drag-drop-zone .upload-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.drag-drop-zone .upload-hint {
    color: #adb5bd;
    font-size: 0.9rem;
}

.upload-preview {
    margin-top: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-progress {
    margin-top: 10px;
    display: none;
}

.upload-status {
    margin-top: 10px;
}

.upload-status .alert {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* File Upload Improvements */
.file-upload-container {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-container .btn-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-upload-container .btn-upload:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Upload Progress Bar */
.upload-progress-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.upload-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.3s ease;
}

/* File List Styles */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.file-item .file-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #6c757d;
}

.file-item .file-info {
    flex: 1;
}

.file-item .file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
}

.file-item .file-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-item .file-actions {
    display: flex;
    gap: 8px;
}

.file-item .btn-action {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Responsive Upload */
@media (max-width: 768px) {
    .drag-drop-zone {
        padding: 30px 15px;
    }
    
    .drag-drop-zone .upload-icon {
        font-size: 2.5rem;
    }
    
    .drag-drop-zone .upload-text {
        font-size: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-item .file-actions {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* PWA Offline Indicator */
body.offline::before {
    content: "Няма интернет връзка";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 8px;
    z-index: 9999;
    font-size: 14px;
}

/* PWA Install Button */
#install-pwa {
    transition: all 0.3s ease;
}

#install-pwa:hover {
    background-color: #007bff;
    color: white;
}

/* PWA Deep Link Styles */
.pwa-deep-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-deep-link:hover {
    transform: scale(1.05);
}

/* Modal Animations */
.modal-content {
    transition: all 0.3s ease;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Step Details Modal Styles */
#stepDetailsModal .modal-header {
    border-bottom: 2px solid #007bff;
}

#stepDetailsModal .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#stepDetailsModal .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#stepDetailsModal .card-header {
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

#stepDetailsModal .progress {
    border-radius: 10px;
    overflow: hidden;
}

#stepDetailsModal .progress-bar {
    transition: width 0.6s ease;
}

#stepDetailsModal .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#stepDetailsModal .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status Badge Animations */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Icon Animations */
#stepDetailsModal .fas {
    transition: all 0.3s ease;
}

#stepDetailsModal .card:hover .fas {
    transform: scale(1.1);
} 