/* Általános stílusok */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar stílusok */
.sidebar {
  width: 250px;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
}

.sidebar-header {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.3);
  margin-bottom: 20px;
}

.sidebar-header h1 {
  color: #4fc3f7;
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.sidebar-header p {
  color: #90a4ae;
  font-size: 0.9rem;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(0, 150, 255, 0.1);
  color: #4fc3f7;
  border-left: 3px solid #4fc3f7;
  text-shadow: 0 0 8px rgba(79, 195, 247, 0.7);
}

.sidebar-nav i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Fő tartalom stílusok */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  color: #4fc3f7;
  font-size: 2rem;
  text-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

.user-actions {
  display: flex;
  align-items: center;
}

.logout-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.5);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Kártya stílusok */
.card {
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 150, 255, 0.2);
}

.card h2 {
  color: #4fc3f7;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* Feltöltés űrlap */
.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.file-input {
  flex: 1;
  min-width: 200px;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 5px;
  padding: 10px;
  color: #e0e0e0;
  transition: all 0.3s ease;
}

.file-input:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.upload-btn {
  background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: linear-gradient(135deg, #29b6f6 0%, #1976d2 100%);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.7);
}

/* Fájl lista */
.file-list {
  list-style: none;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(30, 30, 40, 0.5);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(40, 40, 50, 0.7);
  transform: translateX(5px);
}

.file-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.file-name {
  color: #e0e0e0;
  font-weight: 500;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.download-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.share-btn {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.share-btn:hover {
  background: rgba(255, 193, 7, 0.3);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.rename-btn {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.5);
}

.rename-btn:hover {
  background: rgba(33, 150, 243, 0.3);
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.delete-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.5);
}

.delete-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Üres állapot stílusok */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #90a4ae;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Reszponzív design */
@media (max-width: 992px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .sidebar-nav ul {
    display: flex;
    overflow-x: auto;
    padding: 0 10px;
  }
  
  .sidebar-nav li {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-right: 10px;
  }
  
  .sidebar-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 15px;
    white-space: nowrap;
  }
  
  .sidebar-nav a:hover, .sidebar-nav a.active {
    border-left: none;
    border-bottom: 3px solid #4fc3f7;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-actions {
    margin-top: 15px;
    width: 100%;
    justify-content: flex-end;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .file-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }
  
  .file-actions .btn {
    flex: 1;
    text-align: center;
    margin: 0 2px;
  }
  
  .upload-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .file-input {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 15px 10px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .file-actions {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .file-actions .btn {
    flex: 0 0 calc(50% - 5px);
    margin-bottom: 5px;
    font-size: 0.8rem;
    padding: 8px 5px;
  }
  
  .card {
    padding: 15px;
  }
}

/* Glowing effektek */
.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #4fc3f7, #2196f3, #03a9f4, #4fc3f7);
  background-size: 400%;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow:hover::before {
  opacity: 1;
  animation: glowing 2s linear infinite;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Egyedi görgetősáv */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 20, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 195, 247, 0.7);
}

/* Login oldal stílusok */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

.login-card {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(79, 195, 247, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0b0b0;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 5px;
  color: #e0e0e0;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #29b6f6 0%, #1976d2 100%);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.7);
}

/* Megosztás és letöltés oldalak speciális stílusai */
.share-container,
.download-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.share-card,
.download-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(79, 195, 247, 0.3);
  width: 100%;
  max-width: 600px;
}

/* Reszponzív design további finomításai */
@media (max-width: 768px) {
  .share-card,
  .download-card {
    padding: 30px 20px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .share-card,
  .download-card {
    padding: 25px 15px;
  }
}