/* Base Styles */
:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('circuit-pattern.png') repeat;
  opacity: 0.15;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark);
  opacity: 0.9;
}

/* Events Section */
.upcoming-events {
  padding: 5rem 5%;
  background-color: var(--light);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: var(--light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.event-card h3 {
  color: var(--primary);
}

.event-card p {
  margin-bottom: 0.5rem;
  color: var(--dark);
  opacity: 0.8;
}

.register-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
  display: inline-block;
}

.register-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Feed Section Styles */
.feed-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #2563eb;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #10b981;
}

.feed-posts {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid #2563eb;
}

.post-author h3 {
  margin: 0;
  color: #2563eb;
}

.post-author small {
  color: #666;
  font-size: 0.8rem;
}

.post-content {
  padding: 1rem;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
  max-height: 400px;
  object-fit: cover;
}

.post-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-category {
  background: #10b981;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.post-actions {
  display: flex;
  gap: 0.8rem;
}

.action-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.action-btn:hover {
  background: rgba(37, 99, 235, 0.1);
}

.action-btn::before {
  font-size: 1.2rem;
}

.like-btn::before {
  content: '👍';
}

.comment-btn::before {
  content: '💬';
}

.share-btn::before {
  content: '↗️';
}

.create-post-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2563eb;
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-post-btn:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

.create-post-btn span {
  margin-top: -5px;
}

/* Clubs Page Styles */
.clubs-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-bar {
  display: flex;
  margin: 1.5rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid #ddd;
  border-radius: 30px 0 0 30px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  border-color: #2563eb;
}

.search-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #1d4ed8;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.club-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.club-image {
  height: 150px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.club-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.club-info {
  padding: 1.5rem;
  flex: 1;
}

.club-link {
  text-decoration: none;
  color: inherit;
}

.club-card h3 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.club-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.club-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
}

.register-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.8rem;
  margin: 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.register-btn:hover {
  background: #0d9f6e;
}

