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

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --bg-color: #f8fafc;
  --sidebar-bg: #1e293b;
  --sidebar-text: #f1f5f9;
  --sidebar-hover: #334155;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  padding-left: 260px;
  /* Sidebar width */
  line-height: 1.6;
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.collapsed {
  padding-left: 80px;
}

img {
  border: 0;
}

form {
  margin: 0;
}

.input {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: white;
  width: 100%;
  max-width: 400px;
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input[type="text"],
.input[type="password"],
select.input {
  width: 100%;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.lefttd {
  background-color: transparent;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

.righttd {
  background-color: white;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

.section-container {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-title {
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  background: #fdfdfd;
}

.section-description {
  padding: 15px 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}

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

.settings-table td {
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.settings-table tr:last-child td {
  border-bottom: none;
}

.field-label {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.help-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

.important {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-left: 5px;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  margin: 30px -25px -25px -25px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  z-index: 100;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.03);
}

/* Entry Row Styles */
.adminlinks {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

tr:hover .adminlinks,
div:hover>.adminlinks {
  opacity: 1;
}

.adminlinks a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.adminlinks .sep {
  opacity: 0.2;
}

.entry-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 120px;
  transition: transform 0.2s;
}

.entry-image:hover {
  transform: scale(1.05);
}

.comment-container {
  margin: 15px auto 0 auto;
  background: #f8fafc;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
  overflow: hidden;
}

.comment-header {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comment-body {
  padding: 15px;
}

/* Button Styles */
.submit,
.reset,
.goback {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.submit {
  background: var(--primary-color);
  color: white;
}

.submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.reset {
  background: #ef4444;
  color: white;
}

.reset:hover {
  background: #dc2626;
}

.contenttable {
  padding: 30px;
  min-height: 100vh;
  box-sizing: border-box;
}

body.collapsed .contenttable {
  margin-left: 70px;
}