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;
}

/* ============================================
   Modal Message Styles
   ============================================ */

/* Modal Icon Container */
.modal-icon-container {
    display: inline-block;
}

.modal-icon {
    width: 80px;
    height: 80px;
    display: block;
}

/* SVG Icon Animations */
.modal-icon-circle {
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.modal-icon-check {
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.modal-icon-cross {
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-dasharray: 57;
    stroke-dashoffset: 57;
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.modal-icon-warning {
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.modal-icon-info {
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

/* Stroke Animation */
@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
 }
}

/* Modal Content Borders by Type */
.modal-success .modal-content {
    border-top: 5px solid #28a745;
}

.modal-danger .modal-content {
 border-top: 5px solid #dc3545;
}

.modal-warning .modal-content {
    border-top: 5px solid #ffc107;
}

.modal-info .modal-content {
    border-top: 5px solid #17a2b8;
}

/* Modal Text Styles */
.modal-title {
 font-weight: 600;
    color: #333;
}

.modal-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modal Body Animation */
.modal-body {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styling by Modal Type */
.modal-success .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

.modal-success .btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.modal-danger .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

.modal-danger .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.modal-warning .btn-primary {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.modal-warning .btn-primary:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.modal-info .btn-primary {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.modal-info .btn-primary:hover {
 background-color: #138496;
  border-color: #117a8b;
}

/* ============================================
   Upload Area Styles
   ============================================ */

.form-control-sm {
    font-size: 0.875rem;
}

.upload-area {
    cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #007bff !important;
  background-color: #f0f8ff !important;
}

.upload-icon {
    opacity: 0.7;
}

.upload-text p {
    font-size: 0.9rem;
}

.upload-text button {
    color: #007bff;
    font-weight: 500;
}

.upload-text button:hover {
    text-decoration: underline !important;
}

/* Image Preview Styles */
.image-preview-container {
    background-color: #f8f9fa;
    padding: 10px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-preview-container img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-container .position-relative {
    width: 100%;
    display: flex;
    justify-content: center;
}

#removeImageBtn {
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#removeImageBtn:hover {
    opacity: 1;
}

#imageFileName {
    font-size: 0.75rem;
    word-break: break-word;
    max-width: 100%;
}