/* Fraction Calculator Styles */
.fraction-calculator {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
}

.calculator-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
}

.calculator-header {
  width: 100%;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.2rem;
  color: #333;
}

.calculator-display {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.equation-section,
.steps-section,
.solution-section {
  margin-bottom: 12px;
}

.equation-section label,
.steps-section label,
.solution-section label {
  font-size: 0.8rem;
  color: #666;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.equation-display {
  font-size: 1.4rem;
  min-height: 1.8rem;
  word-wrap: break-word;
  padding: 4px 0;
}

.steps-display {
  font-size: 1rem;
  color: #666;
  min-height: 2rem;
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.step {
  margin: 4px 0;
}

.solution-display {
  font-size: 1.6rem;
  font-weight: bold;
  min-height: 2rem;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.fraction-result {
  display: inline-block;
}

.decimal-result {
  display: inline-block;
  font-size: 1rem;
  color: #888;
  margin-left: 8px;
}

.calculator-keypad {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keypad-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.keypad-row .v-btn {
  flex: 1;
  height: 48px;
  font-size: 1.2rem;
}

.function-key {
  background-color: #e0e0e0 !important;
}

.number-key {
  background-color: #f5f5f5 !important;
}

.operation-key {
  background-color: #ffcc80 !important;
}

.equals-key {
  background-color: #81c784 !important;
  color: white !important;
}

.fraction-key {
  background-color: #90caf9 !important;
  font-size: 1rem !important;
}

.history-title {
  border-bottom: 1px solid #eee;
}

.fraction-calculator-button-container {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 999;
}

.fraction-calculator-button {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.fraction-calculator-modal .v-dialog__content {
  backdrop-filter: blur(5px);
}

/* Responsive styles */
@media (max-width: 600px) {
  .fraction-calculator {
    width: 100%;
  }
  
  .keypad-row .v-btn {
    height: 42px;
    font-size: 1rem;
    min-width: 0;
    padding: 0 8px !important;
  }
  
  .equation-display {
    font-size: 1.2rem;
  }
  
  .solution-display {
    font-size: 1.4rem;
  }
  
  .calculator-display {
    padding: 12px;
  }
}

/* Dark mode support */
.theme--dark .calculator-card {
  background-color: #1e1e1e;
}

.theme--dark .calculator-display {
  background-color: #2d2d2d;
}

.theme--dark .number-key {
  background-color: #3d3d3d !important;
}

.theme--dark .function-key {
  background-color: #333333 !important;
}

.theme--dark .steps-display {
  border-color: #444;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.solution-display {
  animation: fadeIn 0.3s ease-in-out;
}

.step {
  animation: fadeIn 0.2s ease-in-out;
}
