/* Base styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header styles */
header {
  margin-bottom: 30px;
  text-align: center;
}

header h1 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Card styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.card h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

input[type="file"] {
  padding: 10px 0;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #2980b9;
}

.btn-primary {
  background: var(--primary-color);
}

/* Table styles */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table th {
  background-color: var(--secondary-color);
  color: white;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

table tr:hover {
  background-color: #e9e9e9;
}

/* Status messages */
.status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Link styles */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.link-btn {
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  margin-right: 10px;
}

.link-btn:hover {
  text-decoration: underline;
}

.link-btn.delete-file {
  color: var(--danger-color);
}

.link-btn:disabled {
  color: #999;
  cursor: not-allowed;
}

/* Footer styles */
footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: #666;
}

/* File selection and upload progress */
.selected-files-container {
  margin: 15px 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.file-item.uploading {
  background-color: #e8f4fd;
}

.file-item.success {
  background-color: #d4edda;
}

.file-item.error {
  background-color: #f8d7da;
}

.file-info {
  flex-grow: 1;
  margin-right: 10px;
}

.file-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.file-size {
  font-size: 0.8rem;
  color: #666;
}

.file-status {
  font-size: 0.9rem;
  margin-top: 4px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  margin-top: 6px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
  .card {
    padding: 15px;
  }

  .btn {
    width: 100%;
  }

  table th,
  table td {
    padding: 8px;
  }
}
