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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.app-header {
    background-color: #0056b3;
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* USER MENU */
.user-menu {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
}

.dropdown-content a,
.dropdown-content button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: #f2f2f2;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.logout-btn {
    width: 100%;
    text-align: left;
}

/* MAIN CONTENT */
.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    min-height: 70vh;
}

/* FOOTER */
.app-footer {
    background-color: #0c1e35;
    color: #ddd;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    margin-top: 0px;
}

.app-footer a {
    color: #5da9ff;
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}
.btn-logput {
    border: none;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
        cursor: pointer;
}

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

.page-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Create Button */
.create-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;

  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border: none;
  border-radius: 10px;
  cursor: pointer;

  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

/* subtle glowing border pulse */
.create-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.create-btn:hover::before {
  opacity: 0.25;
  animation: flash-glow 1.5s ease-in-out infinite;
}

/* inner shine / reflection effect */
.create-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.create-btn:hover::after {
  left: 120%;
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* slight glow pulse animation */
@keyframes flash-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.55);
  }
}


/* Flash Messages */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert.success {
    background-color: #e0f7e9;
    color: #2d7a3e;
}

.alert.error {
    background-color: #fdecea;
    color: #b02a37;
}

/* Actions */
.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px;
    transition: 0.2s;
}

.action-btn.edit {
    color: #276BB2;
}

.action-btn.edit:hover {
    color: #1e4e8c;
}

.action-btn.delete {
    color: #e74c3c;
}

.action-btn.delete:hover {
    color: #c0392b;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 20px;
    color: #555;
}
/* Form */
.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #276BB2;
    outline: none;
    box-shadow: 0 0 5px rgba(39,107,178,0.3);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Dynamic Fields */
#dynamic-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.field-row input,
.field-row select {
    flex: 1;
}

.remove-field {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.remove-field:hover {
    background: #c0392b;
}

/* Add Field Button */
.add-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #276BB2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.add-btn:hover {
    background-color: #1e4e8c;
}

/* Submit Button */
.submit-btn {
    padding: 12px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Responsive */
@media (max-width: 600px) {
    .field-row {
        flex-direction: column;
    }
}
.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}
/*dashboard card design*/
  /* premium card visuals */
  .premium-card {
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(250,250,250,0.78));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(19, 24, 40, 0.06), 0 2px 6px rgba(19,24,40,0.04);
    border: 1px solid rgba(255,255,255,0.6);
  }

  /* gradient border: uses an outer pseudo element */
  .premium-wrap {
    position: relative;
    border-radius: 14px;
    padding: 2px; /* space for gradient border */
    background: linear-gradient(90deg, rgba(56,189,248,0.08), rgba(99,102,241,0.06));
  }
  .premium-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(56,189,248,0.12), rgba(99,102,241,0.12));
    -webkit-mask: 
      linear-gradient(#000 0 0) content-box, 
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
    opacity: 0.9;
  }

  /* the actual card inside the wrapper */
  .premium-card-inner {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    padding: 14px;
  }

  /* right accent icon panel */
  .accent-panel {
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  /* subtle hover */
  .premium-card:hover {
    transform: translateY(-6px);
    transition: transform 280ms cubic-bezier(.2,.9,.3,1), box-shadow 280ms;
    box-shadow: 0 18px 40px rgba(16,24,40,0.12);
  }

  /* small rounded icon container */
  .icon-circle {
    width:44px;
    height:44px;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.7);
    box-shadow: inset 0 -2px 6px rgba(255,255,255,0.6);
  }

  /* fade-in up with stagger by --i */
  .card-fade {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 480ms forwards cubic-bezier(.2,.9,.3,1);
    animation-delay: calc(var(--i) * 90ms);
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* tooltip */
  .tooltip {
    position: absolute;
    background: #0f172a;
    color:#fff;
    padding:6px 8px;
    font-size:12px;
    border-radius:6px;
    transform: translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition: opacity 120ms, transform 120ms;
    white-space:nowrap;
    z-index:50;
  }
  .tooltip.show { opacity:1; transform: translateY(-4px); }

  /* small helpers for truncated text */
  .truncate-2 {
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
/*end dashboard card design*/