/* Futuristic Sci-Fi Theme - RobbinsNet 
   Designed with a focus on blues and futuristic elements
   Maintains functionality for user auth, sessions, and chat popup
*/

/* ========== FONTS & BASE STYLES ========== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Orbitron:wght@400;500;700&display=swap');

:root {
  /* Color palette */
  --primary-dark: #081b29;
  --primary: #0a2a3c;
  --primary-light: #0d3a56;
  --accent-blue: #0ff;
  --accent-blue-dim: rgba(0, 255, 255, 0.7);
  --secondary-blue: #2196f3;
  --tertiary-blue: #064273;
  --text-primary: #e0f7ff;
  --text-secondary: #a2d5f2;
  --background-dark: #040b11;
  --background-light: #051824;
  --success: #226a47;
  --warning: #ffab00;
  --error: #ff3d71;
  --neon-glow: 0 0 2px var(--accent-blue), 0 0 5px var(--accent-blue-dim);
  --dark-glass: rgba(6, 22, 33, 0.8);
  --light-glass: rgba(10, 60, 47, 0.5);
  
  /* Dimensions */
  --header-height: 70px;
  --border-radius: 6px;
  --large-border-radius: 12px;
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-dark) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(10, 101, 141, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(1, 62, 112, 0.2) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 30px) 20px 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  font-weight: 500;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, var(--accent-blue), transparent);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
  color: #fff;
  text-shadow: var(--neon-glow);
}

/* ========== MAIN NAVIGATION ========== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
  background: var(--dark-glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--accent-blue-dim);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin: 0 15px;
  position: relative;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.95rem;
  padding: 6px 2px;
  text-transform: uppercase;
  position: relative;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent-blue);
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid var(--accent-blue-dim);
  font-weight: bold;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  margin-right: 15px;
}

.logout-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--tertiary-blue), var(--primary));
  color: var(--text-primary);
  border: 1px solid var(--accent-blue-dim);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: var(--tertiary-blue);
  box-shadow: var(--neon-glow);
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--accent-blue);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    flex-direction: column;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--dark-glass);
    backdrop-filter: blur(10px);
    padding: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--accent-blue-dim);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .user-section {
    margin-left: auto;
  }
  
  .user-name {
    display: none;
  }
}

/* ========== DASHBOARD/CARDS LAYOUT ========== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: var(--dark-glass);
  border-radius: var(--large-border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 100%;
  border: 1px solid rgba(60, 140, 190, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-blue), var(--secondary-blue));
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(60, 140, 190, 0.2);
  position: relative;
}

.card-content {
  padding: 20px;
}

/* Widget/Card variation for dashboard */
.widget {
  background: var(--dark-glass);
  border-radius: var(--large-border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 100%;
  border: 1px solid rgba(60, 140, 190, 0.2);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent-blue), var(--secondary-blue));
}

.widget h2 {
  border-bottom: 1px solid rgba(60, 140, 190, 0.2);
  padding: 15px 20px;
  margin-bottom: 0;
  width: 100%;
}

.widget h2::after {
  display: none;
}

.widget-content {
  padding: 20px;
  flex: 1;
}

/* Admin specific widget */
.admin-widget {
  grid-column: 1 / -1;
  border-color: rgba(255, 171, 0, 0.3);
}

.admin-widget::before {
  background: linear-gradient(to right, var(--warning), transparent);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
  margin-bottom: 2px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  background: rgba(8, 27, 41, 0.5);
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25);
}

button, .btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--tertiary-blue), var(--primary));
  color: var(--text-primary);
  border: 1px solid var(--accent-blue-dim);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s;
}

button:hover, .btn:hover {
  background: var(--tertiary-blue);
  box-shadow: var(--neon-glow);
}

/* Button variations */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary-blue), var(--tertiary-blue));
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #00966e);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d68000);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #c3185b);
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(60, 140, 190, 0.2);
}

