body,
html {
    margin: 0;
    padding: 0;
    background: #fdfcf9;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

html[data-theme="dark"] body,
html[data-theme="dark"],
html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
    background: #1c1c1c;
    color: #ddd;
}

html[data-theme="light"] body,
html[data-theme="light"],
html[data-theme="light"] input,
html[data-theme="light"] textarea {
    background: #fdfcf9;
    color: #333;
}

.welcome-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625 = 56.25%) */
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.welcome-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    margin-left: 220px; /* Space for sidebar */
    padding: 20px;
}

.notepad {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.notepad h1,
h1 {
    font-size: 24px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.image-container {
    aspect-ratio: 18 / 9;
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img,
.notepad img {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

select,
button,
textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
    padding: 8px 12px;
    margin-bottom: 15px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: 1px solid #999;
    color: inherit;
    outline: none;
}

textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
    width: 100%;
    resize: none;
    line-height: 30px;
    font-size: 16px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] select,
html[data-theme="dark"] button,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input {
    background: #333;
    color: #ddd;
    border-color: #666;
    background-size: 100% 30px;
}

html[data-theme="light"] select,
html[data-theme="light"] button,
html[data-theme="light"] textarea,
html[data-theme="light"] input {
    background: #fdfcf9;
    color: #333;
    background-size: 100% 30px;
}

.button {
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #999;
    background: transparent;
    color: inherit;
    transition: background 0.2s, color 0.2s;
    font-family: 'Courier New', Courier, monospace;
}

.button:hover {
    background: #eae8e1;
    color: #000;
}

html[data-theme="dark"] .button:hover {
    background: #333;
    color: #fff;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-toggle {
    text-align: right;
    padding: 10px 20px;
}

/* sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: #eae8e1;
    padding: 50px 20px 20px 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
    z-index: 1000;
}

html[data-theme="dark"] .sidebar {
    background: #2c2c2c;
    color: #ddd;
}

.sidebar a {
    text-decoration: none;
    color: inherit;
    padding: 8px 0;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar button {
    margin-top: auto;
    margin-bottom: 60px;
    padding: 8px;
    border: none;
    background: #ccc;
    cursor: pointer;
}

html[data-theme="dark"] .sidebar button {
    background: #444;
    color: #fff;
}

.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #ccc;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    z-index: 1100;
}

html[data-theme="dark"] .sidebar-toggle {
    background: #444;
    color: #fff;
}

/* Sidebar hidden state */
.sidebar.hidden {
    transform: translateX(-100%);
}

/* Content shift when sidebar visible */
.content {
    margin-left: 240px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.sidebar.hidden ~ .content {
    margin-left: 20px;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: 220px;
        top: 0;
        left: 0;
        height: 100%;
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 20px;
    }
}


/* Account */
    .profile-pic {
      width: 100px;
      border-radius: 50%;
      margin-bottom: 15px;
    }

    .tab-btn {
      display: inline-block;
      padding: 8px 12px;
      border: 1px solid #999;
      cursor: pointer;
      margin-right: 10px;
    }

    .tab-btn.active {
      background: #eae8e1;
    }

    html[data-theme='dark'] .tab-btn.active {
      background: #333;
    }

    .tab-content {
      display: none;
      margin-top: 20px;
    }

    .tab-content.active {
      display: block;
    }


/* photo */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.gallery .photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gallery .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery .photo-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85em;
    text-align: center;
}

.pagination .button {
  margin: 0 4px;
  padding: 6px 12px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.pagination .button.active {
  background: #676665;
}

.pagination .button.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.dimensions-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dimension-field {
  flex: 1;
  min-width: 100px;
}

.dimension-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.dimension-field input {
  width: 100%;
}

/* Stats Page */
    .stats-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 30px;
      font-size: 15px;
    }

    .stats-table th,
    .stats-table td {
      border: 1px solid #bbb;
      padding: 8px 12px;
      text-align: left;
    }

    .stats-table th {
      background: #eae8e1;
      font-weight: bold;
    }

    html[data-theme="dark"] .stats-table th {
      background: #2c2c2c;
    }

    .chart-container {
      max-width: 900px;
      margin: 0 auto 40px auto;
    }
/* Responsive table wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optional: make table width fit content for smoother scrolling */
.stats-table {
  min-width: 600px;
}
