/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Hamburger Menu Styles */
.menu-container {
    position: relative;
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    position: fixed;
    top: 20px;
    left: 80px;
    z-index: 999;
}

.logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #333;
    transition: left 0.3s ease;
    z-index: 999;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 60px 0 0 0;
}

.sidebar ul li {
    padding: 15px 25px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar ul li a:hover {
    color: #00a8ff;
}

.reset-button {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.reset-button button {
    width: 100%;
    padding: 10px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.reset-button button:hover {
    background: #555;
    color: #00a8ff;
}

.reset-button button i {
    font-size: 14px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 80px 20px 20px;
    margin-left: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    align-content: start;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    grid-column: 1 / -1;
}

/* Conversion Tool Styles */
.conversion-tool {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 3px 6px 7px rgba(0,0,0,0.2);
    height: fit-content;
}

.conversion-tool h2 {
    color: #333;
    margin-bottom: 20px;
}

.conversion-inputs {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-weight: bold;
    color: #555;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 5px rgba(0,168,255,0.3);
}

/* Aspect Ratio Calculations Styles */
.aspect-ratio-calculations {
    border-top: 1px solid #eee;
    padding-top: 0px;
    margin-top: 10px;
}

.aspect-ratio-group {
    margin-bottom: 10px;
}

.aspect-ratio-group h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.aspect-ratio-result {
    font-size: 10pt;
    color: #666;
    line-height: 1.4;
}

/* Diagonal Calculator Styles */
.diagonal-results,
.dimensions-results {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.result-group {
    margin-bottom: 10px;
}

.result-group h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.result {
    font-size: 10pt;
    color: #666;
    line-height: 1.4;
}

.result span {
    font-weight: bold;
    color: #333;
}

/* Scientific Calculator Styles */
.calculator {
    min-width: 320px;
}

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

.calculator-header h2 {
    margin: 0;
}

.calculator-header button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
}

.calculator-header button:hover {
    color: #00a8ff;
}

.calculator-container {
    display: flex;
    gap: 20px;
}

.calculator-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-display {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-height: 60px;
}

.calculator-input {
    font-size: 24px;
    text-align: right;
    margin-bottom: 5px;
    word-wrap: break-word;
    min-height: 30px;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.calc-btn {
    padding: 15px 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: #f0f0f0;
}

.calc-btn:active {
    background: #e0e0e0;
}

.calc-btn.function {
    background: #f8f9fa;
    color: #666;
}

.calc-btn.operator {
    background: #e9ecef;
    color: #333;
    font-weight: bold;
}

.calc-btn.equals {
    background: #00a8ff;
    color: white;
    font-weight: bold;
}

.calc-btn.equals:hover {
    background: #0097e6;
}

.calc-btn.equals.tall {
    grid-row: span 2;
}

/* Calculator History Panel */
.calculator-history-panel {
    width: 300px;
    display: none;
}

.calculator-history-panel.active {
    display: block;
}

.calculator-history-panel h2 {
    margin-bottom: 15px;
}

.history-content {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    text-align: right;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.history-item:last-child {
    border-bottom: none;
}

/* Media Queries */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .calculator-history-panel {
        width: 100%;
    }
} 