* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: #f4f5f7;
  color: #222;
}

.login-box {
  max-width: 380px;
  margin: 80px auto;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.login-box h1 {
  font-size: 20px;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.error {
  color: #dc2626;
  font-size: 13px;
}

.muted {
  color: #888;
  font-size: 13px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.topbar .brand {
  font-weight: 600;
}

.topbar nav a {
  margin-left: 16px;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

.container {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}

.breadcrumbs {
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
}

.panel {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 12px;
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form input, .inline-form select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

.inline-form button {
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.folder-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.folder-list a {
  color: #111;
  text-decoration: none;
}

.file-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.file-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.file-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.file-actions a {
  color: #2563eb;
  text-decoration: none;
}

.link-form {
  margin-bottom: 10px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
  background: #f8f9fb;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.link-list code {
  background: #eef;
  padding: 2px 6px;
  border-radius: 4px;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.log-table th, .log-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  text-align: left;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  margin: 6px;
}

.link-copy {
	  cursor: pointer;
	    user-select: all;
}

.link-copy.copied {
	  background: #16a34a;
	    color: #fff;
}

.preview-body {
	  margin: 0;
	    min-height: 100vh;
	      background: #111;
	        display: flex;
	          align-items: center;
	            justify-content: center;
	              position: relative;
}
.preview-image {
	  max-width: 100vw;
	    max-height: 100vh;
	      object-fit: contain;
	        display: block;
}
.preview-fallback {
	  background: #fff;
	    border-radius: 12px;
	      padding: 32px;
	        text-align: center;
	          max-width: 380px;
}
.download-fab {
	  position: fixed;
	    left: 20px;
	      bottom: 20px;
	        z-index: 1000;
	          box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.folder-lock {
	  color: #b45309;
	    margin-left: 4px;
}
.folder-password-form {
	  display: inline-flex;
	    gap: 4px;
	      align-items: center;
	        margin-left: 8px;
}
.folder-password-form input {
	  padding: 4px 8px;
	    border: 1px solid #ddd;
	      border-radius: 6px;
	        font-size: 12px;
	          width: 100px;
}
.folder-password-form button {
	  padding: 4px 8px;
	    border: none;
	      border-radius: 6px;
	        background: #2563eb;
	          color: #fff;
	            font-size: 12px;
	              cursor: pointer;
}
