:root {
    --primary: #2c3e50;
    --secondary: #ff6b6b;
    --accent: #3d5a80;
    --light-bg: #f8f9fa;
    --teal: #4ecdc4;
    --border-color: #e0e0e0;
    --text-color: #000000;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    background-color: var(--light-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Main Layout */
.main-content {
    display: grid;
    gap: 0 20px;
}

/* Calculator Styles */
.calculator {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

h1 {
    font-size: 1.25rem;
    text-align: center;
    color: #000;
}

h2 {
    font-size: 1.125rem;
    color: #ff6b6b;
}

h3 {
    font-size: 1rem;
    color: #000;
}

h4 {
    font-size: 0.9375rem;
    color: #000;
}

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    color: #000;
}

.tab.active {
    border-bottom-color: var(--secondary);
    color: var(--secondary);
    font-weight: bold;
}

.calculator-section {
    display: none;
}

.calculator-section.active {
    display: block;
}

.calculator-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #000;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ratio-separator {
    font-weight: bold;
    color: var(--accent);
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: opacity 0.3s;
    width: 100%;
    font-size: 1rem;
    color: #000;
}

.btn-primary {
    background-color: var(--teal);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

/* Remove hover animation - only keep opacity change */
.btn:hover {
    opacity: 0.9;
    /* transform: translateY(-2px); - REMOVED */
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    /* transform: none; - REMOVED */
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 4px;
    border-left: 4px solid var(--teal);
    display: none;
    color: #000;
}

.result h3 {
    margin-top: 0;
}

.chart-container {
    margin-top: 1rem;
    position: relative;
    height: 300px;
    width: 100%;
}

.mini-chart-container {
    margin-top: 1rem;
    position: relative;
    height: 200px;
    width: 100%;
}

.export-options {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.export-btn {
    padding: 0.5rem 1rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.3s;
}

.export-btn:hover {
    opacity: 0.9;
    /* Remove any transform if it exists */
}

.input-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.input-with-label {
    flex: 1;
}

.result-steps {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: #000;
}

.result-steps h4 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.step {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--teal);
    color: #000;
}

/* Sidebar Styles */
.sidebar {
    display: none;
}

.sidebar-content {
    position: sticky;
    top: 20px;
}

.ad-zone {
    background-color: var(--light-bg);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 20px;
    border-radius: 4px;
}

.ad-label {
    font-size: 0.875rem;
    text-align: center;
    padding: 0.5rem;
    color: var(--text-light);
}

#ad-left {
    width: 300px;
    height: 250px;
}

#ad-right {
    width: 300px;
    height: 600px;
}

#ad-tablet {
    width: 300px;
    height: 250px;
    margin: 20px auto;
}

#ad-mobile {
    width: 320px;
    height: 100px;
    margin: 20px auto;
}

#related-tools {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.tools-list {
    list-style: none;
}

.tools-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: #000;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-list a:hover {
    color: var(--teal);
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    h4 {
        font-size: 1rem;
    }

    .tab {
        font-size: 1rem;
    }

    #ad-tablet, #related-tools {
        display: block;
    }

    .related-tools {
        width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    .main-content {
        grid-template-columns: 300px 1fr 300px;
    }

    .sidebar {
        display: block;
    }

    #ad-tablet, #ad-mobile {
        display: none;
    }

    #ad-left, #ad-right, #related-tools {
        display: block;
    }

    .related-tools-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    #ad-left, #ad-right {
        display: none;
    }

    .related-tools-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.9375rem;
    }

    .tab {
        font-size: 0.875rem;
    }

    .related-tools {
        width: 100%;
    }

    #ad-tablet {
        display: none;
    }

    #ad-mobile, #related-tools {
        display: block;
    }

    .related-tools-desktop {
        display: none !important;
    }
}

/* Add breadcrumb styles */
.breadcrumb {
    padding: 0px 10px;
    color: #000;
    margin-bottom: 5px;
    font-size: 1rem;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.aspect-input-group {
    margin-bottom: 1rem;
}

.mobile-table {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 8px;
}

.mobile-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.mobile-table th, .mobile-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #000;
}

.mobile-table th {
    background-color: #4ecdc4;
    font-weight: bold;
    font-size: 1rem;
}

.mobile-table tr:nth-child(even) {
    background-color: #fafafa;
}