/* 
 * Forum User Pages Styling
 * Contains styling for login, register, profile, and notification pages
 */

/* Custom Tab Buttons Styling */
.custom-tab-btn {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.custom-tab-btn:hover {
    color: #2A734D;
    background-color: rgba(42, 115, 77, 0.05);
    border-bottom-color: rgba(42, 115, 77, 0.3);
}

.custom-tab-btn.active {
    color: #2A734D !important;
    background-color: rgba(42, 115, 77, 0.05) !important;
    border-bottom: 3px solid #2A734D !important;
    font-weight: 600;
}

.custom-tab-btn .badge {
    background-color: #6c757d;
    transition: background-color 0.2s ease;
}

.custom-tab-btn.active .badge {
    background-color: #2A734D;
}

.card-header-tabs {
    margin-bottom: -0.5rem;
    border-bottom: none;
}

/* Common Forum Page Styles */
.forum-page-container {
    margin-top: 120px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.forum-page-title {
    color: #2A734D;
    margin-bottom: 15px;
    font-weight: 600;
}

.forum-page-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Card Styling */
.forum-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: none;
}

.forum-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaecef;
    padding: 20px;
    position: relative;
}

.forum-card-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2A734D;
}

.forum-card-title {
    margin: 0;
    color: #2A734D;
    font-size: 1.5rem;
    font-weight: 600;
}

.forum-card-body {
    padding: 25px;
}

.forum-card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaecef;
    padding: 15px 25px;
    text-align: center;
}

/* Form Control Styling */
.forum-form-group {
    margin-bottom: 20px;
}

.forum-form-label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
}

.forum-form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.forum-form-control:focus {
    border-color: #2A734D;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(42, 115, 77, 0.25);
}

.forum-form-text {
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.875rem;
}

.forum-form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Button Styling */
.forum-btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    margin-right: 8px;
    text-decoration: none;
}

.forum-btn-primary {
    color: #fff;
    background-color: #2A734D;
    border: 1px solid #2A734D;
}

.forum-btn-primary:hover {
    background-color: #225D3E;
    border-color: #1A4A31;
}

.forum-btn-secondary {
    color: #2A734D;
    background-color: transparent;
    border: 1px solid #2A734D;
}

.forum-btn-secondary:hover {
    color: #fff;
    background-color: #2A734D;
}

.forum-btn-info {
    color: #fff;
    background-color: #17a2b8;
    border: 1px solid #17a2b8;
}

.forum-btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.forum-btn-danger {
    color: #fff;
    background-color: #dc3545;
    border: 1px solid #dc3545;
}

.forum-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.forum-btn-block {
    display: block;
    width: 100%;
}

/* Alert Styling */
.forum-alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.forum-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.forum-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.forum-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.forum-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Profile Specific Styles */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #2A734D;
    border: 3px solid #2A734D;
}

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

.profile-name {
    font-size: 1.75rem;
    margin-bottom: 5px;
    color: #2A734D;
}

.profile-username {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.profile-stats-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eaecef;
}

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

.profile-stats-item i {
    margin-right: 10px;
    color: #2A734D;
}

/* Notification Specific Styles */
.notification-list-item {
    padding: 15px;
    border-bottom: 1px solid #eaecef;
    transition: background-color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

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

.notification-list-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #2A734D;
}

.notification-icon {
    font-size: 1.25rem;
    margin-right: 15px;
    color: #2A734D;
    width: 24px;
    text-align: center;
}

.notification-content {
    flex-grow: 1;
}

.notification-time {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 10px;
}

.notification-badge-new {
    background-color: #2A734D;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.notification-unread {
    background-color: rgba(42, 115, 77, 0.05);
}

.notification-empty {
    padding: 50px 20px;
    text-align: center;
}

.notification-empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #6c757d;
}

/* Profile Tab Content */
.profile-tab-content {
    min-height: 250px;
    border-top: 1px solid rgba(0,0,0,.125);
}

.profile-tab-content .tab-pane {
    padding: 20px !important;
}

/* Enhanced notification list item for tabs */
.profile-tab-content .notification-list-item {
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,.05);
}

.profile-tab-content .notification-list-item:hover {
    border-color: rgba(42, 115, 77, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .forum-page-container {
        margin-top: 100px;
        padding: 0 10px;
    }
    
    .forum-card-body {
        padding: 15px;
    }
    
    .forum-btn {
        padding: 8px 15px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .forum-form-label {
        margin-bottom: 5px;
    }
    
    .forum-form-control {
        padding: 8px 12px;
    }
}
