/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* Form Styles */
.form-group {
    max-width: 400px;
    margin: 0 auto;
}

.form-group div {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #0066cc;
    color: white;
    cursor: pointer;
}

.btn:hover {
    background-color: #0052a3;
}

/* Board Styles */
.boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.board {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Pin Styles */
.pins-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.pin {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav .username {
    color: #666;
    font-weight: bold;
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.nav a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
}

.nav a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Messages */
.error {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Add to existing styles.css */
.actions {
    margin: 30px 0;
}

h2 {
    margin: 30px 0;
}

h3 {
    margin: 25px 0 15px 0;
}

/* Friend requests and members sections */
.friend-requests,
.current-members,
.add-members {
    margin: 30px 0;
}

.request,
.member,
.friend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 4px;
}

/* Add friend form */
.add-friend {
    margin: 30px 0;
}

.add-friend form {
    display: flex;
    gap: 15px;
    max-width: 500px;
}

.add-friend input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Board meta information */
.board-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* User list styles */
.other-users {
    margin-top: 40px;
}

.user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 4px;
}

.friends-list,
.friend-requests,
.other-users {
    max-width: 600px;
    margin: 30px auto;
}

h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.board-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.board-actions form {
    margin: 0;
}

.board-actions .btn {
    white-space: nowrap;
}

/* Profile styles */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.profile-settings {
    max-width: 600px;
    margin: 40px auto;
}

.profile-settings h3 {
    margin-top: 40px;
}

.delete-account {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Make usernames clickable */
.username-link {
    color: #0066cc;
    text-decoration: none;
}

.username-link:hover {
    text-decoration: underline;
}

.board-invitations {
    margin: 30px 0;
}

.invitation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 4px;
}

.invitation-info {
    flex: 1;
}

.invitation-info .board-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.invitation-actions {
    display: flex;
    gap: 10px;
}

.invitation-actions form {
    margin: 0;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .nav {
    background-color: #1e1e1e;
}

body.dark-mode a {
    color: #bb86fc;
}

body.dark-mode .btn {
    background-color: #333;
    color: #fff;
}