/* Compost Calculator CSS Variables */
:root {
    --secondary-bg: #1d1d1d;
    --tertiary-bg: #2a2a2a;
    --accent-color: #FFD700;
    --text-color: #f2f2f2;
    --text-secondary: #ccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
}

/* Premium Page */
.icon {
    font-size: xx-large;
    display: block;
    margin: auto;
}

.bronze {
    color: var(--premium-bronze);
}

.silver {
    color: var(--premium-silver);
}

.gold {
    color: var(--premium-gold);
}

.diamond {
    color: var(--premium-diamond);
}

/* Header */
.premium-image-header {
    margin-top: 0;
    height: 300px;
}

#premium-header-info {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent shadow effect */
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center with margins */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); /* Add shadow effect */
}

#premium-header-title {
    font-size: 80px;
    text-shadow: 5px 5px 0 #000000; /* Solid shadow slightly below and to the right */
    font-family: "Poetsen One", sans-serif;
    font-weight: 500;
}

.premium-header-background {
    width: 100%; /* Ensure it spans the full width of the header */
    height: auto; /* Ensure it spans the full height of the header */
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: bottom; /* Show the bottom of the image */
    filter: blur(8px) brightness(0.8) saturate(1.5);
}


/* Table */
.overflow-container {
    overflow-x: auto;
    display: flex;
    min-width: 55%;
    max-width: 80vw;
    justify-content: space-around;
    flex-direction: column;
    margin: 0 40px;
    border: 3px solid #1d1d1d;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 30px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #1d1d1d;
    border-radius: 10px;
    white-space: nowrap;
    border: 3px solid #1d1d1d;
}
table tr th {
    padding: 10px;
    font-weight: normal;
    width: auto;
}

main.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

table tr:nth-child(even) {
    background-color: #1d1d1d;
}

table tr {
    text-align: center;
}

tbody {
    border-radius: 10px;
}

/* Info Div */
.info-table {
    align-content: left; 
    width: 100%; 
    background-color: #1d1d1d; 
}

.info-table-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 40px;
    padding: 20px;
    background-color: #111;
    border-radius: 10px;
    width: 45%;
    margin-left: auto;
    margin-right: auto;
}

.premium-table-title {
    margin: 0px;
    font-family: "Poetsen One", sans-serif;
    font-weight: 300;
    font-size: 28px;
}

.premium-perk-title {
    text-align: left;
    width: 0px;
    /* Add border to the left */
    border-right: 2px solid rgba(255, 255, 255, 0.5); /* Gold color with 50% opacity */
    font-size: 15px;
    font-weight: 500;
}

.premium-join-button {
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(to right, #BF953F, #B38728, #AA771C);
    color: var(--textcolor);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: x-large;
}

.premium-join-button:hover {
    background: linear-gradient(to right, #BF953F, #B38728, #AA771C);
    color: var(--textcolor);
    text-decoration: none;
    transform: scale(1.05);
}

#info-table-main-title {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    color: var(--textcolor);
    font-family: "Poetsen One", sans-serif;
    /* Add underline */
    text-decoration: underline;
}


/* Style for the info icon */
.info-icon {
    margin-left: 8px;
    color: #d0db34;
    cursor: pointer;
    position: relative;
}

/* Tooltip container */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1em;
    width: 300px;
    max-width: 200px; /* Limit the width of the tooltip */
    white-space: normal; /* Allow text to wrap */
    text-transform: none; /* Ensure text is not uppercase */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    font-family:Arial, Helvetica, sans-serif;
    font-weight: 400;
}

/* Show tooltip on hover */
.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}






.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 0px;
    width: 60%;
    /* Center it all */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    
    
}
.tools-item {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.tools-content {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    width: 100%;
    text-align: center;
}
.tools-content h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}
.tools-content p {
    margin: 0 0 20px;
    font-size: 1em;
}
.tools-button {
    background: #5647c3;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.tools-button:hover {
    background: #6859d6;
}

.tools-header {
    text-align: center;
    margin-top: 40px;
    font-size: 20px;
}

