body {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
}


header {
    background: rgb(0, 0, 0);
    color: white;
    border-bottom: 1px solid white;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}


nav {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    


}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* gives them "button space" */
    border-radius: 0px;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    transition: background 0.3s, color 0.3s;
}



.nav-item:hover {
    background: white;
    color: black;
}
  
  a:visited {
    color: #fff;
  }

  /* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown toggle */
.dropdown-toggle {
    cursor: pointer;
    padding: 10px;
    display: block;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    background: black;
    border: 1px solid white;
    min-width: 120px;
    z-index: 100;
}

/* Dropdown links */
.dropdown-menu a {
    color: white;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

/* Hover styles */
.dropdown-menu a:hover {
    background: #333;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.background img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
  }

.background img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.main-container {
    padding: 50px 5%;
}

.page-title {
    padding-bottom: 12px;
    border-bottom: 3px solid rgb(255, 255, 255);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-logo {
    width: 175px;
    display: block;
    margin: 0 auto 10px;
}

.page-description {
    color: #ffffff;
    font-size: 1.4em;
    max-width: 700px;
    margin: 0 auto;
}

.input-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.calculator-container,
.poolinfo-container {
    flex: 1 1;
    background-color: rgb(12 12 12 / 87%);
    border: 3px solid rgb(102 178 255);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.calculator-container h2,
.poolinfo-container h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.9);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #00a2fa;
    font-size: 15px;
}

input:focus,
select:focus {
    outline: 2px solid rgba(159, 207, 255, 0.77);
    background-color: rgba(255, 255, 255, 0.25);
}

.calc-result {
    margin-top: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    padding: 10px;
}

#volume-result {
    font-size: 1.3em;
    color: #9fcfff;
    font-weight: bold;
}

.process-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    background-color: #2ecc71;
    font-weight: bold;
    color: black;
    border: 2px solid #1e8449;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.process-button:hover {
    background-color: #27ae60;
    text-shadow: -2px 2px 5px white;
}

.process-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
}

/* Saved Pools Table */
.saved-pools {

    padding: 25px;
    border-radius: 8px;
    background-color: rgb(12 12 12 / 87%);
    border: 3px solid rgb(102 178 255);
}

.saved-pools h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.9);
}

.saved-pools table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.saved-pools th,
.saved-pools td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ffffff7c;
}

.saved-pools th {
    color: rgba(159, 207, 255, 0.9);
    font-weight: bold;
}

.no-pools {
    text-align: center;
    color: #ffffff7c;
    font-style: italic;
}

/* Edit Button (blue) */
.edit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 6px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.edit-btn:hover {
    background-color: #0056b3;
}

/* Delete Button (red) */
.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background-color: #a71d2a;
}

/* Muted upgrade notice inside table */
.small-muted {
    color: #666;
    font-size: 0.85em;
}

.small-note { 
    font-size:0.85em; 
    color:#666; 
    margin-top:8px; 
}







.card { 
     
    padding:16px; 
    border-radius:8px; ; 
    background: rgb(12 12 12 / 87%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 3px solid rgb(102 178 255);
    width: 100%;
    box-sizing: border-box;
}

.card * {
    max-width: 100%;
    box-sizing: border-box;
}

.card h2, .card h3 {
    margin-top: 0;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.5px;
    color: rgba(159, 207, 255, 0.9);
}

/* --- FORM INPUTS (MATCH manage_pools aesthetic) --- */
.card input[type="text"],
.card input[type="email"],
.card input[type="password"],
.card input[type="number"],
.card select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #c7cfd9;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: #333;
    outline: none;
}

.card input:focus,
.card select:focus {
    border-color: #2e86ff;
    box-shadow: 0 0 4px rgba(46,134,255,0.5);
}

/* --- LABELS --- */
.card label {
    margin-top: 12px;
    display: block;
    font-weight: 600;
    color: rgba(159, 207, 255, 0.9);
}

/* --- PROFILE BUTTONS (MATCH process-button) --- */
.card .process-button.inline,
.btn-blue,
.btn-red {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 10px;
}

/* Blue button (Edit) */
.btn-blue,
.card .process-button.inline {
    background: linear-gradient(135deg, #1d72ff, #4dc4ff);
    color: white;
}

/* Red button (Delete) */
.btn-red {
    background: linear-gradient(135deg, #d64545, #ff6a6a);
    color: white;
}

/* Hover effects */
.btn-blue:hover,
.card .process-button.inline:hover {
    filter: brightness(1.08);
}
.btn-red:hover {
    filter: brightness(1.1);
}

/* --- ACCOUNT SUMMARY SIDEBAR CARD --- */
aside .card {
    position: sticky;
    top: 90px;
}

.muted { 
    color:#666; 
    font-size:0.9em; 
}

.profile-actions { 
    margin-top:12px; 
    display:flex; gap:8px; 
    flex-wrap:wrap; 
}





footer {
    margin-top: 40px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* make visible */
.modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- MODAL WINDOW --- */
.modal-content {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 10px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- TITLE --- */
.modal-content h3 {
    margin-top: 0;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

/* --- FORM ELEMENTS --- */
.modal-content label {
    display: block;
    margin: 10px 0 4px;
    font-weight: bold;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 10px;
    background: #fafafa;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 4px rgba(77, 171, 247, 0.4);
}

/* --- ACTION BUTTONS WRAPPER --- */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

/* --- CLOSE BUTTON OVERRIDE --- */
.modal-actions .process-button:last-child {
    background: #777;
}

.modal-actions .process-button:last-child:hover {
    background: #555;
}





/*
@media (max-width: 900px) {
    .input-section {
        flex-direction: column;
    }
}
