html, body {
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 40%, #ff1744 100%);
    background-image: url(/backgrounds/PixelSky_1.png);
    font-family: 'Segoe UI', Arial, sans-serif;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
}

.page {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding-top: 70px;    /* header height */
    padding-bottom: 100px; /* footer height */
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.center-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: calc(100vh - 70px - 100px);
    padding: 0;
    margin: 0;
}

.center-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .page {
        padding-top: 70px;
        padding-bottom: 100px;
    }
    .center-inner {
        max-width: 98vw;
    }
}

p {
    color: #fff;
    text-shadow: 2px 2px 8px #1a237e;
    margin-bottom: 2em;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Button 53 styles */
.button-53 {
  background-color: #3DD1E7;
  border: 0 solid #E5E7EB;
  box-sizing: border-box;
  color: #000000;
  display: flex;
  font-family: ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.75rem;
  padding: .75rem 1.65rem;
  position: relative;
  text-align: center;
  text-decoration: none #000000 solid;
  text-decoration-thickness: auto;
  width: 100%;
  max-width: 460px;
  cursor: pointer;
  transform: rotate(-2deg);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-53:focus {
  outline: 0;
}

.button-53:after {
  content: '';
  position: absolute;
  border: 1px solid #000000;
  bottom: 4px;
  left: 4px;
  width: calc(100% - 1px);
  height: calc(100% - 1px);
}

.button-53:hover:after {
  bottom: 2px;
  left: 2px;
}

/*@media (min-width: 768px) {
  .button-53 {
    padding: .75rem 3rem;
    font-size: 1.25rem;
  }
}*/



h3 {
    color: #fff;
    text-shadow: 2px 2px 8px #1a237e;
    margin-bottom: 2em;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 2px;
}

input, .form-control {
    border-radius: 20px !important;
    border: 1px solid #3949ab !important;
    padding: 0.5em 1em !important;
    margin-bottom: 1em;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.7);
}

.text-danger {
    color: #ff1744;
    font-weight: bold;
    margin-top: 1em;
}

img {
    /*border-radius: 20px;*/
}

/* Mobile-friendly modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mobile-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    animation: modal-pop 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.modal-content {
    padding: 30px 25px;
    text-align: center;
}
.modal-content h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}
.modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 1em;
    line-height: 1.4;
    text-shadow: none;
}
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.modal-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    font-size: 1em;
    min-height: 48px;
}
.modal-buttons .btn-danger {
    background: #dc3545;
    color: #fff;
}
.modal-buttons .btn-danger:hover:not(:disabled) {
    background: #c82333;
}
.modal-buttons .btn-secondary {
    background: #6c757d;
    color: #fff;
}
.modal-buttons .btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}
.modal-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}
.btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #fff;
}
.btn-outline-danger:disabled {
    opacity: 0.6;
}

@keyframes modal-pop {
    0% {
        transform: scale(0.7) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Subtle Delete Button - inspired by button-53 but understated */
.button-delete {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-sizing: border-box;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    line-height: 1.5rem;
    padding: 0.5rem 1rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(-0.5deg); /* Very subtle rotation */
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    max-width: 200px;
}

.button-delete:hover {
    background-color: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.6);
    color: #fff;
    transform: rotate(0deg) translateY(-1px);
}

.button-delete:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.button-delete:after {
    content: '';
    position: absolute;
    border: 1px solid rgba(220, 53, 69, 0.2);
    bottom: 2px;
    left: 2px;
    right: 2px;
    top: 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.button-delete:hover:after {
    border-color: rgba(220, 53, 69, 0.4);
    bottom: 1px;
    left: 1px;
    right: 1px;
    top: 1px;
}

.button-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: rotate(-0.5deg);
}

.button-delete:disabled:hover {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    transform: rotate(-0.5deg);
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 15px;
    }
    .mobile-modal {
        border-radius: 15px;
    }
    .modal-content {
        padding: 25px 20px;
    }
    .modal-content h4 {
        font-size: 1.3em;
    }
    .modal-buttons {
        flex-direction: column;
    }
    .modal-buttons .btn {
        flex: none;
        min-height: 50px;
    }
}