.tools-image {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Hover effect for the div */
.tools-image:hover {
    transform: scale(1.05); /* Slightly enlarge the div on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhance the shadow on hover */
}


@media (max-width: 768px) {
    .premium-image-header {
        height: 300px; /* Adjust height for smaller screens */
    }
    
    #premium-header-title {
        font-size: 50px; /* Adjust font size for smaller screens */
    }
    
    .overflow-container {
        min-width: 90%; /* Adjust width for smaller screens */
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
    }
    
    .info-table-div {
        width: 90%; /* Adjust width for smaller screens */
    }
    
    .tools-grid {
        width: 90%; /* Adjust width for smaller screens */
    }
}

/* Compost Calculator Styles */
.calculator-container {
    width: 70%;
    margin: 20px auto;
    padding: 15px;
}

.back-to-tools-btn {
    display: inline-block;
    background: var(--secondary-bg);
    border: 2px solid var(--accent-color);
    padding: 10px 20px;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.back-to-tools-btn:hover {
    background: var(--hover-bg);
    transform: translateX(-5px);
}

.info-header {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
}

.info-header h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.info-header p {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.info-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.info-badge {
    background: var(--tertiary-bg);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.85em;
}

.info-badge strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.info-badge span {
    color: var(--text-color);
}

.calculator-section {
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
}

.calculator-section h2 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.4em;
}

.calculator-section h3 {
    color: #87CEEB;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.main-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.result-card {
    background: var(--main-bg);
    padding: 10px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.result-card h3 {
    color: var(--accent-color);
    margin-bottom: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.main-result-card {
    background: var(--main-bg);
    padding: 12px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.main-result-card h3 {
    color: var(--accent-color);
    margin-bottom: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.main-result-value {
    color: #90EE90;
    font-size: 1.4em;
    font-weight: bold;
    margin: 6px 0;
}

.main-result-subtitle {
    color: var(--text-secondary);
    font-size: 0.8em;
}

.result-value {
    color: var(--text-color);
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 3px;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 0.75em;
}

.session-card {
    background: var(--tertiary-bg);
    padding: 8px 10px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.session-card h3 {
    color: var(--accent-color);
    margin-bottom: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

.session-value {
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 2px;
}

.session-subtitle {
    color: var(--text-secondary);
    font-size: 0.75em;
}

.slider-group {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--main-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-label {
    color: var(--text-color);
    font-size: 0.95em;
}

.slider-value {
    color: var(--accent-color);
    font-size: 1em;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--tertiary-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

.slider-description {
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-top: 4px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 0.95em;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 8px;
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.95em;
    box-sizing: border-box;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.price-display {
    color: #90EE90;
    font-size: 0.85em;
    margin-top: 4px;
}

.efficiency-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.85em;
}

.efficiency-table th {
    background: var(--tertiary-bg);
    color: var(--accent-color);
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9em;
}

.efficiency-table td {
    padding: 6px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.efficiency-table tr:hover {
    background: var(--hover-bg);
}

.efficiency-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.efficiency-table th.sortable:hover {
    background: var(--hover-bg);
}

.sort-indicator {
    position: absolute;
    right: 6px;
    opacity: 0.5;
}

.sort-indicator::after {
    content: '⇅';
}

.efficiency-table th.sort-asc .sort-indicator::after {
    content: '↑';
    opacity: 1;
}

.efficiency-table th.sort-desc .sort-indicator::after {
    content: '↓';
    opacity: 1;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.compact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .compact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

.info-tooltip {
    background: var(--tertiary-bg);
    border-left: 3px solid var(--accent-color);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.9em;
}

.session-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.session-inputs .input-group {
    margin-bottom: 0;
    flex: 0 0 200px;
}

.refresh-btn {
    background: var(--tertiary-bg);
    border: 2px solid var(--accent-color);
    padding: 6px 14px;
    color: var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.9em;
}

.refresh-btn:hover {
    background: var(--hover-bg);
    transform: scale(1.02);
}

.efficiency-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9em;
}

.efficiency-toggle-btn:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.efficiency-toggle-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: bold;
    text-shadow: none;
}

.loading {
    text-align: center;
    color: var(--accent-color);
    font-size: 1em;
    margin: 15px 0;
}