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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================================
   PUBLICATION ADMIN - TYPOGRAPHY
   ========================================= */

.publication-create {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* Header */

.publication-page-header {
    margin-bottom: 24px;
}

    .publication-page-header .text-muted {
        font-size: 13px;
        line-height: 1.5;
    }

.publication-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #111827;
}

.publication-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}


/* =========================================
   CARD
   ========================================= */

.publication-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.publication-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

    .publication-card-header h5 {
        margin: 0;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        color: #111827;
    }

    .publication-card-header .text-muted {
        font-size: 13px;
    }

.publication-card-body {
    padding: 24px;
}


/* =========================================
   LABEL
   ========================================= */

.publication-create .form-label {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}


/* =========================================
   INPUT
   ========================================= */

.publication-create .form-control,
.publication-create .form-select {
    font-family: inherit;
    font-size: 14px;
    color: #1f2937;
    border-color: #d1d5db;
    border-radius: 8px;
}

.publication-create .form-control {
    min-height: 42px;
}

.publication-create .form-control-lg,
.publication-create .form-select-lg {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 13px;
}

.publication-create textarea.form-control {
    min-height: auto;
    line-height: 1.6;
}

.publication-create .form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}


/* =========================================
   FORM TEXT
   ========================================= */

.publication-create .form-text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
}


/* =========================================
   SELECT
   ========================================= */

.publication-create .form-select {
    cursor: pointer;
}


/* =========================================
   FILE UPLOAD
   ========================================= */

.file-upload-box {
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

    .file-upload-box .form-control {
        background: #ffffff;
    }

.file-upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

    .file-upload-info strong {
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }


/* =========================================
   OPTIONS
   ========================================= */

.publication-create h5.mb-3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.option-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

    .option-box:hover {
        background: #f9fafb;
        border-color: #cbd5e1;
    }

    .option-box input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .option-content strong {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 600;
        color: #374151;
    }

    .option-content small {
        font-size: 12px;
        line-height: 1.5;
        color: #9ca3af;
    }


/* =========================================
   VALIDATION
   ========================================= */

.publication-create .alert {
    font-size: 13px;
    line-height: 1.5;
}

    .publication-create .alert strong {
        font-size: 14px;
    }


/* =========================================
   FOOTER
   ========================================= */

.publication-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

    .publication-form-footer .btn {
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        border-radius: 8px;
        padding: 9px 16px;
    }