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;
}

/* Dashboard custom styles */
.dashboard-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #f8f9fa;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 36px 32px 32px 32px;
}
.dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 2px solid #e3e3e3;
    padding-bottom: 18px;
    margin-bottom: 32px;
    gap: 20px;
}
@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 0;
    }
}
.dashboard-header h1 {
    font-weight: 700;
    font-size: 2.2rem;
    color: #1976d2;
    margin: 0;
    width: 100%;
}
.ctd-balance {
    font-size: 1.2rem;
    background: #1976d2;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    width: 100%;
}
@media (min-width: 768px) {
    .ctd-balance {
      /*  width: auto;*/
    }
}
.ctd-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 8px;
}
.dashboard-section {
    margin-top: 36px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 28px 24px 18px 24px;
}
.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}
@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: center;
    }
}
.section-header h3 {
    font-weight: 600;
    color: #333;
    margin: 0;
}
.section-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 768px) {
    .section-actions {
        flex-direction: row;
        width: auto;
    }
}
.section-actions button {
    min-width: 140px;
    font-size: 1rem;
    flex: 1 1 0;
}
.app-table th, .tested-table th {
    text-align: center;
    font-weight: 600;
}
.app-table td, .tested-table td {
    text-align: center;
    vertical-align: middle;
}
.badge {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
}
@media (max-width: 900px) {
    .dashboard-container {
        padding: 16px 4px;
    }
    .dashboard-section {
        padding: 12px 2px 8px 2px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group .btn {
        width: 100%;
    }
}

input::placeholder {
    color: #9e9e9e; /* Slightly darker gray for better contrast */
    font-style: italic; /* Italicize the placeholder text */
    opacity: 0.8; /* Slightly reduce opacity */
}

/* For better browser compatibility */
input:-ms-input-placeholder {
    color: #9e9e9e;
    font-style: italic;
    opacity: 0.8;
}

.cookie-consent-banner {
    background-color: #343a40;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #dee2e6;
}

.cookie-consent-banner a {
    color: #007bff;
    text-decoration: none;
}

.cookie-consent-banner button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-consent-banner button:hover {
    background-color: #0056b3;
}

input::-ms-input-placeholder {
    color: #9e9e9e;
    font-style: italic;
    opacity: 0.8;
}

/* Popup Message Modal Styles */
.popup-message-modal {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1051; /* Ensure it's on top of other elements */
}

.popup-message-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.popup-message-modal .modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.popup-message-modal .modal-header {
    background-color: #28a745;
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.popup-message-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.popup-message-modal .modal-body {
    padding: 1.5rem;
}

.popup-message-modal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.popup-message-modal .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.popup-message-modal .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}