th {
  background: rgba(13, 58, 86, 0.5);
  color: var(--accent-blue);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

tr:hover td {
  background: rgba(13, 58, 86, 0.3);
}

/* File Actions */
.file-actions, .user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-download, .btn-share, .btn-delete, .btn-edit, .btn-accept, .btn-decline {
  padding: 4px 8px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.btn-download { background: linear-gradient(135deg, #3a685c, #27453e); }
.btn-share { background: linear-gradient(135deg, #3a684d, #264332); }
.btn-delete { background: linear-gradient(135deg, var(--error), #c3185b); }
.btn-edit { background: linear-gradient(135deg, var(--warning), #d68000); }
.btn-accept { background: linear-gradient(135deg, var(--success), #00966e); }
.btn-decline { background: linear-gradient(135deg, var(--error), #c3185b); }

.btn-download:hover, 
.btn-share:hover, 
.btn-delete:hover, 
.btn-edit:hover, 
.btn-accept:hover, 
.btn-decline:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-glow);
  color: white;
  text-decoration: none;
}

/* File Tables */
.file-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.file-table th, 
.file-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(60, 140, 190, 0.2);
}

.file-table th {
  background: rgba(13, 58, 86, 0.5);
  color: var(--accent-blue);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.file-table tbody tr:hover td {
  background: rgba(13, 58, 86, 0.3);
}

.file-table .file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Shared Files Section */
.shared-files-widget .file-table th:nth-child(3) {
  min-width: 100px;
}

.shared-files-widget .file-table td:nth-child(3) {
  font-style: italic;
  color: var(--text-secondary);
}

/* Ensure table responsiveness */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ========== LOGIN SECTION ========== */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: var(--dark-glass);
  border-radius: var(--large-border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(60, 140, 190, 0.2);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent-blue), var(--secondary-blue));
}

.login-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.login-form .form-group:last-child {
  margin-bottom: 0;
  text-align: center;
}

.login-form .btn {
  width: 100%;
  padding: 12px;
}

/* ========== FRIENDS STYLES ========== */
.friend-item, .friend-request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(8, 27, 41, 0.5);
  border-radius: var(--border-radius);
  border: 1px solid rgba(60, 140, 190, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.friend-item:hover, .friend-request:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid var(--accent-blue-dim);
  overflow: hidden;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-name {
  font-weight: 500;
}

.friend-status {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.online {
  background-color: var(--success);
  color: #fff;
}

.offline {
  background-color: #3c464a;
  color: #fff;
}

/* ========== CHAT POPUP STYLES ========== */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-blue), var(--tertiary-blue));
  color: var(--text-primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--neon-glow);
}

.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: var(--dark-glass);
  border-radius: var(--large-border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  z-index: 998;
  border: 1px solid var(--accent-blue-dim);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--primary);
  border-bottom: 1px solid var(--accent-blue-dim);
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-header button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 390px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(8, 27, 41, 0.5);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.chat-message {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--text-primary);
  align-self: flex-start;
  word-break: break-word;
  position: relative;
}

.chat-message.self {
  background: var(--tertiary-blue);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-message:not(.self) {
  border-bottom-left-radius: 5px;
}

.chat-input {
  display: flex;
  padding: 10px;
  background: var(--primary);
  border-top: 1px solid var(--accent-blue-dim);
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  background: rgba(8, 27, 41, 0.5);
  color: var(--text-primary);
  font-family: 'Exo 2', sans-serif;
}

.chat-input button {
  margin-left: 10px;
  padding: 0 15px;
}

.chatcont {
  display: grid;
  grid-column: 70% 30%;
}

/* ========== NOTIFICATIONS ========== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  background: var(--dark-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 350px;
  animation: slideDown 0.3s forwards;
  border-left: 4px solid var(--accent-blue);
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification.error {
  border-left-color: var(--error);
}

.notification.success {
  border-left-color: var(--success);
}

.notification.info {
  border-left-color: var(--secondary-blue);
}

.notification.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ========== CALENDAR STYLES ========== */

.calendar-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
  margin-bottom: 20px;
}

.calendar-left {
  grid-column: 1;
}

.calendar-right {
  grid-column: 2;
}

.events-section {
  background: var(--dark-glass);
  border-radius: var(--large-border-radius);
  padding: 15px;
  height: 60%;
  display: flex;
  flex-direction: column;
  overflow: scroll;
}

.calendar-wrapper {
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.calendar-day {
  min-height: 100px;
  height: 110px; /* Fixed height */
  background: rgba(106, 210, 183, 0.5);
  padding: 5px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: 1px solid rgba(10, 42, 60, 0.3);
  position: relative;
  overflow: scroll; /* Scroll overflow */
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background-color: rgba(0, 180, 216, 0.05);
  box-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
}

/* Style for dates from previous/next month */
.calendar-day.different-month {
  opacity: 0.5;
  background-color: #232827;
}

/* Style for past dates in current month */
.calendar-day.past-date {
  opacity: 0.7;
}

.calendar-day.today {
  background-color: rgba(0, 180, 216, 0.15);
  border: 2px solid var(--primary-color);
}

.calendar-day-number {
  font-weight: bold;
  position: absolute;
  top: 5px;
  right: 8px;
}

.event-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-item {
  background-color: var(--primary-color);
  color: white;
  padding: 4px 6px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-bottom: 2px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.event-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.event-item.shared {
  background-color: var(--secondary-color);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.events-list {
  max-height: 500px;
  overflow-y: auto;
}

/* Event 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.7);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: var(--dark-glass);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--accent-blue-dim);
    border-radius: var(--large-border-radius);
    width: 85%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--large-border-radius) var(--large-border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent-blue-dim);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-blue);
}

.modal-body {
    padding-top:20px;
}

.close-modal {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.friend-list-container {
    max-height: 150px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid rgba(60, 140, 190, 0.2);
    padding: 10px;
    border-radius: var(--border-radius);
    background: rgba(8, 27, 41, 0.5);
}

.friend-checkbox {
    padding: 8px 0;
    border-bottom: 1px solid rgba(60, 140, 190, 0.2);
    display: flex;
    align-items: center;
}

.friend-checkbox:last-child {
    border-bottom: none;
}

.friend-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.friend-checkbox label {
    cursor: pointer;
}

.modal-actions {
    text-align: right;
    margin-top: 15px;
    padding-bottom: 10px;
}

.modal-actions .btn {
    padding: 8px 20px;
    font-size: 1rem;
}

/* ========== HOME PAGE SPECIFIC ========== */
.welcome-section {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: var(--neon-glow);
}

.welcome-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 20px;
}

.news-section, .profile-section {
  margin-bottom: 30px;
}

.news-card {
  display: grid;
  gap: 20px;
}

.news-item {
  padding: 15px;
  background: rgba(8, 27, 41, 0.5);
  border-radius: var(--border-radius);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(60, 140, 190, 0.2);
  width: 100%;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (min-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .files-widget, .shared-files-widget {
    grid-column: span 1;
  }
  
  .news-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .admin-widget {
    grid-column: span 3;
  }
  
  .news-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .calendar-grid {
    font-size: 0.9rem;
  }
  
  .calendar-day {
    min-height: 60px;
  }
  
  .card-header {
    padding: 12px 15px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  
  .chat-popup {
    width: 300px;
    height: 450px;
    bottom: 80px;
  }
  
  .container {
    padding: calc(var(--header-height) + 20px) 15px 15px;
  }
} 
