/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    padding-top: 30px;
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
.main-header {
    position: relative;
    padding: 20px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.home-logo {
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.home-logo img {
    height: 115px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.home-logo:hover {
    transform: scale(1.1);
}

/* Button Container */
.btn-container {
    display: flex;
    gap: 10px;
    margin-top: 35px;
}

/* Navigation Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 20px 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn-secondary {
    background: linear-gradient(90deg, #3498db, #2b7bc0);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-primary {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2.5rem;
    color: #2c3e50;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #79ccee, #2b7bc0);/*2b7bc0,3ca8d7,79ccee,97dff5*/
    margin: 10px auto;
    border-radius: 2px;
}

/*Profile*/
.profile-dropdown {
    position: absolute;
    top: -7px;
    right: 30px;
    cursor: pointer;
    z-index: 999;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
    transition: box-shadow 0.3s ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.username-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.status {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
}


form#log-out {
    margin: 0;
}

form#log-out button {
    all: unset; 
    display: inline-block;
    padding: 12px 25px;
    margin: 20px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

form#log-out .btn-primary {
    background: linear-gradient(90deg, #3498db, #2b7bc0);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

form#log-out .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}


/* Footer */
footer {
    text-align: center;
    background-color: var(--footer-bg);
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

/* Responsive Fixes */
@media screen and (max-width: 768px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

  .home-logo {
    margin: 0;
  }

  .home-logo img {
    height: 80px;
    max-width: 120px;
  }

  .profile-dropdown {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }

  .profile-info {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: right;
  }

  .username-group {
    align-items: flex-end;
    text-align: right;
  }

  .btn-container {
    flex-direction: row;           
    justify-content: center;       
    flex-wrap: nowrap;               
    gap: 8px;
    margin-top: 20px;
    width: 100%;
    padding: 0 -9px;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 0;
    margin: 10px 0;                              
    padding: 10px 12px;
    font-size: 0.78rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }
}