:root {
  --scripture: orangered;
  --primary: #2563eb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #100720;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
  transition: .3s;
}
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding-bottom: 100px;
}

/* Splash Screen */

#splashScreen{

animation:show 1s linear;
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#111;
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
color: white;

}

.splashBox{
text-align:center;
}

.loader{
width:40px;
height:40px;
border:2px solid #555;
border-top:2px solid #fff;
border-radius:50%;
margin:15px auto;
animation:spin 1s linear infinite;
}

@keyframes spin{
from{transform:rotate(0deg);}
to{transform:rotate(360deg);}
}
@keyframes show{
from{display:flex;}
to{display:none;}
}

.app-bar {
  background: var(--surface);
  padding: 1rem;
  padding-top: 5rem;
  display: flex;
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-bar h1 {
  visibility: hidden;
  top: 0;
  position: absolute;
}
.container {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Summary Section */
.summary-section {
  color: var(--text);
  background: var(--surface);
  border: none;
  border: 1px solid var(--primary);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.chip-container {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chip-container li {
  background: var(--surface);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.80rem;
  border: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Note Items */
.note-item {
  background: var(--surface);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: auto;
  gap: 12px;
  transition: transform 0.2s;
}

.note-item:hover {
  transform: translateY(-2px);
}

.note-content {
  flex-grow: 1;
  line-height: 1.5;
  white-space: pre-wrap;
}
.close-btn {}
/* Dynamic Classes */
.item-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--primary);
}
.item-subheading {
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.item-scripture {
  font-style: italic;
  color: var(--scripture);
  background: var(--bg);
  border-left: 5px solid #f59e0b;
}

.delete-icon {
  color: #ef4444;
  cursor: pointer;
  opacity: 0.3;
  transition: 0.3s;
}

.note-item:hover .delete-icon {
  opacity: 1;
}

/* Floating Action Button */

@keyframes Glow {
  0% {
    box-shadow: 10px 0 30px royalblue;
  }
  20% {
    box-shadow: 10px 0 30px #fd5353;
  }

  40% {
    box-shadow: 10px 10px 30px royalblue;
  }
  60% {
    box-shadow: -10px 0 30px #fd5353;
  }

  80% {
    box-shadow: -10px -10px 30px royalblue;
  }
  100% {
    box-shadow: 10px -10px 30px #fd5353;
  }
}
.fab:hover {
  animation: fadeOut .5s linear;
  background: darkblue;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.modal-content {
  animation: fadeOut .2s linear;
  background: white;
  padding: 24px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;

}
@keyframes fadeOut {
  from {
    transform: scale(.8);
  }

  to {
    transform: scale(1);
  }
}

.selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.selection-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 1px solid #e2e8f0;
  background: none;
  border-radius: 12px;
  cursor: pointer;
}

.selection-grid button:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-secondary, .close-btn {
  background: #e2e8f0;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}



/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --border: #334155;
  --scripture: lime;
  --text-light: gray;
}

/* Side Drawer */
.side-drawer {
  position: fixed;
  left: -280px;
  top: 0;
  width: 250px;
  height: 100%;
  background: var(--surface);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: 0.3s;
  z-index: 200;
  padding: 20px;
}
.side-drawer.active {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-links {
  list-style: none;
  padding: 0;
}
.drawer-links li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
}
.drawer-links li:hover {
  background: var(--primary);
  color: white;
}

/* App Bar & Search */


.search-box {
  flex-grow: 1;
}
.search-box input {
  width: 200px;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

/* Settings Toggle */
.setting-item {
  color: var(--text);

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  background: auto;
  color: auto;
}
.footer {
  margin-top: 100%;
  margin-bottom: 0;
  text-align: center;
  line-height: 1rem;
  color: gray;
}
hr {

  border: 1px solid var(--text);
}
#set2 {
  background: var(--bg);
  color: var(--text);
}
.install {
  display: none;
  margin: 1rem 0 1rem 0;
  padding: 1rem 1.5rem;
  color: #100720;
  background: ivory;
  border: none;
  border: none;
  font-size: inherit;
  border-radius: 30px;
}
.install:hover {
  transform: scale(1.1);
  letter-spacing: 1px;
}
a{
text-decoration: none;
color: royalblue;
text-decoration: none;
font-size: 20px;
}

/* ===============================
DELETE MODAL
=============================== */

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.modal-card{
background:#1e1e1e;
padding:20px;
border-radius:12px;
width:280px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.modal-card h3{
margin-bottom:10px;
}

.modal-card p{
font-size:14px;
margin-bottom:20px;
color:#ccc;
}

.modal-actions{
display:flex;
gap:10px;
justify-content:center;
}

.btn{
padding:8px 14px;
border:none;
border-radius:8px;
cursor:pointer;
}

.cancel{
background:#444;
color:white;
}

.delete{
background:#e53935;
color:white;
}

.modal.show{
display:flex;
}
.fab {
  animation: Glow 5s ease-out alternate infinite;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.fab {
  animation: Glow 5s ease-out alternate infinite;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
font-size: 2rem;
}
/* Keep existing .note-item, .fab, and .modal styles from previous version *ad veniam labore exercitation consequat