@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Reset and global overrides from welcome2024, infused with orchid's light theme */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    word-break: break-word; /* Softer than break-all for natural flow */
}

body {
    font-family: "Inter", sans-serif !important; /* New: Clean sans-serif for body */
    line-height: 1.7; /* Slightly airier than 1.6 */
    background-color: #f8f9fa; /* Orchid's light bg for warmth */
    color: #212529; /* Subtle dark text for readability */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif !important; /* New: Elegant serif for headings */
    font-weight: 700;
}

/* Updated: Glowing button, refined for subtlety */
.updated {
    transition: background-color 0.5s ease;
    background-color: #e3f2fd !important; /* Lighter blue tint */
}

.button-85 {
    padding: 0.8em 2.5em; /* Plumper for touch-friendliness */
    border: none;
    outline: none;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* New: Soft purple-blue gradient */
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 50px; /* Softer pill shape */
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-85:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.button-85:before {
    content: "";
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c); /* New: Vibrant yet light cycle */
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing-button-85 3s linear infinite; /* Faster, smoother loop */
    transition: opacity 0.3s ease-in-out;
    border-radius: 50px;
}

@keyframes glowing-button-85 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.button-85:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff; /* Light inner for contrast */
    left: 0;
    top: 0;
    border-radius: 50px;
    opacity: 0.1;
}

/* Container: More fluid, orchid-inspired */
.container {
    max-width: 95vw; /* Gentler constraint */
    margin: 0 auto;
    padding: 0 1rem; /* Subtle side breathing room */
}

/* Header: Overwrite orchid's navbar blues for a lighter, centered vibe */
#header {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(237, 238, 240, 0.95)); /* New: Subtle fade */
    color: #212529;
    backdrop-filter: blur(10px); /* Modern glassmorphism */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem; /* Tighter spacing */
}

#logo img {
    width: 6vw; /* Slightly smaller for elegance */
    height: 6vw;
    margin-right: 1rem;
    border-radius: 50%; /* New: Rounded logo for charm */
}

#title {
    font-size: 3.5vw; /* Scaled down for balance */
    margin: 0;
    color: #1c2b36; /* Orchid's deep for pop */
}

/* Navbar overrides: Lighter, more spaced */
#header .navbar {
    background: transparent !important; /* No heavy blue */
    padding: 0.5rem 0;
}

#header .navbar-brand {
    display: flex;
    align-items: center;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff; /* Orchid primary for branding */
}

#header .navbar-brand img {
    margin-right: 0.75rem;
    width: 2rem;
    height: 2rem;
}

#header .navbar-nav .nav-link {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    margin-right: 1.5rem;
    color: #495057;
    transition: color 0.2s ease;
}

#header .navbar-nav .nav-link:hover {
    color: #007bff;
}

#header .navbar-toggler {
    border-color: rgba(73, 80, 87, 0.2);
}

/* Responsive: Orchid's media queries enhanced */
@media (max-width: 992px) {
    #header .navbar-nav {
        margin-top: 0.5rem;
        background: rgba(248, 249, 250, 0.98);
        padding: 1rem;
        border-radius: 8px;
    }
    
    #title {
        font-size: 2.5rem;
    }
    
    #logo img {
        width: 50px;
        height: 50px;
    }
}

/* Main: Airier padding */
#main {
    padding: 3rem 0; /* Balanced vertical space */
    animation: fadeInUp 0.8s ease-out; /* New: Gentle entrance */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#top {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef); /* Subtle wave */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Swap section: More immersive, light overlay */
#swap {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('your-bg-image.jpg') center/cover; /* Assume bg image; adjust URL */
    padding: 6rem 0;
    color: #212529;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Softer shadow */
    border-radius: 0 0 24px 24px; /* Curved bottom */
}

.button {
    display: inline-block;
    margin-top: 2rem;
    font-family: "Inter", sans-serif;
}

/* Calculator: Overwrite grid for better flow, orchid table influences */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Fixed min for usability */
    gap: 2rem;
    margin-top: 4rem;
}

.calculator {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); /* Deeper, modern shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(233, 236, 239, 0.5);
}

.calculator:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.calculator h3 {
    margin-bottom: 1.5rem;
    color: #1c2b36;
    font-size: 1.5rem;
}

.input-field {
    width: 100%; /* Full width, orchid form style */
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Orchid focus ring */
    outline: none;
}

.output-value {
    font-weight: 600;
    margin-top: 1rem;
    color: #28a745; /* Success green for positivity */
    font-size: 1.1rem;
}

/* Footer: Warmer, orchid-inspired */
#footer {
    padding: 2rem 0;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#footer li {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
}

.m-l {
    font-size: 0.875rem; /* Consistent with orchid small text */
}

/* Mobile-first enhancements */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #swap {
        padding: 4rem 1rem;
    }
    
    .button-85 {
        padding: 0.75em 2em;
        font-size: 0.95rem;
    }
}
/* Global typography overrides */
:root {
  --bs-root-font-size: 1rem;          /* larger base font */
  --bs-body-line-height: 1.6;
  --bs-font-sans-serif: "Inter", "Monda", sans-serif; /* modern font */
}

/* Table adjustments */
.table th,
.table td {
  font-size: 0.95rem;
  padding: 1rem;                 /* relaxed row height */
  white-space: nowrap;
  text-overflow: ellipsis;
}
.table tbody tr:hover {
  background-color: #f7f9fa;
}
.table thead th {
  background-color: #f3f4f6;
  color: #333;
}

/* Larger avatars */
.table td:first-child img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

/* Forms and controls */
.form-control,
.form-select {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, .25);
}

/* Button styling */
.btn {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.btn-primary {
  background-image: linear-gradient(90deg, #007bff, #339af0);
  border-color: #007bff;
  color: #fff;
}
.btn-primary:hover {
  background-image: linear-gradient(90deg, #339af0, #228be6);
}

/* Responsive table for mobile */
@media (max-width: 992px) {
  .table thead th:nth-child(3),
  .table tbody td:nth-child(3),
  .table thead th:nth-child(4),
  .table tbody td:nth-child(4) {
    display: none; /* hide date columns on tablets */
  }
}
@media (max-width: 768px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
  }
  .table td {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
  }
  .table td:last-child {
    border-bottom: 0;
  }
  .table td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: #6c757d;
    margin-bottom: 0.25rem;
  }
}
