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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #181818;
  min-height: 100vh;
}

.header {
  background: #181818;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header img {
  height: 36px;
}

.header .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header .user-info {
  color: #aaa;
  font-size: 14px;
}

.header a, .header button {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.header .nav-right a, .header .nav-right button {
  border: 1px solid #444;
}

.header .nav-right a:hover, .header .nav-right button:hover {
  border-color: #ff4a12;
  color: #ff4a12;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 32px;
}

.card h2 {
  margin-bottom: 24px;
  font-size: 22px;
}

.logo-center {
  text-align: center;
  margin-bottom: 32px;
}

.logo-center img {
  height: 48px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

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

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #ff4a12;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #ff4a12;
  color: #fff;
}

.btn-primary:hover {
  background: #e03e0d;
}

.btn-secondary {
  background: #eee;
  color: #181818;
}

.btn-secondary:hover {
  background: #ddd;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #fde8e8;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

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

table th, table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table th {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tr:hover {
  background: #fafafa;
}

.actions {
  display: flex;
  gap: 8px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.file-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.file-card:hover {
  border-color: #ff4a12;
  box-shadow: 0 4px 16px rgba(255, 74, 18, 0.12);
  transform: translateY(-2px);
}

.file-card .file-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.file-card .file-name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
  word-break: break-word;
}

.file-card .file-date {
  font-size: 13px;
  color: #888;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid #eee;
}

.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover {
  color: #181818;
}

.tab.active {
  color: #ff4a12;
  border-bottom-color: #ff4a12;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 12px;
    margin: 20px auto;
  }

  .card {
    padding: 20px;
  }

  table th, table td {
    padding: 8px;
    font-size: 13px;
  }

  .header {
    padding: 12px 16px;
  }
}
