/* ==========================================
   1. GLOBAL & BACKGROUND
   ========================================== */
body {
    background-image: url('minty_bay_bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #000000;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Mobile background */
/*
@media (max-width: 767.98px) {
    body {
        background: url('minty_bay_bg_mobile_1.jpg') no-repeat center top scroll;
        background-size: cover;
    }
}
*/
/* bg container fixed for mobile */
.mobile-bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('minty_bay_bg_mobile_1.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1; 
    pointer-events: none; 
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.custom-navbar {
    background: rgba(13, 20, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 12px;
    margin-left: 12px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.btn-connect {
    background-color: #2ed573;
    color: #0b131a;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50rem;
    padding: 8px 22px;
    border: none;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-connect:hover {
    background-color: #26af5d;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.5);
    color: #ffffff;
}

/*MOBILE*/
@media (max-width: 991.98px) {
    .custom-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
    }

    /* Prevents page content from ending up underneath the fixed header on mobile */
    body {
        padding-top: 75px; /* Space to compensate for the height of the fixed header */
    }

    /* Makes the mobile drop-down menu scrollable and prevents it from extending off-screen */
    .custom-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 19, 26, 0.98);
        /*backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);*/
        padding: 1rem 1.5rem;
        border-radius: 0 0 16px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }
}

/* ==========================================
   3. MAIN GLASS CONTAINER
   ========================================== */
.glass-container {
    max-width: 850px;
    margin: 40px auto;
}

/* Dark-themed main card in a "dark glass" style */
.glass-card-dark {
    background: rgba(11, 19, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    padding: 30px;
    color: #f8fafc;
}
@media (max-width: 768px) {
    .glass-card-dark {
        padding: 20px !important;
    }
}

/* Internal sub-cards (Revoke box, Dropzone...) */
.sub-card-dark {
    background: rgba(18, 28, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

/* Input dark */
.form-control-dark {
    background: rgba(13, 20, 30, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-control-dark:focus {
    background: rgba(13, 20, 30, 1);
    border-color: #2ed573;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(46, 213, 115, 0.25);
}
/* Force a light, clearly visible color for placeholders in all fields */
.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.5) !important; 
    opacity: 1 !important;
}

/* Compatibility for Firefox and WebKit browsers */
.form-control-dark::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control-dark::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}
/* Specific placeholders for .form-control-dark fields (text, numbers, etc.) */
.form-control-dark::placeholder,
input[type="number"].form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* WebKit compatibility for .form-control-dark fields */
.form-control-dark::-webkit-input-placeholder,
input[type="number"].form-control-dark::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Firefox compatibility for .form-control-dark fields */
.form-control-dark::-moz-placeholder,
input[type="number"].form-control-dark::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropzone */
.logo-dropzone-dark {
    border: 2px dashed rgba(46, 213, 115, 0.5);
    background: rgba(13, 20, 30, 0.6);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-dropzone-dark:hover {
    background: rgba(46, 213, 115, 0.08);
    border-color: #2ed573;
}

/* Fee Breakdown Box */
.fee-box-dark {
    background: rgba(13, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}

/* Btn-success-rocket */
.btn-success-rocket {
    background: linear-gradient(135deg, #2ed573 0%, #10ac84 100%);
    border: none;
    color: #0b131a;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.4);
    transition: all 0.25s ease;
}

.btn-success-rocket:hover {
    transform: none; /* No move */
    background: linear-gradient(135deg, #25b35d 0%, #0e8c6b 100%); /* Sfumatura leggermente più scura */
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.3);
    color: #0b131a;
}
.btn-success-rocket:disabled {
    color: #0b131a;
}

/* Outline Success */
.btn-outline-success-rocket {
    background: transparent;
    border: 2px solid #2ed573;
    color: #2ed573;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.25s ease;
}
.btn-outline-success-rocket:hover {
    transform: none;
    background: rgba(46, 213, 115, 0.15); /* Leggero alone verde al passaggio del mouse */
    border-color: #25b35d;
    color: #2ed573;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.2);
}

.btn-outline-success-rocket:disabled {
    background: transparent;
    border-color: rgba(46, 213, 115, 0.3);
    color: rgba(46, 213, 115, 0.4);
    box-shadow: none;
}

/* Danger with a gradient identical in style to btn-success-rocket */
.btn-danger-rocket {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(180, 40, 50, 0.95) 100%);
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.4);
    transition: all 0.25s ease;
}

.btn-danger-rocket:hover {
    transform: none; /* Elimina qualsiasi spostamento */
    background: linear-gradient(135deg, rgba(235, 60, 75, 1) 0%, rgba(200, 45, 55, 1) 100%);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}
.btn-danger-rocket:disabled {
    color: #ffffff;
}

/* Outline Danger Rocket */
.btn-outline-danger-rocket {
    background: transparent;
    border: 2px solid rgba(220, 53, 69, 0.7);
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.25s ease;
}

.btn-outline-danger-rocket:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 1);
    color: #ff4757;
}

.btn-outline-danger-rocket:disabled {
    background: transparent;
    border-color: rgba(108, 117, 125, 0.4);
    color: #6c757d;
}






/* Green switches in MintyBay style when active */
.form-check-input:checked {
    background-color: #2ed573 !important;
    border-color: #2ed573 !important;
}
/* Removes the blue focus outline and applies the MintyBay green to the switches */
.form-check-input:focus {
    border-color: #2ed573 !important;
    box-shadow: 0 0 0 0.25rem rgba(46, 213, 115, 0.25) !important;
}

.form-check-input:checked {
    background-color: #2ed573 !important;
    border-color: #2ed573 !important;
}



/* --- COMPLETE UNIFICATION OF PALETTE SUCCESS -> MINTYBAY (#2ed573) --- */

/* Sfondi e Bottoni Success */
.bg-success, .btn-success {
    background-color: #2ed573 !important;
    border-color: #2ed573 !important;
    color: #0b131a !important; 
}

.btn-success:hover, .btn-success:focus {
    background-color: #25b35d !important;
    border-color: #25b35d !important;
    color: #0b131a !important;
}

/* Bottoni Success Outline */
.btn-outline-success {
    color: #2ed573 !important;
    border-color: #2ed573 !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-outline-success:hover, 
.btn-outline-success:focus, 
.btn-outline-success:active {
    background-color: #2ed573 !important;
    border-color: #2ed573 !important;
    color: #0b131a !important; 
    transform: translateY(-1px); 
}

/* Guide button with a transparent style, stable on hover */
.btn-outline-success-trasp {
    background-color: rgba(46, 213, 115, 0.15) !important;
    color: #2ed573 !important;
    border: 1px solid rgba(46, 213, 115, 0.3) !important;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-outline-success-trasp:hover, 
.btn-outline-success-trasp:focus {
    background-color: rgba(46, 213, 115, 0.3) !important;
    border-color: #2ed573 !important;
    color: #2ed573 !important;
    box-shadow: 0 2px 8px rgba(46, 213, 115, 0.2);
}

/* Restore the correct transparency for semi-transparent badges */
.bg-success.bg-opacity-25 {
    background-color: rgba(46, 213, 115, 0.25) !important;
    color: #2ed573 !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(46, 213, 115, 0.1) !important;
}

/* Text Success */
.text-success {
    color: #2ed573 !important;
}

/* Border Success */
.border-success {
    border-color: #2ed573 !important;
}

/* Alert Success */
.alert-success {
    background-color: rgba(46, 213, 115, 0.15) !important;
    border-color: rgba(46, 213, 115, 0.4) !important;
    color: #2ed573 !important;
}


/* Styling Navbar Dark Glassmorphism */
.custom-navbar {
    background: rgba(11, 19, 26, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* Managing links in the mobile/desktop menu */
.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: #2ed573 !important;
    background: rgba(46, 213, 115, 0.08);
}

/* Wallet button responsive */
.btn-connect {
    background-color: #2ed573;
    color: #0b131a;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    transition: all 0.2s ease-in-out;
}

.btn-connect:hover {
    background-color: #25b35d;
    color: #0b131a;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

/* Adaptation for open mobile menu */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background: rgba(11, 19, 26, 0.95);
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
    }
}




/* Custom Footer Styling */
.custom-footer {
    /*background: rgba(11, 19, 26, 0.6);*/
    background: rgba(13, 20, 30, 0.75);
    /*backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);*/
}

.custom-footer .hover-success {
    transition: color 0.2s ease, transform 0.2s ease;
}

.custom-footer .hover-success:hover {
    color: #2ed573 !important;
    transform: translateY(-2px);
}

/* Basic structure to pin the footer to the bottom only if the page is short */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure that the main container occupies the necessary space */
.glass-container {
    flex: 1 0 auto;
}

/* Footer goes at the end of the flow and never overlaps */
footer {
    flex-shrink: 0;
    width: 100%;
}

.custom-footer-link {
    transition: color 0.2s ease;
}

.custom-footer-link:hover {
    transform: none !important;
    color: #2ed573 !important; 
}



.floating-help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #121e1abf;
  color: #2ed573;
  border: 1px solid rgba(0, 255, 163, 0.3);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /*backdrop-filter: blur(8px);*/
  z-index: 999;
  transition: all 0.25s ease-in-out;
}

.floating-help-btn.footer-visible {
    bottom: 75px; 
}

.floating-help-btn:hover {
  background-color: #2ed573;
  color: #0a100d;
  border-color: #2ed573;
  box-shadow: 0 6px 24px rgba(0, 255, 163, 0.35);
  transform: translateY(-2px);
}

/* mobile only icon */
@media (max-width: 768px) {
  .floating-help-btn {
    bottom: 16px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
  }
  .floating-help-text {
    display: none;
  }
}
