:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Password Display */
.password-display-container {
    position: relative;
    background-color: var(--light-color);
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
}

.password-display {
    padding-right: 40px; /* Space for copy button */
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 0.25rem 0.5rem;
}

.copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 1rem;
}

.strength-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.strength-segment {
    height: 10px;
    flex: 1;
    background-color: #e9ecef;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.strength-segment.weak {
    background-color: var(--danger-color);
}

.strength-segment.fair {
    background-color: var(--warning-color);
}

.strength-segment.good {
    background-color: var(--info-color);
}

.strength-segment.strong {
    background-color: var(--success-color);
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Password History */
.password-history {
    max-height: 200px;
    overflow-y: auto;
}

.password-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-history-text {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Password Tips */
.password-tips li {
    margin-bottom: 0.5rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy {
    background-color: var(--secondary-color);
}

/* Comments */
.comment {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.comment-author {
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.copy-success {
    animation: pulse 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .password-display {
        font-size: 1rem;
    }
}
