.ff-favorite-container {
    margin: 20px 0;
}

.ff-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ff-favorite-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.ff-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ff-favorite-btn.active {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ff-favorite-btn.active:hover {
    background-color: #ffeaa7;
    border-color: #f39c12;
}

.ff-favorite-icon {
    font-size: 16px;
    line-height: 1;
}

.ff-favorite-text {
    white-space: nowrap;
}

.ff-favorite-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.ff-favorite-message span {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Favoritlista styling */
.ff-favorite-list-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ff-favorite-list-container h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.5em;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.ff-favorite-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ff-favorite-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.ff-favorite-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ff-favorite-item-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.ff-favorite-item-content h4 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ff-favorite-item-content h4 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ff-favorite-excerpt {
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.ff-favorite-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ff-favorite-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.ff-favorite-link:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.ff-favorite-remove-btn {
    padding: 6px 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.ff-favorite-remove-btn:hover {
    background-color: #c82333;
}

.ff-favorite-remove-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsiv design */
@media (max-width: 768px) {
    .ff-favorite-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ff-favorite-link,
    .ff-favorite-remove-btn {
        text-align: center;
    }
    
    .ff-favorite-item {
        padding: 15px;
    }
}

/* Forum styling */
.ff-forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ff-forum-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.ff-forum-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.ff-forum-breadcrumb a:hover {
    text-decoration: underline;
}

/* Forum lista */
.ff-forum-list {
    display: grid;
    gap: 20px;
}

.ff-forum-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.ff-forum-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ff-forum-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.ff-forum-info h3 a {
    color: #007bff;
    text-decoration: none;
}

.ff-forum-info h3 a:hover {
    text-decoration: underline;
}

.ff-forum-info p {
    margin: 0;
    color: #6c757d;
}

.ff-forum-stats {
    text-align: right;
}

.ff-forum-topic-count {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
}

/* Forum header */
.ff-forum-header {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ff-forum-header h2 {
    margin: 0 0 10px 0;
    color: #495057;
}

.ff-forum-header p {
    margin: 0 0 15px 0;
    color: #6c757d;
}

.ff-forum-actions {
    margin-top: 15px;
}

/* Sökformulär */
.ff-forum-search {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ff-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* Trådar lista */
.ff-topics-list {
    display: grid;
    gap: 15px;
}

.ff-topic-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.ff-topic-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ff-topic-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.ff-topic-info h3 a {
    color: #007bff;
    text-decoration: none;
}

.ff-topic-info h3 a:hover {
    text-decoration: underline;
}

.ff-topic-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.ff-topic-last-activity {
    text-align: right;
    color: #6c757d;
    font-size: 0.9em;
}

/* Tråd visning */
.ff-topic-main {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ff-topic-header h2 {
    margin: 0 0 15px 0;
    color: #495057;
}

.ff-topic-meta {
    margin-bottom: 20px;
}

.ff-topic-body {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #495057;
}

.ff-topic-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Svar */
.ff-replies-list {
    margin-top: 30px;
}

.ff-replies-list h3 {
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.ff-reply-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.ff-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.ff-reply-author {
    font-weight: 600;
    color: #495057;
}

.ff-reply-date {
    color: #6c757d;
    font-size: 0.9em;
}

.ff-reply-body {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #495057;
}

.ff-reply-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Like-knappar */
.ff-like-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.ff-like-btn:hover {
    background: #e9ecef;
}

.ff-like-btn.liked {
    background: #fff5f5;
    border-color: #ffc107;
    color: #856404;
}

.ff-like-icon {
    font-size: 14px;
}

.ff-like-count {
    font-weight: 500;
}

/* Redigera-knappar */
.ff-edit-btn {
    padding: 6px 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.ff-edit-btn:hover {
    background: #5a6268;
}

/* Formulär */
.ff-reply-form {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.ff-reply-form h3 {
    margin: 0 0 15px 0;
    color: #495057;
}

.ff-reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

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

.ff-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.ff-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.ff-form-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.ff-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Knappar */
.ff-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.ff-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.ff-btn-primary {
    background: #007bff;
}

.ff-btn-primary:hover {
    background: #0056b3;
}

/* Redigeringsformulär */
.ff-edit-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.ff-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

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

/* Användarens inlägg */
.ff-user-posts-list {
    margin-top: 20px;
}

.ff-user-post-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ff-user-post-type {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ff-user-post-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ff-user-post-item h3 a {
    color: #333;
    text-decoration: none;
}

.ff-user-post-item h3 a:hover {
    color: #0073aa;
}

.ff-user-post-meta {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.ff-user-post-meta a {
    color: #0073aa;
    text-decoration: none;
}

.ff-user-post-meta a:hover {
    text-decoration: underline;
}

.ff-user-post-excerpt {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

/* Responsiv design för forum */
@media (max-width: 768px) {
    .ff-forum-item,
    .ff-topic-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ff-topic-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ff-forum-search {
        flex-direction: column;
    }
    
    .ff-topic-actions,
    .ff-reply-actions {
        flex-wrap: wrap;
    }
    
    .ff-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ff-edit-actions {
        flex-direction: column;
    }
}

/* Användarlänkar */
.ff-user-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.ff-user-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Forum-grupper */
.ff-forum-group {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ff-forum-group-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.ff-forum-group-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.ff-forum-group-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ff-forum-group .ff-forum-list {
    margin: 0;
}

.ff-forum-group .ff-forum-item {
    border-bottom: 1px solid #eee;
    margin: 0;
    border-radius: 0;
}

.ff-forum-group .ff-forum-item:last-child {
    border-bottom: none;
}

.ff-forum-group .ff-forum-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.ff-forum-group .ff-forum-item h4 a {
    color: #0073aa;
    text-decoration: none;
}

.ff-forum-group .ff-forum-item h4 a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Alias-formulär */
.ff-alias-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ff-alias-form h3 {
    margin-top: 0;
    color: #333;
}

.ff-alias-form p {
    margin-bottom: 15px;
    color: #666;
}

.ff-alias-form .form-group {
    margin-bottom: 15px;
}

.ff-alias-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ff-alias-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.ff-alias-form .description {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.ff-alias-info {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    text-align: center;
}

.ff-alias-info p {
    margin: 0;
    color: #0066cc;
}

/* Forum-formulär */
.ff-create-topic,
.ff-reply-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ff-create-topic h3,
.ff-reply-form h3 {
    margin-top: 0;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit {
    margin-top: 20px;
}

.submit input[type="submit"] {
    margin-right: 10px;
}

/* Forum-innehåll */
.ff-topic {
    max-width: 800px;
    margin: 0 auto;
}

.ff-topic-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.ff-topic-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.ff-topic-meta {
    color: #666;
    font-size: 14px;
}

.ff-topic-meta span {
    margin-right: 15px;
}

.ff-topic-content {
    margin-bottom: 30px;
}

.ff-post {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.ff-post-author {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.ff-post-date {
    font-weight: normal;
    color: #666;
    margin-left: 10px;
}

.ff-post-content {
    line-height: 1.6;
}

.ff-replies {
    margin-top: 30px;
}

.ff-replies h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Poängsystem */
.ff-points {
    /*font-weight: bold;
    color: #0066cc;*/
}

.ff-points-breakdown {
    max-width: 400px;
    margin: 10px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ff-points-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.ff-points-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ff-points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.ff-points-action {
    flex: 1;
    color: #333;
}

.ff-points-count {
    color: #666;
    font-size: 14px;
    margin: 0 10px;
}

.ff-points-earned {
    font-weight: bold;
    color: #0066cc;
}

/* Poäng-notifikation */
.ff-points-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: bold;
    display: none;
    max-width: 300px;
} 