/* Auth Page Styles */
.auth-container {
  display: flex;
  min-height: calc(100vh - 80px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f8fafc;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.auth-header h2 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #64748b;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}

.forgot-password {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-btn {
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn {
  background: #2563eb;
  color: white;
  border: none;
}

.auth-btn:hover {
  background: #1d4ed8;
}

.google-btn {
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.google-btn:hover {
  background: #f8fafc;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #64748b;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-illustration {
  display: none;
}

/* Registration Page Specific Styles */
select {
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.password-strength {
  height: 4px;
  background: #e2e8f0;
  margin-top: 0.5rem;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength::before {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width 0.3s, background 0.3s;
}

.password-strength.weak::before {
  width: 30%;
  background: #ef4444;
}

.password-strength.medium::before {
  width: 60%;
  background: #f59e0b;
}

.password-strength.strong::before {
  width: 100%;
  background: #10b981;
}

.password-match {
  font-size: 0.8rem;
  margin-top: 0.3rem;
  height: 1rem;
}

.password-match.valid {
  color: #10b981;
}

.password-match.invalid {
  color: #ef4444;
}

.terms {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.terms input {
  width: auto;
}

.terms label {
  font-size: 0.9rem;
  color: #64748b;
}

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

.terms a:hover {
  text-decoration: underline;
}
/* Club Detail Page Styles */
.club-detail {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.club-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.club-logo-large {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  border: 5px solid #2563eb;
  margin-bottom: 1rem;
}

.club-social {
  margin-top: 1rem;
}

.club-social a {
  color: #2563eb;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.club-social a:hover {
  color: #1d4ed8;
}

.introduction, .events, .executive-board, .register-section, .contact-us {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.event-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.event-card h4 {
  margin-top: 0;
  color: #2563eb;
}

.event-date {
  color: #64748b;
  font-weight: bold;
  margin: 0.5rem 0;
}

.board-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.member-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  padding-top: 30px;
}

.card-background {
  height: 100px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.register-section {
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: white;
}

.register-section .register-btn {
  background: white;
  color: #2563eb;
  font-weight: bold;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

/* Dashboard Styles */
.dashboard-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card i {
  font-size: 2rem;
  color: #2563eb;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  color: #1e293b;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.dashboard-section {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
  color: #2563eb;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.create-post {
  grid-column: span 8;
}

.members-section {
  grid-column: span 12;
}

.activity-section {
  grid-column: span 4;
}

.quick-actions {
  grid-column: span 4;
}

/* Form Styles */
#post-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#post-visibility {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  width: 200px;
}

#post-content {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  min-height: 120px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-options {
  display: flex;
  gap: 0.5rem;
}

.upload-btn, .post-btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.upload-btn {
  background: #e2e8f0;
  color: #334155;
}

.upload-btn:hover {
  background: #cbd5e1;
}

.post-btn {
  background: #2563eb;
  color: white;
}

.post-btn:hover {
  background: #1d4ed8;
}

/* Members Table */
.members-list {
  overflow-x: auto;
}

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

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.status {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status.active {
  background: #dcfce7;
  color: #166534;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1rem;
  margin: 0 0.2rem;
}

.action-btn:hover {
  color: #2563eb;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination button {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Activity Section */
.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.activity-content p {
  margin: 0;
}

.activity-content small {
  color: #64748b;
  font-size: 0.8rem;
}

/* Quick Actions */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.action-buttons button {
  padding: 1rem;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  transition: all 0.2s;
}

.action-buttons button:hover {
  background: #2563eb;
  color: white;
}

/* Notifications Panel */
.notifications-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s;
  z-index: 1000;
}

.notifications-panel.active {
  right: 0;
}

.notifications-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-notifications {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.notifications-list {
  padding: 1rem;
  overflow-y: auto;
  height: calc(100vh - 60px);
}
/* Board Management Specific Styles */
.board-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.import-export {
  display: flex;
  gap: 1rem;
}

.editable-board-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.editable-member-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  transition: all 0.3s;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.editable-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.editable-member-card.dragging {
  opacity: 0.5;
  border: 2px dashed #2563eb;
  background: #f8fafc;
}

.member-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

.edit-member, .delete-member {
  background: rgba(255,255,255,0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-member {
  color: #2563eb;
}

.delete-member {
  color: #ef4444;
}

.edit-member:hover, .delete-member:hover {
  background: white;
  transform: scale(1.1);
}

.member-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 3px solid #e2e8f0;
}

.permission-levels {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.permission-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  display: inline-block;
}

.permission-badge.admin {
  background: #dcfce7;
  color: #166534;
}

.permission-badge.editor {
  background: #fef9c3;
  color: #854d0e;
}

.permission-badge.viewer {
  background: #e0f2fe;
  color: #075985;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

.close-modal:hover {
  color: #2563eb;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-top: 1rem;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.save-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.save-btn:hover {
  background: #1d4ed8;
}

.cancel-btn {
  background: #e2e8f0;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.cancel-btn:hover {
  background: #cbd5e1;
}

/* Activity Log */
.activity-log {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.log-entries {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 1rem;
}

.log-entry {
  padding: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry .timestamp {
  color: #64748b;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-left, .nav-right {
    margin: 1rem 0;
    gap: 1rem;
  }
  
  .hero {
    height: auto;
    padding: 5rem 5%;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }

  .feed-container {
    padding: 0 0.5rem;
  }
  
  .post-header {
    padding: 0.8rem;
  }
  
  .post-avatar {
    width: 40px;
    height: 40px;
  }
  
  .post-actions {
    gap: 0.5rem;
  }
  
  .action-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .create-post-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .clubs-grid {
    grid-template-columns: 1fr;
  }
  
  .club-image {
    height: 120px;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .board-members, .event-cards {
    grid-template-columns: 1fr;
  }
  
  .club-logo-large {
    width: 120px;
    height: 120px;
  }
  .dashboard-container {
    padding: 1rem;
  }
  
  .post-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .upload-options {
    width: 100%;
    justify-content: space-between;
  }
  
  .upload-btn, .post-btn {
    width: 100%;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .notifications-panel {
    width: 100%;
    right: -100%;
  }
  
  .board-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .editable-board-members {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .auth-container {
    gap: 4rem;
    padding: 4rem;
  }
  
  .auth-illustration {
    display: block;
    max-width: 500px;
  }
  
  .auth-illustration img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-section {
    grid-column: span 12 !important;
  }
}

/* Techy Elements */
.tech-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.1;
  background: 
    radial-gradient(circle at 20% 30%, var(--primary) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, var(--secondary) 0%, transparent 20%);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}