/* LIGHT THEME STYLES FOR DateRangeTool.com */

:root {
  --primary-color: #ff6b35;
  --secondary-color: #ff8c42;
  --bg-light: #ffffff;
  --bg-card: #f9f9f9;
  --text-dark: #222222;
  --text-muted: #555555;
  --border-light: #dddddd;
  --accent-shadow: rgba(255, 107, 53, 0.2);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Layout Grid */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: #f0f0f0;
  border-right: 2px solid var(--primary-color);
  padding: 2rem 1.5rem;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--primary-color);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar ul li a:hover {
  background-color: #fff5f0;
  border-left: 3px solid var(--primary-color);
  color: var(--text-dark);
}

/* Main Content */
.main {
  padding: 2rem;
  background: var(--bg-light);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Calculator Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--accent-shadow);
}

.calculator-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px var(--accent-shadow);
}

.calculator-card h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.calculator-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="date"],
input[type="time"],
input[type="number"],
select {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  transition: border 0.3s;
}

input:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 4px var(--accent-shadow);
}

/* Button */
.calculate-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 4px;
  width: 100%;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.calculate-btn:hover {
  background: var(--secondary-color);
}

/* Result Box */
.result {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: #fff7f5;
  border: 1px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 4px;
}

.result h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.result p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

/* Random Links */
.random-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}

.random-links ul {
  list-style: none;
  padding-left: 1rem;
}

.random-links li {
  margin-bottom: 0.3rem;
}

.random-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.random-links a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
  }

  .main {
    padding: 1rem;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }
}


.calendar-grid {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-cell {
  padding: 0.8rem;
  text-align: center;
  border: 1px solid #eee;
  background: #fff;
}

.calendar-header {
  background: #f4f4f4;
  font-weight: bold;
}

.highlight {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
}

.empty {
  background: transparent;
  border: none;
}

.clock-container {
  margin: 2rem auto;
  width: 200px;
  height: 200px;
  border: 8px solid var(--primary-color);
  border-radius: 50%;
  position: relative;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: var(--primary-color);
  transform: rotate(0deg);
}
.hour-hand {
  width: 6px;
  height: 50px;
  background-color: var(--primary-color);
}
.minute-hand {
  width: 4px;
  height: 70px;
  background-color: var(--secondary-color);
}
.clock-center {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--text-dark);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}