/* ==========================================================================
   ARISYN FINANCE TOOLS - MASTER STYLESHEET
   ========================================================================== */

/* 1. GENERAL RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #e5e5e5; 
    color: #1d1d1f; 
}

:root {
    --theme-primary: #124438; /* Set default to one of your dark greens */
}

/* ==========================================================================
   2. MASTER NAVIGATION RIBBON
   ========================================================================== */
.navbar {
    background-color: var(--theme-primary); 
    border-bottom: 3px solid #c5a059; 
    position: sticky; 
    top: 0;
    z-index: 100;
    padding: 6px 30px;
    display: grid;
    grid-template-columns: 1fr auto auto 1fr; /* Adjusted for new layout */
    align-items: center;
    gap: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-decoration: none;
}

.nav-logo {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 4px;
    height: 50px; 
    width: 50px;  
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); 
}

.nav-links {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; 
    margin: 0;
}

.nav-links > li {
    position: relative; 
    margin: 0 8px; 
}

.nav-links > li > a {
    display: inline-block;
    color: #ffffff;
    background-color: transparent;
    text-align: center;
    padding: 8px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 40px; 
    border: 2px solid #ffffff; 
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.nav-links > li > a:hover, .nav-links > li:hover > a.dropbtn, .active-link {
    background-color: #ffffff !important;
    color: var(--theme-primary) !important; 
}

.nav-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-search input {
    width: 250px;
    padding: 10px 16px;
    border-radius: 6px; 
    border: 1px solid #ffffff;
    outline: none;
    font-size: 14px;
    background-color: #ffffff;
    color: #1d1d1f;
    transition: box-shadow 0.3s ease;
}

.nav-search input:focus {
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.5); 
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

.settings-btn {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 8px;
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.settings-btn:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   3. DROPDOWN MENUS
   ========================================================================== */
.dropdown-content {
    opacity: 0;
    visibility: hidden; 
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.2);
    border-radius: 12px;
    top: calc(100% + 15px); 
    left: 50%;
    transform: translateX(-50%) translateY(-10px); 
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px 0;
    border: 1px solid #e0e0e0;
}

.dropdown-content > a {
    color: #1d1d1f; 
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.dropdown-content > a:hover {
    background-color: #f0f4f8; 
}

.dropdown:hover > .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   4. LAYOUT CONTAINERS & TYPOGRAPHY
   ========================================================================== */
.content {
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-logo {
    max-height: 140px; 
    width: auto; 
    margin-bottom: 30px;
}

.fintools-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 50px 60px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.08);
}

h1 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f; 
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f; 
    margin-bottom: 24px;
}

p, li {
    font-size: 17px; 
    margin-bottom: 24px;
    line-height: 1.8; 
    color: #333333;
}

.content p {
    color: #86868b;
}

strong {
    color: #000000;
    font-weight: 600;
}

/* ==========================================================================
   5. FINANCIAL TOOL INTERFACE STYLING
   ========================================================================== */
.fintool-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e5ea;
    padding-bottom: 20px;
}

.fintool-tab-btn {
    background-color: #f0f4f8;
    color: var(--theme-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fintool-tab-btn:hover {
    background-color: #d2d2d7;
}

.fintool-tab-btn.active {
    background-color: var(--theme-primary);
    color: #ffffff;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.fintool-input {
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #d2d2d7;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1d1d1f;
    width: 100%;
}

.fintool-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(71, 131, 139, 0.15);
}

.btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}
