/*
 * Ruby Calculator - Interactive calculator built with Ruby on Rails
 * Author: RSK World (Molla Samser, Founder | Rima Khatun, Designer & Tester)
 * Contact: help@rskworld.in | +91 93305 39277
 * Website: https://rskworld.in
 * Year: 2026
 * Description: Build a fully functional calculator using Ruby on Rails with modern UI
 */

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Custom styles for Ruby Calculator */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.calculator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 0 auto;
}

.display {
  background: #2d3748;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 20px;
  font-size: 2em;
  text-align: right;
  margin-bottom: 20px;
  min-height: 80px;
  font-family: 'Courier New', monospace;
}

.btn-calc {
  border-radius: 10px;
  font-weight: bold;
  margin: 5px;
  border: none;
  transition: all 0.3s ease;
}

.btn-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-number {
  background: #4a5568;
  color: white;
}

.btn-operator {
  background: #ed8936;
  color: white;
}

.btn-scientific {
  background: #9f7aea;
  color: white;
}

.btn-memory {
  background: #38b2ac;
  color: white;
}

.btn-clear {
  background: #e53e3e;
  color: white;
}

.btn-equals {
  background: #48bb78;
  color: white;
}

.history-panel {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.memory-display {
  background: #2d3748;
  color: #48bb78;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.footer-info {
  background: #f7fafc;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .calculator {
    margin: 20px;
    padding: 20px;
  }

  .btn-calc {
    margin: 3px;
    font-size: 0.9em;
  }

  .display {
    font-size: 1.5em;
    padding: 15px;
  }
}

/* Animation effects */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator, .history-panel, .footer-info {
  animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #555;
}