/* /var/www/html/public/assets/css/dashboard.css */

body.dashboard-layout {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.create-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
}

.create-button:hover {
    background: #0056b3;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.search-button {
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background: #e9ecef;
}

.dashboard-content {
    flex: 1;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.content-header .subtitle {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 1rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.profile-info p {
    margin: 0;
    color: #666;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.badge-icon {
    margin-right: 8px;
    font-size: 16px;
}

.badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    color: #333;
}

.badge.blogger-type {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge.full-name {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge.bio {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.notifications-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

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

.notifications-header h3 {
    margin: 0;
}

.mark-all-read {
    padding: 5px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 10px;
    border-radius: 8px;
    background: #f9f9f9;
}

.notification.unread {
    background: #e3f2fd;
}

.notification-content {
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: #666;
}

.recent-activity {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

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

.section-header h2 {
    margin: 0;
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    padding: 10px;
    border-radius: 8px;
    background: #f9f9f9;
}

.history-date {
    font-size: 0.8rem;
    color: #666;
}

.history-link {
    color: #007bff;
    text-decoration: none;
}

.recent-comments {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.comment-item:hover {
    background: #f0f0f0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.comment-author-name {
    font-weight: 500;
    color: #333;
}

.comment-date {
    color: #666;
}

.comment-content {
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.comment-source {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-source:hover {
    color: #0056b3;
    text-decoration: underline;
}

.edit-comment-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.edit-comment-btn:hover {
    color: #333;
}

.edit-comment-btn .icon {
    width: 16px;
    height: 16px;
}

.no-notifications,
.no-activity,
.no-comments {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.dashboard-nav {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.dashboard-nav .main-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-nav .main-nav li:last-child {
    margin-top: auto;
}

.dashboard-nav .secondary-nav {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.dashboard-nav .logout-link {
    color: #dc3545;
}

.dashboard-nav .logout-link:hover {
    background-color: #dc3545;
    color: #fff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.username {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 8px;
}

.dashboard-nav a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background-color: #007bff;
    color: #fff;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.no-activity {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.empty-state svg {
    fill: none;
    stroke: #ccc;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 12px;
}

.empty-state p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.alert {
    padding: 15px;
    margin: 20px;
    border-radius: 4px;
    font-size: 14px;
}

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

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.social-accounts-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-accounts-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.social-accounts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.social-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.2s;
}

.social-account:hover {
    background: #f1f1f1;
}

.social-provider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-name {
    font-weight: 500;
    color: #333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

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

@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-badges {
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .navigation-buttons {
        flex-direction: column;
    }

    .nav-button {
        justify-content: center;
    }

    .profile-info h2 {
        font-size: 1.2rem;
    }

    .badge {
        font-size: 0.8rem;
    }
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    padding: 10px 20px;
}

.form-actions .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.form-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.form-actions .btn:hover {
    opacity: 0.9;
}

/* Стили для профиля */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.form-control[type="file"] {
    padding: 8px;
    background: white;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

/* Social Accounts */
.social-accounts {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-accounts h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.social-account {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-account:hover {
    background: #f0f0f0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.social-info {
    flex: 1;
}

.social-name {
    font-weight: 500;
    color: #333;
}

.social-status {
    font-size: 13px;
    color: #666;
}

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

.link-btn, .unlink-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-btn {
    background: #28a745;
    color: white;
}

.link-btn:hover {
    background: #218838;
}

.unlink-btn {
    background: #dc3545;
    color: white;
}

.unlink-btn:hover {
    background: #c82333;
}

/* Blogger Type Select */
.blogger-type-select select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.other-blogger-type {
    display: none;
}

.other-blogger-type.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-account {
        flex-direction: column;
        text-align: center;
    }

    .social-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.nav-button .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

.nav-button.active {
    background-color: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-wrap: wrap;
    }
    
    .nav-button {
        flex: 1;
        min-width: auto;
    }
}