/* File: style.css
Author: Katherine Tamayo
Email: katherine_tamayo@student.uml.edu
Date Created: November 26, 2025
Course: COMP 4610 - GUI Programming I
Assignment: HW4 Part 2 - jQuery UI Slider and Tab Widgets
Instructor: Professor Wenjin Zhou
Description: This CSS file contains styles for the interactive multiplication table application, including layout, form elements, tables, and error messages.
*/

/* General body styles */
body {
  font-family: "Courier New", Courier, monospace;
  background-color: #fcf5f5;
  margin: 0;
  padding: 20px;
  color: #222;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Tabs container override padding */
#tabs {
  background: transparent;
  border: none;
  margin-bottom: 20px;
}

/* Form container */
.form-container {
  background-color: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  max-width: 1000px;
  margin-bottom: 12px;
}

/* Inputs grouped into rows */
.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

/* Input group */
.input-group {
  flex: 1;
}

/* Label */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Input field */
input[type="number"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Slider */
.slider {
  height: 10px;
  margin-top: 6px;
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

button {
  padding: 10px 14px;
  background-color: #efbfbf;
  color: black;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background-color: #d99b9b;
}

button.danger {
  background-color: #ffb3b3;
}

button.danger:hover {
  background-color: #ff9090;
}

/* Error container */
.error-container {
  margin-top: 12px;
  padding: 10px;
  background-color: #fff3f3;
  border: 1px solid #ffd2d2;
  border-radius: 6px;
  color: #cc0000;
  display: none;
}

.error-container.show {
  display: block;
}

/* Table wrapper */
.table-wrapper {
  max-width: 100%;
  overflow: auto;
  margin: 10px 0 30px 0;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
  padding: 14px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

/* Table cells */
table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  min-width: 50px;
}

/* Header cells */
table th {
  background-color: #efbfbf;
  color: #333;
  font-weight: bold;
  position: sticky;
  top: 0;
}

/* Zebra pattern */
table tr:nth-child(odd) td:nth-child(odd) {
  background-color: #ffffff;
}
table tr:nth-child(odd) td:nth-child(even) {
  background-color: #ffe6e6;
}
table tr:nth-child(even) td:nth-child(odd) {
  background-color: #ffe6e6;
}
table tr:nth-child(even) td:nth-child(even) {
  background-color: #ffffff;
}

/* Hover */
table td:hover {
  background-color: #ffdede;
  transition: background-color 0.15s;
}

/* Validation label styling */
label.error,
.plugin-error {
  color: #cc0000;
  font-size: 13px;
  margin-top: 3px;
  display: block;
}

/* Tabs modifications: add checkbox spacing and icon alignment */
#tabList li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Small checkbox styling in tabs */
.tab-select {
  transform: scale(1.05);
  margin-right: 4px;
}

/* Hint text */
.hint {
  color: #666;
  font-size: 12px;
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 760px) {
  .input-row {
    flex-direction: column;
  }
}

