/* style.css - Main styles for Positive Affirmations App */

:root {
  --primary-color: #4a90e2;
  --secondary-color: #5cb85c;
  --text-color: #333;
  --background-color: #f9f9f9;
  --card-color: #fff;
  --accent-color: #ffc107;
  --error-color: #d9534f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

        .app-header {
            position: relative;
            overflow: hidden;
            padding: 2rem 1rem;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        .app-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(rgba(25, 35, 128, 0.7), rgba(25, 35, 128, 0.5)), 
                           url('https://positive4mind.com/images/positive4mindlogo10.jpg');
            background-size: cover;
            background-position: center;
            opacity: 0.9;
            z-index: -1;
        }
        .app-header h1 {
            position: relative;
            font-size: 2.5rem;
        }
.link { color: #ffffff;} /* CSS link color (white) */
.link:hover { color: #00FF00; 
text-decoration: underline wavy white;} /* CSS link hover (green)wavy white */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.affirmation-app {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

header h1 {
  margin: 0;
  color: var(--primary-color);
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(74, 144, 226, 0.1);
}

nav a.active {
  color: var(--primary-color);
  background-color: rgba(74, 144, 226, 0.1);
}

.nav-container {  /* Styles for the container */
  display: flex;
  justify-content: center; /* Centers horizontally */
}

nav {
  display: flex;
  gap: 20px;
}

main {
  flex: 1;
  margin-bottom: 30px;
}

.affirmation-card {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.affirmation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.affirmation-card.featured {
  border-left: 5px solid var(--accent-color);
}

.affirmation-text {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--text-color);
}

.affirmation-author {
  font-style: italic;
  text-align: right;
  margin-bottom: 20px;
}

.affirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.affirmation-actions-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-random {
  background-color: var(--primary-color);
  color: white;
  font-size: 16px;
  padding: 12px 20px;
}

.btn-favorite {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.btn-share {
  background-color: var(--secondary-color);
  color: white;
}

.btn-remove {
  background-color: var(--error-color);
  color: white;
}

.daily-affirmation h2,
.favorites-container h2,
.categories-container h2,
.about-container h2,
.category-affirmations h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.subtitle {
  color: #777;
  margin-top: 0;
  margin-bottom: 30px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #777;
  margin-bottom: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading-text {
  font-size: 18px;
  color: var(--primary-color);
}

.not-found {
  text-align: center;
  padding: 40px;
}

.not-found h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.not-found p {
  margin-bottom: 20px;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  color: #777;
}

/* About page specific styles */
.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container h3 {
  color: var(--primary-color);
  margin: 25px 0 10px;
}

.about-container ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

.about-container li {
  margin-bottom: 10px;
}

/* Transitions */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav {
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .affirmation-text {
    font-size: 20px;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .affirmation-actions {
    flex-direction: column;
  }
  
  button {
    width: 100%;
  }
  
  .affirmation-card {
    padding: 20px;
  }
}

   /* Add this CSS to your existing styles */
.header-grid {
    display: grid;
    grid-template-columns: 10% 90%;
    width: 100%;
}

.header-left {
    padding: 1rem;
}

.header-right {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* This creates the centered effect while maintaining the 80% column width */
.header-content {
    max-width: 800px;
    margin: 0 auto;
}

/* For mobile responsiveness */
@media (max-width: 600px) {
    .header-grid {
        grid-template-columns: 1fr;
    }
}

/* Reminders Page Styles */
.reminders-page-container {
  max-width: 800px;
  margin: 0 auto;
}

.reminder-ui {
  margin-top: 20px;
}

.reminders-container {
  margin-top: 30px;
}

.reminders-list {
  margin-bottom: 30px;
}

.reminder-card {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.reminder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.reminder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reminder-header h4 {
  margin: 0;
  color: var(--primary-color);
}

.reminder-details {
  margin-bottom: 15px;
}

.reminder-days {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.reminder-text {
  font-style: italic;
}

.text-muted {
  color: #888;
}

.reminder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-edit-reminder,
.btn-delete-reminder {
  padding: 5px 10px;
  font-size: 14px;
}

.btn-edit-reminder {
  background-color: var(--primary-color);
  color: white;
}

.btn-delete-reminder {
  background-color: var(--error-color);
  color: white;
}

.add-reminder-form {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-reminder-form h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="time"],
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.days-selection {
  margin-bottom: 20px;
}

.days-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.days-checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

.notification-permission-container {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.notification-error {
  color: var(--error-color);
  font-weight: 500;
}

.reminder-edit-form {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--primary-color);
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-save-reminder {
  background-color: var(--secondary-color);
  color: white;
}

.btn-cancel-edit {
  background-color: #ccc;
  color: #333;
}

.empty-reminders {
  text-align: center;
  padding: 20px;
  color: #777;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--secondary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Responsive styles for reminders */
@media (max-width: 768px) {
  .days-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .days-checkboxes {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reminder-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .reminder-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-edit-reminder,
  .btn-delete-reminder {
    width: 100%;
  }
}
/* Simple reminders styling */
.simple-reminder-container {
  max-width: 600px;
  margin: 0 auto;
}

#notification-status-container {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-error {
  color: var(--error-color);
  font-weight: 500;
}

.notification-success {
  color: var(--secondary-color);
  font-weight: 500;
}

.simple-reminder-form {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.simple-reminder-form h3 {
  margin-top: 0;
  color: var(--primary-color);
  margin-bottom: 15px;
}

#reminders-list-container {
  background-color: var(--card-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#reminders-list-container h3 {
  margin-top: 0;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.simple-reminder-card {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.reminder-time {
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-color);
  flex: 0 0 80px;
}

.reminder-text {
  flex: 1;
  font-style: italic;
}

.reminder-actions {
  flex: 0 0 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-delete-reminder {
  background-color: var(--error-color);
  color: white;
  font-size: 14px;
  padding: 5px 10px;
}

@media (min-width: 768px) {
  .reminder-actions {
    flex: 0 0 auto;
    margin-top: 0;
  }
}