@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Glass Design Colors */
  --glass-bg: rgba(15, 37, 84, 0.15);
  --glass-border: rgba(91, 107, 168, 0.3);
  --glass-shadow: 0 8px 32px rgba(15, 37, 84, 0.15);
  --backdrop: blur(4px);
  
  /* Gradient Background - Blue Palette */
  --gradient-primary: linear-gradient(135deg, #7b9cd8 0%, #5a6fa8 100%);
  --gradient-secondary: linear-gradient(135deg, #a8c5f0 0%, #556aa0 100%);
  
  /* Primary Colors - Blue Shades */
  --primary: #7b9cd8;
  --primary-light: #a8c5f0;
  --primary-dark: #556aa0;
  --secondary: #5a6fa8;
  
  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-light: #ffffff;
  
  /* Accent Colors */
  --accent-success: #48bb78;
  --accent-error: #f56565;
  --accent-warning: #ed8936;
  --accent-info: #6ba3d8;
  
  /* Backgrounds */
  --bg-dark: #0f2554;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 37, 84, 0.1);
  --shadow-md: 0 4px 6px rgba(15, 37, 84, 0.1);
  --shadow-lg: 0 10px 20px rgba(15, 37, 84, 0.15);
  --shadow-glass: 0 8px 32px rgba(15, 37, 84, 0.37);
}

/* Legacy Color Variables - Updated to Blue Palette */
:root {
  --col1: #6ba3d8;
  --col2: #5a8bd0;
  --col3: #556aa0;
  --col4: #a8c5f0;
  --col5: #7b9cd8;
  --col6: #cbd8f1;
  --col7: #0f2554;
  --col8: #1a3a70;
  --col9: #556aa0;
  --col10: #5a6fa8;
}
.c1 {
  background-color: var(--col1);
  color: black;
}
.c2 {
  background-color: var(--col2);
  color: black;
}
.c3 {
  background-color: var(--col3);
}
.c4 {
  background-color: var(--col4);
}
.c5 {
  background-color: var(--col5);
}
.c6 {
  background-color: var(--col6);
  color: black;
}
.c7 {
  background-color: var(--col7);
  color: white;
}
.c8 {
  background-color: var(--col8);
  color: white;
}
.c9 {
  background-color: var(--col9);
  color: white;
}
.c10 {
  background-color: var(--col10);
  color: white;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: var(--gradient-primary);
  background-attachment: fixed;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(123, 156, 216, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(90, 111, 168, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Error Messages */
.errors {
  color: #ff4757;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
  border-left: 5px solid #ff4757;
  border-right: 1px solid rgba(255, 71, 87, 0.3);
  border-top: 1px solid rgba(255, 71, 87, 0.3);
  border-bottom: 1px solid rgba(255, 71, 87, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  backdrop-filter: var(--backdrop);
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.2);
  list-style: none;
  font-weight: 500;
}

.errors li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.errors li::before {
  content: '⚠️';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Success Messages */
.success {
  color: #2ecc71;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.1) 100%);
  border-left: 5px solid #2ecc71;
  border-right: 1px solid rgba(46, 204, 113, 0.3);
  border-top: 1px solid rgba(46, 204, 113, 0.3);
  border-bottom: 1px solid rgba(46, 204, 113, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  backdrop-filter: var(--backdrop);
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
  list-style: none;
  font-weight: 500;
}

.success li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success li::before {
  content: '✅';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Warning Messages */
.warning {
  color: #ed8936;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(237, 137, 54, 0.15) 0%, rgba(221, 107, 32, 0.1) 100%);
  border-left: 5px solid #ed8936;
  border-right: 1px solid rgba(237, 137, 54, 0.3);
  border-top: 1px solid rgba(237, 137, 54, 0.3);
  border-bottom: 1px solid rgba(237, 137, 54, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  backdrop-filter: var(--backdrop);
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(237, 137, 54, 0.2);
  list-style: none;
  font-weight: 500;
}

.warning li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning li::before {
  content: '⚠️';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Navigation Menu */
#menu-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin: 0 auto;
  max-width: 1200px;
}

.menu-item {
  padding: 10px 16px;
  list-style-type: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.menu-item a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
}

.logo {
  padding: 0;
  border: none;
  background-color: transparent;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.menu-item:hover {
  background: rgba(123, 156, 216, 0.2);
  border-color: rgba(90, 111, 168, 0.3);
  box-shadow: 0 8px 32px rgba(15, 37, 84, 0.3);
  transform: translateY(-2px);
  cursor: pointer;
}
a {
  text-decoration: none;
  color: var(--primary-light);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* Content */
#content {
  padding: 32px;
  min-height: calc(100vh - 200px);
  max-width: 1200px;
  margin: 0 auto;
}

#content > p {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  border-top: 1px solid var(--glass-border);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  margin: 0 auto;
  max-width: 1200px;
}

#footer {
  display: flex;
  list-style: none;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#footer > a {
  text-decoration: none;
}

#footer > a > li {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

#footer > a > li:hover {
  background: rgba(123, 156, 216, 0.2);
  border-color: rgba(90, 111, 168, 0.3);
  box-shadow: 0 8px 32px rgba(15, 37, 84, 0.3);
  transform: translateY(-2px);
}
/* Forms */
.form {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  margin: 32px auto;
  box-shadow: var(--shadow-glass);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 8px;
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-container {
  margin-bottom: 24px;
}

.form-container table {
  width: 100%;
  border-collapse: collapse;
}

.form-container td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container td:first-child {
  width: 35%;
  padding-right: 16px;
}

.form-container label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="text"],
.form-container textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-container input[type="email"]::placeholder,
.form-container input[type="password"]::placeholder,
.form-container input[type="text"]::placeholder,
.form-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus,
.form-container input[type="text"]:focus,
.form-container textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(123, 156, 216, 0.15);
}

button {
  width: 100%;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 156, 216, 0.4);
  margin-top: 16px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 156, 216, 0.6);
  background: linear-gradient(135deg, #8ba8d9 0%, #6b7db5 100%);
}

button:active {
  transform: translateY(0);
}

.form-section {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.form-section a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-section a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.note {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
#notes-container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: minmax(280px, auto);
}

.add {
  padding: 20px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  background: var(--glass-bg);
  border-radius: 12px;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.add:hover {
  border-color: rgba(123, 156, 216, 0.5);
  background: rgba(123, 156, 216, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
}

/* Notes Card */
.card3 {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
  animation: cardSlideIn 0.4s ease-out;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card3:hover {
  background: rgba(123, 156, 216, 0.12);
  border-color: rgba(90, 111, 168, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 37, 84, 0.4);
}

.card3-heading {
  padding: 0;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.chars-left {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  padding: 0;
  margin-left: auto;
}

.card3-textarea {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 8px 0;
  resize: vertical;
  width: 100%;
  flex-grow: 1;
  font-family: 'Inter', sans-serif;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.card3-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Contact Form */
.contact-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(123, 156, 216, 0.15);
}

.form-control[readonly] {
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

/* Recaptcha Styling */
.g-recaptcha {
  display: inline-block;
  margin: 10px auto;
}

.g-recaptcha iframe {
  border-radius: 8px;
}

.card3-textarea:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(123, 156, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 156, 216, 0.15);
}

.card-save {
  border: none;
  padding: 8px 16px;
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(123, 156, 216, 0.3);
}

.card-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 156, 216, 0.5);
  background: linear-gradient(135deg, #8ba8d9 0%, #6b7db5 100%);
}

.card-save:active {
  transform: translateY(0);
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.del {
  color: var(--accent-error);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 32px;
}

.del:hover {
  background: rgba(245, 101, 101, 0.2);
  color: #ff6b6b;
  transform: scale(1.1);
}
/* Modal */
#modal {
  display: none;
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  color: white;
  font-size: 1.5rem;
  padding: 2rem;
  margin: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-glass);
  font-weight: 500;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

ul {
  padding: 0;
  margin: 0;
}

/* Color Classes */
.c1 { background-color: var(--col1); color: black; }
.c2 { background-color: var(--col2); color: black; }
.c3 { background-color: var(--col3); }
.c4 { background-color: var(--col4); }
.c5 { background-color: var(--col5); }
.c6 { background-color: var(--col6); color: black; }
.c7 { background-color: var(--col7); color: white; }
.c8 { background-color: var(--col8); color: white; }
.c9 { background-color: var(--col9); color: white; }
.c10 { background-color: var(--col10); color: white; }

/* Responsive Design */
@media (max-width: 768px) {
  #menu-items {
    flex-direction: column;
    gap: 6px;
  }
  
  .menu-item {
    width: 100%;
    text-align: center;
  }
  
  #content {
    padding: 16px;
  }
  
  .form {
    padding: 24px;
    margin: 16px;
  }
  
  #notes-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .modal-content {
    margin: 20px;
    width: calc(100% - 40px);
    max-width: none;
    font-size: 1.2rem;
    padding: 1.5rem;
  }
}