/* --- LOGIN PAGE STYLES (UPDATED FOR CLEAN WHITE BACKGROUND) --- */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f8f9fa; /* A light grey/off-white background, similar to the image */
    background: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?q=80&w=1974&auto=format&fit=crop') no-repeat center center fixed;
}

.login-box {
    width: 100%;
    max-width: 420px;
    border-radius: 12px; /* Slightly smaller radius */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* A more subtle shadow */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.60); /* Pure white background for the box */
    animation: fadeInUp 0.5s;
}

.login-form-panel {
    padding: 40px 30px;
  
}

.form-switch-link {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

    .form-switch-link:hover {
        text-decoration: underline;
    }

/* --- OTHER APPLICATION STYLES (For the Main Dashboard) --- */
body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The main application wrapper with the farm background */
#wrapper {
    display: flex;
    background: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?q=80&w=1974&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    background-color: #2c5c3b !important; /* Dark Green */
    transition: margin .25s ease-out;
}

    #sidebar-wrapper .sidebar-heading {
        padding: 0.875rem 1.25rem;
        font-size: 1.4rem;
        font-weight: bold;
        color: #fff;
        border-bottom: 1px solid #4a7c59;
    }

    #sidebar-wrapper .list-group-item {
        background-color: #2c5c3b;
        color: #e0e0e0;
        border: none;
        padding: 15px 20px;
        transition: all 0.2s ease-in-out;
    }

        #sidebar-wrapper .list-group-item:hover {
            background-color: #3e8e58;
            color: #fff;
            transform: translateX(5px);
        }

        #sidebar-wrapper .list-group-item.active {
            background-color: #f39c12; /* Accent color */
            color: #fff;
            font-weight: bold;
        }

        #sidebar-wrapper .list-group-item i {
            color: #c8d7cf;
        }

        #sidebar-wrapper .list-group-item.active i {
            color: #fff;
        }

#page-content-wrapper {
    flex: 1;
    min-width: 0;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    /* Frosted glass for dashboard */
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

    #page-content-wrapper .navbar {
        border-radius: 10px 10px 0 0;
        flex-shrink: 0;
        background-color: rgba(255, 255, 255, 0.5) !important;
    }

    #page-content-wrapper .container-fluid {
        flex-grow: 1;
        overflow-y: auto;
    }

.page-content {
    animation: fadeInUp 0.5s;
}

.card {
    transition: transform .2s;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.85);
}

    .card:hover {
        transform: scale(1.02);
    }

.card-header {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.03);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* CALCULATOR STYLES */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

    .calculator-grid #calcEquals {
        grid-column: span 4;
    }

    .calculator-grid .form-control {
        grid-column: span 4;
        background-color: #f8f9fa;
        border-color: #dee2e6;
        font-size: 1.75rem;
        padding: .5rem 1rem;
        height: auto;
    }

