/* Calculator Component styles for MyDailyDock - Entry Bridge CSS */

@import './standard/standard.css';
@import './scientific/scientific.css';
@import './programmer/programmer.css';

/* Container Layout */
.calculator-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-secondary, #fbfbfa);
  border: 1px solid var(--border-color, #e9e9e6);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Display styles */
.calc-display-wrapper {
  background-color: var(--bg-primary, #ffffff);
  border: 1px solid var(--border-color, #e9e9e6);
  border-radius: 8px;
  padding: 16px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  word-wrap: break-word;
  word-break: break-all;
}

.calc-expression {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  color: var(--text-secondary, #5f5e5b);
  min-height: 1.2em;
  width: 100%;
  text-align: right;
}

.calc-result {
  font-family: var(--font-mono, monospace);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary, #37352f);
  width: 100%;
  text-align: right;
  overflow-x: auto;
  white-space: nowrap;
}

/* Buttons Grid Layouts */
.calc-grid {
  display: grid;
  gap: 8px;
  width: 100%;
}

/* Individual Button styling */
.btn-calc {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  height: 48px;
  border: 1px solid var(--border-color, #e9e9e6);
  border-radius: 6px;
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #37352f);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  user-select: none;
}

.btn-calc:hover:not(:disabled) {
  background-color: #f1f1ef;
  border-color: #d3d3d0;
}

.btn-calc:active:not(:disabled) {
  transform: scale(0.97);
}

/* Button categorizations */
.btn-calc.num {
  font-weight: 600;
}

.btn-calc.fn {
  background-color: #f7f7f5;
  color: var(--text-secondary, #5f5e5b);
}

.btn-calc.op {
  background-color: #fef6ec;
  color: #d9730d;
  font-weight: 600;
}

.btn-calc.op:hover:not(:disabled) {
  background-color: #fdecc8;
}

.btn-calc.eq {
  background-color: #2383e2;
  color: #ffffff;
  border-color: #1b6cb8;
  font-weight: 600;
}

.btn-calc.eq:hover:not(:disabled) {
  background-color: #1a62ab;
}

.btn-calc:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: var(--bg-secondary, #fbfbfa);
}

.calc-select {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1px solid var(--border-color, #e9e9e6);
  border-radius: 6px;
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #37352f);
  outline: none;
  cursor: pointer;
}

.calc-select:focus {
  border-color: #2383e2;
}
